PT630 Programming Reference Guide
Page 54 of 59
------------------------------------------------------------------------------------------------------------------
1.8.3 Send Character to RS232 Port
Entry Parameter: AH = 2
AL
=
character
Return
Value:
None
Note:
Only for NONE communication protocol
Example:
void TC_232_char_O(unsigned char ch)
{
regs.h.ah = 2;
regs.h.al = ch;
int86(0X33®s,®s);
}
1.8.4 Enable RS-232 Port
Entry Parameter: AH = 3
Return
Value:
None
Example:
void TC_232_enable()
{
regs.h.ah = 3;
int86(0x33,®s,®s);
}
1.8.5 Disable RS-232 Port
Entry Parameter: AH = 4
Returned
Value: None
Example:
void TC_232_disable()
{
regs.h.ah = 4;
int86(0X33®s,®s);
}