??? 01/10/10 05:07 Read: times |
#172303 - Now I've not read THIS datasheet ... but ... Responding to: ???'s previous message |
The Maxim/Dallas DS89C4x0's have two datapointers that operate in a similar way. There's a toggle select big, and an increment/decrement bit for each DPTR, and a bit for each DPTR that determines whether it does it or not. Consequently each DPTR can be used to point to a single location, as you might if transferring data from one external memory-mapped port to another, OR it can be used with one DPTR incrementing/decrementing, as you might if transferring data from a fixed external memory-mapped port to a memory buffer, or vice versa, OR both can do whatever the increment/decrement bit specifies, as when you're moving data from one XRAM block to another.
I'd be surprised if your MCU doesn't have those features as well, or, at least, a subset. As for the copy loop, movx A, @DPTR movx @DPTR, A inc DPTR inc DPTR If that's what they recommend, I'd conclude that there is no auto-increment/decrement and corresponding enable bit since they apparently expect you to do it with inc instructions. if however The documentation seems to indicate that DPTR / DPTR1 are incremented or decremented on access then I'd look for more information about the bits that control that function, since the inc instructions shouldn't be necessary if those controls are available. RE |
Topic | Author | Date |
Wiznet W7100 questions.... accessing data flash? | 01/01/70 00:00 | |
datasheet | 01/01/70 00:00 | |
Nope, both start at zero.... | 01/01/70 00:00 | |
? | 01/01/70 00:00 | |
Yup, movx doesn't do it as far as i can tell.... | 01/01/70 00:00 | |
Writing to flash - in general | 01/01/70 00:00 | |
We cannot open the assembler instructions | 01/01/70 00:00 | |
data flash API is through IAP | 01/01/70 00:00 | |
documented quite concisely - but also contradictorily (!) | 01/01/70 00:00 | |
but how does it matter? | 01/01/70 00:00 | |
But it's not an omission! | 01/01/70 00:00 | |
potentiality of users | 01/01/70 00:00 | |
Sad, but true - but WIZnet beware!![]() | 01/01/70 00:00 | |
So they do! | 01/01/70 00:00 | |
core by DCD | 01/01/70 00:00 | |
Why do you believe that, Jan? | 01/01/70 00:00 | |
hint is the debugging tool... | 01/01/70 00:00 | |
Now I've not read THIS datasheet ... but ... | 01/01/70 00:00 |