Forum Discussion
Altera_Forum
Honored Contributor
15 years agoRS232 coding problem
Hi all, I require to send/receive a character through the rs232 port, however i only be able to receive character. I had problem with sending the character out. Below is my coding for sending a...
Altera_Forum
Honored Contributor
15 years agohello, I have made similar program.
I don't remember exactly what I did. the code was ------------------------------------------------------------------- void putUchar(unsigned char str) { IOWR_32DIRECT(H55UART_BASE,OFF_TXDATA ,str); usleep(UART_WAIT); // UART_WAIT is 1000 } ------------------------------------------------------------------- I think 1msec wait ( for 9600bps) is what you need. how is it?