Question
( You can show the Assembly language code only ) Design a task of interrupt using the embedded timer0 in the PIC16F1619. All the program
(You can show the Assembly language code only)
Design a task of interrupt using the embedded timer0 in the PIC16F1619.
All the program code will be written in assembly language.
Procedure
1. Connect two LEDs (one red and one green), a pushbutton, and a piezoelectric speaker to the pins of available port on Curiosity board.
2. Write a program code in assembly language to perform the following tasks in sequence:
a) blink the two LEDs alternately with 1.5 second blinking rate continuously.
b) when the pushbutton is pushed momentarily, it will trigger timer0 starting to count. Timer0 will generate an interrupt (set the interrupt flag) when the count rolls over (overflow). Use timer0 to implement the 2-second delay before triggering the piezoelectric speaker.
c) the piezoelectric speaker sounds a 500 Hz single tone for 2 seconds. d) the two LEDs continue to blink alternately with 1.5 second blinking rate.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started