用C语言做的DOS界面的串口通信程序 void setPort(int size, char check, int stop){ unsigned char b = 0x00; disable(); switch(size){ case 6:b |= 0x01; break; case 7:b |= 0x02;break; case 8:b |= 0x03; break; } switch(check){ case 'N': case 'n':b &= ~0x08;break; case 'J':