??? 05/24/12 16:08 Read: times |
#187510 - Options Responding to: ???'s previous message |
Here are some options as I see it:
1> Use IAP (In Application Programming) to use some of the on chip flash to store data. Your chip needs to support this, but there are many that do. Try this one http://www.maxim-ic.com/datasheet/index.mvp/id/4078 There are many application notes to help you do this, but it will take a little programming to learn how. 2> Find 2 port pins and wire up a I2C eeprom like this one http://www.sparkfun.com/products/525 You would then save data as it comes in and then load it back up when the MCU turns on. You can even share these pins with other parts of your circuit (called multiplexing). Ask more questions if you want to know about this. 3> As mentioned before, use a battery (such as a cr2032) and try and keep the system from ever completely losing power. You should adjust your program to use the 8051 low power mode (which is easy) to help you out with this. --David |