Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/11/10 13:30
Read: times


 
#172330 - data flash API is through IAP
Responding to: ???'s previous message
Andy Neil said:
The user interface should - nay, must - be fully and completely documented; even if the internal implementation is secret!

I had a look at the available documentation ("How to program flash memory...pdf") and it appears, that all accesses to data flash (read/write/erase) shall go through IAP. This is uncomfortable, impractical, whatever; nevertheless it is in fact documented quite concisely.

---
[speculation mode on]
I'd bet the IAP internally does INDEED use MOVX for these things; I would not be surprised if it would use some SFR bit to toggle between RAM and data FLASH for MOVX. Often, in chips with FLASH, during such remapping, code fetch from FLASH is impossible, so such code must then run from ROM - that might be the reason why data flash access happens only through IAP.

Note also, that there is a SFR bit (PWE=PCON.4) documented for code memory (flash?) writing(!), and those parts sound rather confusing, too. It appears, that code flash is written using MOVX (which is not surprising), but the timing diagrams around the waitstates description appear to indicate, that such write occurs immediately, so probably code memory can be mapped also into RAM somehow (?)

Clearly the documentation does not tell EVERYTHING of the chip - but then, isn't this the sad norm with most of the modern '51 derivatives?
[speculation mode off]
---

Of course there is also the language barrier - but please keep in mind, that it goes both way. They might have misunderstood the question, and you might have misunderstood the answer (or even both... ;-) )

JW



List of 18 messages in thread
TopicAuthorDate
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      

Back to Subject List