| ??? 12/20/01 11:27 Read: times |
#17868 - RE: Access address space |
Roberto,
You can use a pointer (constant or variable) to EEPROM or SRAM locations. The following examples are for the IAR compiler: 1) Constant pointer option: #define EEPROM ((xdata uchar *) 0x018000) *(EEPROM + 100)= 42; This option is faster but EEPROM cannot be changed (the pointer itself). EEPROM++; /* not permitted */ 2) Variable pointer option: xdata uchar *eeprom= (xdata uchar *) 0x018000; *(eeprom+100)= 42; with this option you can change the pointer itself, for example: eeprom++; /* is valid */ Regards, Alfredo del Río. |
| Topic | Author | Date |
| Access address space | 01/01/70 00:00 | |
| RE: Access address space | 01/01/70 00:00 | |
| RE: Access address space | 01/01/70 00:00 | |
| RE: Access address space | 01/01/70 00:00 | |
| RE: Access address space | 01/01/70 00:00 | |
RE: Access address space | 01/01/70 00:00 | |
| RE: Access address space (to Alfredo) | 01/01/70 00:00 | |
| RE: Access address space | 01/01/70 00:00 |



