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.
Hi dazheng,
Need to know ... what is EEPROM used in MCU for ?. I know EEPROM stand for Electrical Erasable Programming ROM but I need to know what's the purpose or where it going to be used in MCU?
I ask this because some of MCU dont have EEPROM ( EEPROM = 0 byte) ie 80NC535 & 80NC321 and the best thing about this MCU (without EEPROM) that's its cheaper than MCU with EEPROM. If it just minor used and can solve it in other method (and not effect my project) , I will use it as I need to lower the cost as much as possible.
Any instruction (ie in proton) that must be used on MCU with EEPROM ?
More explanation greatly appreciated.
Thanks
zuisti
"i thin kthe problem is you have a sector of 510 bytes.but mostly it is 512."
Mostly 512? Check the spec again. What about the 518-byte sectors? And what about the 502-byte, 554-byte, and the jumbo 1024-byte sectors? We've got to handle those too. It's all there in section 3.1.4.1.59.
"1. How to make LED toggle on rising edge instead of MCU have to scan the state condition of the button and respond according if.. then statement. That mean (for edge rising signal ... 0 to 5V) MCU been triggered by rising edge of signal from low to high or hight to low or high to high."
Qualify the if/then with an X/OR of the LED input and TMR0's MSB. Trigger is best by rising edge of signal low to low.
"2. I'm using Xtal = 31Mhz ... and I dont connect any crytal (actually I want to use internal oscilator with PLL ) .... how to write the code for that ? any example ?"
You're in luck. I've already done the code for that. I made a development branch off of mainline and checked osc_cfg.c into Perforce.