02 | Output data |
|
| Entry Parameters: | AH = 2 |
|
| AL = Data character |
| Returned Values: | None |
void TC_232_char_O(unsigned char ch)
{
regs.h.ah = 2; regs.h.al = ch; int86(0x34,®s,®s);
}
03 | Enable |
|
| Entry Parameters: | AH = 3 |
| Returned Values: | None |
void TC_232_enable()
{
regs.h.ah = 3; int86(0x34,®s,®s);
}
04 Disable RS-232 port
Entry Parameters: | AH = 4 |
Returned Values: | None |
void TC_232_disable()
{
regs.h.ah = 4; int86(0x34,®s,®s);
| } |
|
|
|
00 | Set Communication parameters |
|
| |
| Entry Parameters: | AH = 0 | BIT # |
|
|
|
| 76543210 |
|
|
| AL = bit 0 | xxxxxxx0 | 7 data bits |
|
|
| xxxxxxx1 | 8 data bits |
|
| bit 1 | xxxxxx0x | 1 stop bit |
|
|
| xxxxxx1x | 2 stop bits |
|
| bit | xxxx00xx NONE parity | |
|
|
| xxxx01xx ODD parity | |
|
|
| xxxx11xx EVEN parity | |
|
| bit | 0000xxxx | 110 baud rate |