??? 08/18/06 14:36 Read: times |
#122565 - clarification Responding to: ???'s previous message |
erik,
1) i use iap to store sampled data to code so that i don't lose that data when i remove power to uC. why not use eprom? -> i was under the assumption that i didn't have to, that i could store to code (ie, data points) via iap. from your previous response, i'm beginning to understand that iap should not be used in this manner since only xdata is guaranteed after an iap call. 2) i only have code/data storage in block 0 right now. i realize you wrote "sector" but i responded with "block." i assume you're talking about the 5 blocks on the 668. every iap call resides in block 0. 3) right now i sample a data point, call iap and check for successful iap write, then go get next data point. after all data is logged, i store the dptr as well. so no, i don't go straight to reset after an iap call. 4) wdte initialized to 0 during inits, but no where else. my iap_pgm_data_byte routine feeds r1 with 02h per datasheet, not r1 with 82h. maybe i should try this to see if wdte is getting enabled somehow/somewhere. |
Topic | Author | Date |
P89C668 iap pass, pass, then fail | 01/01/70 00:00 | |
Is it address sensitive? | 01/01/70 00:00 | |
You do know, I hope | 01/01/70 00:00 | |
iap and data storage | 01/01/70 00:00 | |
no, not that | 01/01/70 00:00 | |
so store to xdata first... | 01/01/70 00:00 | |
If you heard what I thought I said ... | 01/01/70 00:00 | |
clarification | 01/01/70 00:00 | |
real data | 01/01/70 00:00 | |
incremental flash dumps | 01/01/70 00:00 | |
And the error is... | 01/01/70 00:00 | |
success!![]() | 01/01/70 00:00 |