Question: Implement a counter using external interrupt. Assume INT0 is connected to a switch that is normally high. Write a program that counts the number of
Implement a counter using external interrupt.
Assume INT0 is connected to a switch that is normally high. Write a program that counts the number of times a falling edge appears on INT0 and put that value on PORTB.
Furthermore, whenever the count is equal to the last two digit of your roll number it should toggle an output pin.(roll no. 50) write code for avr
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
Ans INCLUDE M32DEWFINC EQU CNTEDGE 0x0 EQU ROLLNO 0x14 suppose roll number 20 ORG ... View full answer
Get step-by-step solutions from verified subject matter experts
