User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
347
FLASH_Read4_Compact(0x006010, pb);
pb := pb + 12;
pb^ := 0; //termination
UART1_Init(9600);
UART1_Write(10);
UART1_Write(13);
UART1_Write_Text(‘Start’);
UART1_Write(10);
UART1_Write(13);
i := 0;
while(ReadByteArr[i]) do
begin
temp_byte := ReadByteArr[i];
UART1_Write(temp_byte);
Inc(i);
end;
//--- now for some non-compact ash-write
pw := @WriteWordArr;
//--- erase the block rst
FLASH_Erase32(0x006100);
FLASH_Write_Init(0x006100, pw);
FLASH_Write_Loadlatch4();
FLASH_Write_Loadlatch4();
FLASH_Write_DoWrite();
//--- read non-compact format
pw := @ReadWordArr[0];
FLASH_Read4(0x006100, pw);
pw := pw + 4;
FLASH_Read4(0x006108, pw);
pw := pw + 4;
pw^ := 0; //termination
//--- show what has been written
UART1_Write(10);
UART1_Write(13);
i := 0;
while(ReadWordArr[i]<>0) do
begin
temp_byte := ReadWordArr[i];
UART1_Write(temp_byte);
i := i + 1;
end;
end.
Graphic Lcd Library
mikroPascal PRO for dsPIC30/33 and PIC24 provides a library for operating Graphic Lcd 128x64 (with commonly used
Samsung KS108/KS107 controller).
For creating a custom set of Glcd images use Glcd Bitmap Editor Tool.
External dependencies of Graphic Lcd Library