??? 01/07/10 08:13 Read: times |
#172224 - Wiznet W7100 questions.... accessing data flash? |
Hi!
This is my first attempt at using an 8051, but so far it's not so bad. What _is_ bad is trying to get information out of wiznet. The W7100 is an 8051(8052?) chip with a builtin hardware TCP/IP stack. It has 32k code flash, 32k XRAM, and 256 bytes of builtin data flash. I have not, however, succeeded at accessing the data flash. Wiznet has just released some sample code for accessing the data flash, but it seems like a dirty hack. They are calling into the ISP functions for reading/writing the data stack, which plays bad tricks on the memory, since it maps the boot/isp code back over the code space, ugh. What I'm getting at is this: Can anyone guess at what assembler instructions might be used for accessing this data flash? What I'd _REALLY_ like to know is where wiznet got their 8051 core, so I could find documentation for it. So far, their documentation is not very thorough. A few features that might make it easier to identify: It has DPTR and DPTR1. There's a "TSL" bit called "Toggle Select Enable", and "SEL" to select which one is actually DPTR. The documentation seems to indicate that DPTR / DPTR1 are incremented or decremented on access, depending on the top two bits of a certain config register, but that doesn't actually appear to happen. The SEL bit does get toggled though, so a copy loop looks like this: movx A, @DPTR movx @DPTR, A inc DPTR inc DPTR Any suggestions or feedback are greatly appreciated. More info on this chip is available at wiznet.co.kr and wizwiki.net. --buddy |
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 |