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

p89c669 UART1, baudrate 4800

Hi
I need to set baudrate for UART1 for p89c669. I did it like.....

void Init_Uart1()
{ S1STAT = 0x20 ; S1CON = 0x50 ; REN_1 = 1 ; BRGCON = 0X00 ; BRGR1 = 0x07 ; BRGR0 = 0x70 ; BRGCON = 0X01 ;

}

are they correct for BRGR1 and BRGR0?