Posted on May 17, 2011 at 12:09 Hi,
I'm trainning unsucessfully to set up the uart1 at 19200 bps using timer1 / 40MHz clk. I've changed all stuff on the mcu getting just a high level output on P1_3. What would be missing in set-up code ??
uPSD looks like running well for I/O port's working routines.
P1SFS0 = 0x0C;
SCON = 0x70;
SCON1 = 0x70;
T2CON = 0xC0;
TMOD = 0x22;
PCON = 0x40;
IE = 0x00;
IEA = 0x12;
IP = 0x00;
IPA = 0x00;
TI1 = 1;
ET1 = 1;
PT1 = 1;
TH1 = 0xF5;
TCON = 0x40;
any help would be appreciate,
thanks in advance,
ic