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

Internal Baud Rate (Baudrate) Generator of AT89C5132

Dear all, Hi,
I tried to use keil simulator to simulate IBRG (Internal Bade Rate Generator) of AT89C5132. Using C51 V7.10. It did not work on PC (Keil simulation), but it worked on the real AT89C5132.

I found that Keil assumes that:
"BRL is at 0x9A" and "BDRCON is at 0x9B",
but in real AT89C5132 these registers are:
"BRL is at 0x91" and "BDRCON is at 0x92".

if you want to run IBRG in Keil simulation you must use those addresses instead of correct ones.

I do not know in which version this bug is fixed?

Regards

  • Hello,

    I cannot give a direct answer toyour Q but a helper Iam using the two things below.

    Regards
    T.Schulte

    A) in the simulator ini file compile
    SIGNAL void UartFix(void)
    {
    twatch (10);
    BDRCON = 0x1E;
    BRL = 247;
    twatch (10);
    }

    B) in debug set
    BS \main(), 1, "UartFix();"