I am using a P89c51 base microcontroller and I need to store data coming from a GPS device. Questions: 1.Is it possible to save the data coming from the GPS,in the 64k Flash memory? For example 32kytes for the code and 32kbytes to store the data?How?
I finally finished the program.The code is 6Kbytes and it occupies 3Kbytes on XDATA memory.During the acquisition, as told before, it is necessary to store the data coming from the GPS to the 64kB Flash memory. The problems(doubts) are: 1.How to store( and erase) this information to the flash without my intervention (automaticly) during the remote working? I am thinking about to make a function dedicated to do it,but still dont know exacly how. 2.I read about WinISP, but it seems to be useful only to load the code to the microcontroller.There is also In Application Program but I could not find information on how to call PGM_MTP. 3.How to define the address where I want to start storing information?
You need to read in the device datasheet the section about IAP (In-Application Programming). Under http://www.keil.com/support/docs/2045.htm you can find C interface functions for Philips IAP.
Hi Amil,Where to store the data? You must store insight your RAM 1. The life cycle of your EEPROM or Flash is limited may be 100K or 1M 2. You need some times to write your data to EEPROM or Flash, 3. Receiving GPS under ISR, So you may be face some timinng probelm, The best way you store your data into RAM and periodically update to PC, Other way you can save the data only if you chnage your position simply if you received differnt coordinate from GPS