This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AT89C51RE2 problems

Hello everybody,

I am using the AT89C51RE2 controller and the AT89OCD debugger. I have set up my environment according to the application note from Atmel with the suggested modifications to startup51.a51 and l51_bank.a51. In lack of something better I have used 89c51rd2.H in my c file. The c file only contains void main() function. The project contains c-file and the two asm files.

My problem is this. When i download the hex and start a debug session, I am able to step the code, but the disassembly shows the same instruction everywhere.
MOV r7,A and obviously nothing happens.

I cannot seem to figure this out, and this is my first time with the OCD and the AT89C51RE2. I wonder if something has to be done in the a51 files which I am not aware of or what could cause this problem in the first place.

Any help is gladly appreciated.

Thank you in advance.
Henrik

Parents
  • @ Per: Yes, I am aware of the ARM. We actually use the ST ARM7 and 9 quite extensively. However, this particular project is an extension of the RD2 project, so we wanted to reuse all the existing code with as little modification as possible.

    @ Erik: I will look into the Silabs chips. My main requirements is 2 uarts and the ability to reuse my C51 application code.

    Thank you all for your answers.

    Best regards
    Henrik

Reply
  • @ Per: Yes, I am aware of the ARM. We actually use the ST ARM7 and 9 quite extensively. However, this particular project is an extension of the RD2 project, so we wanted to reuse all the existing code with as little modification as possible.

    @ Erik: I will look into the Silabs chips. My main requirements is 2 uarts and the ability to reuse my C51 application code.

    Thank you all for your answers.

    Best regards
    Henrik

Children
No data