Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUrgent HELP!!! RS232 problem
Hi all, I trying to send signal through the RS232 port. I have problem in sending out the integer/character. Below is my code: void serial() { unsigned int a = 0x61626364; cha...
Altera_Forum
Honored Contributor
15 years agoWouldn't fprintf(fp,"%c",ch); work instead of the IOWR call. The usleep would then not be necessary. Not a good practice to use usleep unless you absolutely need to.
Also, don't forget the # include <stdio.h> line.