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
  • What strikes we as odd, is that apparently noone else have had any problems. Since I am somewhat confident that I have understood and followed the app note to the letter, I suspect that perhaps this specific Atmel controller is not (yet) widely used... And those who do, are apparently taking on a different approach than I do.

    Actually this is the first time I hear about the RE2. I guess it is either very new of rarely used.

    Have you had a look at the SILabs f12x/f13x series (100 MHz one-clockers with 128k flash, 8k RAM, 2 UARTs, SPI, IIC, ADC, kitchen sink) they are very popular chips and I just love them

    Erik

Reply
  • What strikes we as odd, is that apparently noone else have had any problems. Since I am somewhat confident that I have understood and followed the app note to the letter, I suspect that perhaps this specific Atmel controller is not (yet) widely used... And those who do, are apparently taking on a different approach than I do.

    Actually this is the first time I hear about the RE2. I guess it is either very new of rarely used.

    Have you had a look at the SILabs f12x/f13x series (100 MHz one-clockers with 128k flash, 8k RAM, 2 UARTs, SPI, IIC, ADC, kitchen sink) they are very popular chips and I just love them

    Erik

Children
  • @ 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