Chapter 6 Applied Instructions Timer interrupts in a diagram: Execu te the instruct ion DI X t o disable int erru pt M 0=ON Execut e t he instructio n EIX to en able inte rrup t M 1=ON SR6 23=0 int erru pt disable d M 2=ON SR62 3=1 in terrupt en able d M 3=ON Y0.0 0.5 sec 0.5 sec Additional remarks There are 7 types of interrupt tasks: 1. External interrupts (I000–I115) I000 specifies that the input X0.0 is falling edge triggered. I100 specifies that the input X0.1 is rising edge triggered. 6_ I101 specifies that the input X0.1 is falling edge triggered. The rest can be done in the same manner. 2.
Hardware high-speed comparison interrupts (I200–I253) This type of interrupts can be further divided into 6 groups. Each group corresponds to a hardware high-speed counter (refer to the DCNT instruction API 1003 for more information). Each group has with 4 interrupt numbers (refer to the DHSCS instruction API 1005 for more information). For example, the interrupt numbers for the first group are I200–I203, and for the second group are I210–I213. 3. Software high-speed comparison interrupts (I260–I267) There are 8 interrupts for software high-speed comparisons and these 8 interrupts are shared with 8 high-speed counters. 4.
Communication interrupts You can use the communication interrupt as the RS instruction; that is, receiving a specific character triggers the interrupt, or you can use it as a general interrupt. Refer to the COMRS instruction (API1812) for more information. COM1: I300 6-161