Hi,
I'm trying to use COM3~COM5 of the TS7300 but
the ports are not working correctly. COM1~COM2
work very well.
Input to the ports are working find but the
output is not. I simply sent one character and
probed the TX with oscilloscope. Sometimes
there is a valid output but sometimes the
output is not correct. When not transmitting,
the output should be low but it's stuck to
high sometimes.
Here is the code I'm using. Can anyone help
me?
unsigned char value;
unsigned char *val_buf;
fd = open("/dev/ttyT8S0", O_RDWR | O_NOCTTY |
O_NDELAY);
fcntl(fd, F_SETFL, 0);
value = 16;
val_buf = &value;
write(fd,val_buf,1);