We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
There are absolute memory macros to access memory addresses in 8051, do we have any such to access externally connected flash through 8051?
I tried using C pointers, it does not seem to be reading the address in flash, How do we read & write from a memory location? Please help.
SPI is a standard interface - so start by looking for the specifications.
You may well find sufficient detail in the SST25VF512 datasheet.
Use your favourite internet search engine - there is loads of information already out there!
There are even examples here: http://www.keil.com/download/list/c51.htm
Once you have worked-out the basics of how to transfer bytes across the interface, then you have to think about what you need to do with those bytes - that is specified in the datasheets for whatever SPI device(s) you are using.
Again, it's just like using the UART - first you need the basics of how to send & receive a character, then you need to form those characters into whatever commands, responses, etc are required by your application...