MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 96

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 95
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
for i = 0 to 20
EEPROM_Write(i, i + 6)
next i
5.2.7 Flash Memory Library
This library provides routines for accessing microcontroller Flash memory.
Note: Routines differ for PIC16 and PIC18 families.
5.2.7.1 Flash_Read – Reads data from microcontroller Flash memory
Prototype
sub function Flash_Read(dim Address as longint) as byte ' for PIC18
sub function Flash_Read(dim Address as word) as word ' for PIC16
Description Procedure reads data from the specified <Address>.
Example
for i = 0 to 63
toRead = Flash_Read($0D00 + i)
' read 64 consecutive locations starting from 0x0D00
next i
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (54 sur 112)05/11/2004 02:20:52
Przeglądanie stron 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag