??? 03/25/08 00:02 Read: times |
#152502 - This block of code works as it should Responding to: ???'s previous message |
This is why I'm confused, because this application of the eeprom access works exactly as written. My ADC is not using interrupts so there should be no interference.
eeprom_init()//initialize internal eeprom data transfer eeprom_read(0x000);//read internal eeprom > address 000 DEEDAT = (DEEDAT ^ 0x01);//whatever it is (00 or 01), toggle the bit eeprom_init(); eeprom_write(0x000, DEEDAT); I just wanted to see if I was doing something wrong. Why would people be saying the code makes no sense when these code blocks are being generated directly by code architect with the default settings. P89LPC936 > EEPROM > save and generate......it should work right?....if you plug that into the online version, this is what it generates as shown in the first post. Im just trying to verify that I need to Initialize read or write terminate interrupt All this flag clearing and other application, using the blocks above, what should it look like then? This is why I'm confused, because my single block works, but the others are seemingly problematic. I can't find a good concrete example of how it should be set up in the app note, and I thought I read the comments on how to access the calls. Additional advise? |
Topic | Author | Date |
EEprom sequence..... | 01/01/70 00:00 | |
have you tried ... | 01/01/70 00:00 | |
Code was generated by code arch...... | 01/01/70 00:00 | |
definitely not | 01/01/70 00:00 | |
OOOPS, I goofed | 01/01/70 00:00 | |
A few issues | 01/01/70 00:00 | |
Another look... | 01/01/70 00:00 | |
This block of code works as it should | 01/01/70 00:00 | |
already answered | 01/01/70 00:00 | |
LOL.....ok np.....now an internal save issue | 01/01/70 00:00 | |
local variables are unknown | 01/01/70 00:00 | |
Switching on wrong variable | 01/01/70 00:00 | |
Brett your right......left over var![]() | 01/01/70 00:00 | |
Should work | 01/01/70 00:00 |