Question: Write an ISR for INT2 from Question 2 to count in BCD from 60 to 0, and when the counter reaches zero, reset the counter
Write an ISR for INT2 from Question 2 to count in BCD from 60 to 0, and when the counter reaches zero, reset the counter to 60. Assume all registers are in the Access bank. (Question 2 was: Write instructions to set up INT1 with high priority and INT2 with low priority, clear REG1 to set up as an up-counter, and load REG2 with 60H.)
This is for a PIC18F452.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
