HTBasic Help
×
Menu
Index

Interrupt Support

 
The SERIAL driver supports ON INTR and ENABLE INTR. The definition of bits used in the ENABLE INTR statement is the same as for STATUS register 8, given at the end of this section. An example showing use of interrupts with the SERIAL driver is given in the "Interrupt" section of Chapter 5, "General Input and Output."
 
When an interrupt occurs, the serial interface hardware requires that it be acknowledged. To handle or acknowledge the different interrupts, you should do the following:
 
Interrupt                      Acknowledge by...                                
Error Occurred                STATUS register 10, UART Line Status
Data Available                ENTER or STATUS register 6, Data In
Tx Reg Empty                STATUS register 9, Interrupt ID
Modem Status                STATUS register 11, Modem Status