HTBasic Help
×
Menu
Index

ENTER Serial

 
To improve performance in receiving data, a 4096 byte receive buffer is available under NT. The receive buffer provided in other versions of Windows is a 1024 byte buffer. When a character is received on the serial interface, it is placed in the receive buffer. This is true regardless of the state of the BASIC program or hardware handshaking signals. The program need not be in an ENTER statement; nor must DSR or CD be active.
 
XON/XOFF Handshaking:
1. When the buffer is about full, XOFF is sent.
2. When there is room again in the buffer, XON is sent.
 
Hardware Handshaking:
1. If the receive buffer is empty, turn on DTR and wait for a character to arrive.
2. Get a character from the receive buffer and turn off DTR.