tkvenki
New Member
Hi All,
My project is interfacing a uC to an external UART.
This is how i have connected the necessary devices.
uC --> ST16C2550 ( External UART) --> MAX3232 --> My Computer.
Now in my uC i program to send a data byte say 0x05.
And i will short the TX and RX pins after the MAX3232 i.e. just before the computer.
Then BINGO...I'm able to get the data 0x05(or whatever data that i have sent) in the receive buffer of the ST16C2550(UART chip).
Now i remove the loopback and connect it to my computer. I open a terminal program in my computer(I'm using windmill). Now i should have got the data 0x05 in the terminal program. But i'm getting 0x00 all the time.
I'm using 9600 baud rate. 8data-0parity-1stop-bit.
If i increase the baud rate in my uC. Then i get 0x00's faster.If i decrease the baud rate i'm getting 0x00's slower. But i'm not able to get the expected data...i.e the data i have transmitted.
Has anybody faced this problem??
Any suggestions????
Thanking you,
tkvenki
My project is interfacing a uC to an external UART.
This is how i have connected the necessary devices.
uC --> ST16C2550 ( External UART) --> MAX3232 --> My Computer.
Now in my uC i program to send a data byte say 0x05.
And i will short the TX and RX pins after the MAX3232 i.e. just before the computer.
Then BINGO...I'm able to get the data 0x05(or whatever data that i have sent) in the receive buffer of the ST16C2550(UART chip).
Now i remove the loopback and connect it to my computer. I open a terminal program in my computer(I'm using windmill). Now i should have got the data 0x05 in the terminal program. But i'm getting 0x00 all the time.
I'm using 9600 baud rate. 8data-0parity-1stop-bit.
If i increase the baud rate in my uC. Then i get 0x00's faster.If i decrease the baud rate i'm getting 0x00's slower. But i'm not able to get the expected data...i.e the data i have transmitted.
Has anybody faced this problem??
Any suggestions????
Thanking you,
tkvenki