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

General 8051 questions

This is a general question, i'm used to using PIC's, and AVR's and not really 8051's.
Do most people set the interrupts to another bank with 'using' and leave the rest of the code with the default. Just after some experienced users guidelines.

Also we have an 8051 ASIC with 128k code and ram, 2 SPI's etc. I was looking at defining the resources so the compiler knows about this stuff.
I'm a little confused about how the compiler would treat it. ie the 128k data is internal to the ASIC but does the compiler still have to treat it as external?

thanks
David

Parents
  • A word of warning when debugging in uVision:

    The values displayed for R0-R7 (in both the Registers window and by typing "Rn" on the command line) are only ever for Bank zero!


    Uhhhh. What version of uVision2 are you using? I just tried this in 2.12 and the contents of the register window and the value of R0-R7 (entered on the command line) are for the selected register bank.

    Jon

Reply
  • A word of warning when debugging in uVision:

    The values displayed for R0-R7 (in both the Registers window and by typing "Rn" on the command line) are only ever for Bank zero!


    Uhhhh. What version of uVision2 are you using? I just tried this in 2.12 and the contents of the register window and the value of R0-R7 (entered on the command line) are for the selected register bank.

    Jon

Children