| ??? 12/10/08 10:56 Read: times |
#160820 - Here is a possible solution Responding to: ???'s previous message |
Hi Aamir,
Reading data from Serial Port is discussed many times on this forum. So I assume you can search and get it very easily from this forum. Now the issue of storing the data, even when Power fails. Since you have Not mentioned the exact CPU number, I am assuming you are using AT89S51. You cannot store the data into internal code Memory through your application. Many other flavours from 89S51 family from different manufacturers allow you to store data into Code memory, but Not in the plain AT89S51. (8051, I believe has internal Code memory that is a ROM!!! Wonder how you can afford it!!!). So you need an external Memory to store that data; you can select from Serial EEPROMS (24Cxx, 93Cxx family, depending upon the amount of data you want to store in memory). You will find a lot of Application notes with source code for reading and writing into these EEPROMs. They are available on the Atmel website. Search and you will find them. Bye, Kiran V Sutar Mumbai INDIA. |



