主题:关于ETR232I的串口问题 共有60902人关注过本帖 |
---|
![]() lqk |
1楼 信息 | 搜索 | 邮箱 |
![]() ![]() ![]() ![]() |
![]()
可以这样做
在发送数据之前 对于COM1口 outportb( tport+3, ( ( inportb( tport+3 )&0xe7 )|abyte ) ); 对于COM2/COM3口 outport( tport+6, ( ( inport( tport+6 )&0xe7 )|abyte ) ); abyte = 0x08; //Odd parity abyte = 0x18; //Even Parity abyte = 0x00; //No parity |
单帖管理 | 引用 | 回复 ![]() |