![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
actually i can read and write the external eeprom ![]() the problem i face is that I CANNT get a value by specifying the varible name. instead, i have to supply memory address for that. for example, i cannt read a value by simply writing printf("%u", variable_name"); instead, i have to KNOW the address of the content in ADVANCE!. What is the conventional way of retrieving data from eeprom? | |
| |
| | #2 | |
| Quote:
Generally knowing the addresses isn't a problem, and if you wanted to use labels for the addresses you could use equates for them. | ||
| |
| | #3 |
|
hmm... variable is stored in RAM not in external eeprom you could define an address to a variable #define A 0xffff then implement i2c read function i2c_read(A) overall, it could be written in this way printf(i2c_read(A)); | |
| |
|
| Thread Tools | |
| Display Modes | |
| |