Where to save data coming from a GPS device? RAM,EEPRM or Flash memory?

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?

Parents
  • There's a reply on your earlier thread:

    http://www.keil.com/forum/docs/thread2787.asp

    I thought I had one there, too, but I don't see it now. Oh well.

    As I recall, from glancing at the data sheet earlier, you should be able to use the internal flash on that particular part for both code and data, as it is divided into multiple blocks. So, you can choose a block (or blocks) to devote to storing data instead of code. All the flash is mapped as program space, however, so you'll have to use the Philips routines in the boot ROM to actually program and erase the flash.

    Also, the flash in the part is specified for only 10,000 erase cycles, which is not a lot by modern standards for data use. (The limit is fine for program store -- are you really going to upgrade the software 10,000 times? -- but depending on your application, it might not be enough lifetime for data logging.)

Reply
  • There's a reply on your earlier thread:

    http://www.keil.com/forum/docs/thread2787.asp

    I thought I had one there, too, but I don't see it now. Oh well.

    As I recall, from glancing at the data sheet earlier, you should be able to use the internal flash on that particular part for both code and data, as it is divided into multiple blocks. So, you can choose a block (or blocks) to devote to storing data instead of code. All the flash is mapped as program space, however, so you'll have to use the Philips routines in the boot ROM to actually program and erase the flash.

    Also, the flash in the part is specified for only 10,000 erase cycles, which is not a lot by modern standards for data use. (The limit is fine for program store -- are you really going to upgrade the software 10,000 times? -- but depending on your application, it might not be enough lifetime for data logging.)

Children
More questions in this forum