Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
349
  UART1_Write_Text(“Start”)
  UART1_Write(10)
  UART1_Write(13)
  i = 0
  while(ReadByteArr[i])
    temp_byte = ReadByteArr[i]
    UART1_Write(temp_byte)
    Inc(i)
  wend
  ‘--- now for some non-compact flash-write
  pw = @WriteWordArr
  ‘--- erase the block first
  FLASH_Erase32(0x006100)
  FLASH_Write_Init(0x006100, pw)
  FLASH_Write_Loadlatch4()
  FLASH_Write_Loadlatch4()
  FLASH_Write_DoWrite()
  ‘--- read non-compact format
  pw = @RealongwordArr[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(RealongwordArr[i]<>0)
    temp_byte = RealongwordArr[i]
    UART1_Write(temp_byte)
    i = i + 1
  wend
end.
Graphic Lcd Library
mikroBasic 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.
Library Dependency Tree