I have a problem with the ADuC841 MCU. In my c-programmed application I want to use the internal EEPROM to save generated data. In the µVersion3 Debugger my programm works without problemes but at runtime I cant modify the EEPROM data. In a testfunktion I receive a char from RS232 and store it in an EEPROM Page. After that I read all 4 byts from the same Page an send the char back to Pc.The Pc always get 0xff,... from the MCU. For the read an write funktion I used the syntacs from the Datasheet. I also enable all Interrupts wenn I do something with the EEPROM. Can somebody help me? gretz Mathias
"The Pc always get 0xff"
There are many possible reasons for that - how do you know that it's the EEPROM that's at fault?
It could, for example, be:
* You are not receiving the characters correctly from the PC;
* You are not transmitting the characters correctly from back to the PC;
* The PC is not receiving the characters correctly from your target.
How are you sending & receiving on the PC?
How have you confirmed that your target sends & receives correctly?