PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.22. EDATASyntax : EDATA Constant1 { ,...Constantn etc }Overview :Operators :Example :Places constants or strings directly into the on-board eeprom memoryof compatible PIC’sConstant1,Constantn are values that will be stored in the on-boardeeprom. When using an EDATA statement, all the values specifiedwill be placed in the eeprom starting at location 0. The EDATA statementdoes not allow you to specify an eeprom address other than thebeginning location at 0. To specify a location to write or read datafrom the eeprom other than 0 refer to the EREAD, EWRITE commands.‘ Stores the values 1000,20,255,15, and the ASCII values for‘ H’,’e’,’l’,’l’,’o’ in the eeprom starting at memory position 0.EDATA 1000 , 20 , $FF , %00001111 , ”Hello”Notes :16-bit values may also be placed into eeprom memory. These areplaced high byte then low byte. For example, if 1000 is placed into anEDATA statement, then the order is: -EDATA 1000In eeprom it looks like 03 , 232Alias’s to constants may also be used in an EDATA statement: -SYMBOL Alias = 200EDATA Alias , 120 , 254 , “Hello World”See also :EREAD, EWRITE57Copyright Crownhill 2001