![]() |
Home |
|
Program SerIntProgram SerInt demonstrates how to install a hardware interrupt handler with RTTarget-32. As an example, this program installs a very simple interrupt handler to receive data on serial port COM2. The handler will read the byte received from the UART chip and place it in a buffer. The main program continually checks whether the user has requested program termination by pressing Escape on the keyboard, or whether data has been received on COM2. The program is kept very simple and lacks many features of high-performance serial I/O applications. However, it is a good example of interrupt processing under RTTarget-32.
|