Current location - Loan Platform Complete Network - Big data management - How to understand the Voidtime R0 _ ISR (Void) interrupt 1 used in single chip microcomputer?
How to understand the Voidtime R0 _ ISR (Void) interrupt 1 used in single chip microcomputer?
1, which is the interrupt function of timer 0.

2. Literally, you can see Timer 0- Timer 0, Interrupt-Interrupt.

3. After the timer is set to the initial value and turned on, when the counter counts to the number you set, a timer interrupt will be generated. Then, no matter what code your program is running at that time, it will jump to the function of ISRIMER 0, and then jump back to the previous code after running.

4.Void is rtimer 0 (void) interrupt 1 use 1 and cannot be changed. Write the function name like this.

Extended data

Scope of application of timer and matters needing attention

application area

1. In areas where the peak-valley electricity price difference is implemented, high-power electrical appliances can be used to operate automatically at the low electricity price stage.

2. Used to control household appliances that need timing switches. Such as drinking fountains, water heaters, air conditioners, rice cookers, advertising lighting, etc.

3. Used to control the power-on time. Such as: electric bicycle battery, mobile phone battery, battery charging.

4. occasions that need to be on and off frequently. Such as intermittent sprinkler irrigation of flower beds and lawns, periodic aerobic filtration of fish tanks and fountains, etc.

5. Automatic control of the family burglar alarm system.

Matters needing attention

1. The total power of electrical appliances connected to this product shall not exceed the rated power, and shall be used in indoor dry environment.

2. This product can be recycled, and the set program can be recycled.

3. Do not directly plug this product into the running electrical appliances.

4. When the electric appliance is connected to the timer, the switch state must be on.

5. Do not disassemble the timer without authorization during the warranty period. Once removed, the warranty service will be terminated. Please call a professional electrician or professional when you need maintenance.

References:

Baidu encyclopedia-timer