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

simulator / incorrect baudrate

I'm using a Philips 87lpc764 controller with compiler v6.02/simulator v2.02.

When initializing the serial port, the transmit/receive baudrate of serial window of the similator always changes to zero. The hardware itself is working fine...

The code used:
init_rs232 () {
TR1 = 0;
TMOD &= 0x0F;
TMOD |= 0x20;
TH1 = 0xFA;
ET1 = 0;
PCON |= 0x80;
SCON = 0xD0;
ES = 1;
EA = 1;
TR1 = 1;
}

Loading the SCON register does the change to zero in the serial port window of the simulator.

Is anyone else having the same problem or is there a solution for this problem ?

Thanks,

0