Current location - Education and Training Encyclopedia - Graduation thesis - Registration paper
Registration paper
MOV assignment instruction, which means assigning a constant of 20 to the special register SMB34, which is the time interval register of timing interrupt, so the purpose of this instruction is to set the time interval of timing interrupt to 0 to 20 ms ..

ATCH is an interrupt connection instruction, which means that the event number of the interrupt INT0 is set to 10, and the event number 10 means the timed interrupt 0 (the content indicated by the event number is fixed, please refer to the manual for details. )。

ENI's instruction is to start the interrupt.

The general meaning of this program is to start a timed interrupt INT0 at a time interval of 20 ms, that is, the program will execute the interrupt program INT0 every 20 ms..

Hope to adopt. . . . . .