??? 08/18/06 11:59 Read: times |
#122546 - no, not that Responding to: ???'s previous message |
i know that the iap_pgm_data_byte routine (per the device data sheet) uses data storage locations (acc, dptr, r0, r1, sp, data that i want to store). are you suggesting that i protect the dptr and sp prior to calling the iap rotine? if so, how can i do that without using data storage nor code storage via iap?
the ONLY thing safe during IAP is XDATA! not DATA, not IDATA, not registers, not SFRs. You MUST code the IAP based on EVERYTHING (except XDATA) screwed up when the IAP comes back. The philosophy behind ISP/IAP/whatever is that, since you are programming, you reset when you are done. There has been several posts from others that do not share that philosophy, but that is it. The '51 is NOT dewsigned as a 'stored program processor' and, for that reason, the philosophy behind ISP/IAP makes sense. Erik |
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 |