Hi All,
I’m trying to read from UART1 and write the output to the UART0.
I’m able to write to UART0 but when I try to write the content of U1RBR I’m=
getting 0x0 !
using my logic analyser I can see that there is data in the RXD1 pin , but =
neither the ISR
handler or reading roughly from the U1RBR works.
here is my setting code :
PINSEL0 = 0x00000001 // enable RxD1
ULCR = 0x83;
Fdiv = (Fpclk / 16) / baudrate
U1DLM= Fdiv / 256
U1DLL = Fdiv % 250
U1LCR = 0x03
U1FCR = 0x07
U1IER=1
Reading :
while(U1LSR & 0x01)
return U1RBR
I’m using the same config for the UART0 and it works.
I think I’m missing some thing in the UART1 setup !
Please any Idea
Z.Nakrachi