Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Construct an ASM chart for this problem. For this task you use the MicroStick II and the breadboard and interface the following components. Two pushbuttons
Construct an ASM chart for this problem.
For this task you use the MicroStick II and the breadboard and interface the following components. Two pushbuttons will be connected to RB12 and RB14 similar to the schematic created in Task 1. You will use the pushbuttons purchased as a part of your lab components. Two LEDs will be connected to RB1 and RB15. Resistors (910 ohm) should be connected to the cathode of each LED. The other terminal of the resistor should be connected to a Vss (GND) pin of the PIC24, which is either pin 19 or 8. The constructed circuit should resemble the circuit shown in Figure 3. Implement the following LED/Switch I/O problem: 1. Turn on LED1 (RB15). On a press and release of pushbutton SW1, turn off the LED1 and go to step 2. 2. After a press and release of a pushbutton (SW1), blink LED1 two times and the freeze the LED1 on. 3. After a press and release of a pushbutton (SW1), if SW2 = 0, go to (1), else go to the next step. 4. When the pushbutton (SW1) is pressed and held down, blink LED2 five times per second. LED2 should be off if SW1 is not pressed. After the second release, go to (5). 5. Blink LED2 rapidly (twice as fast as step 4). On press and release of the pushbutton (SW2), go to (1). Your first task should be to determine the states required and construct an ASM chart for implementing your assigned LED/switch I/O problem. For this task you use the MicroStick II and the breadboard and interface the following components. Two pushbuttons will be connected to RB12 and RB14 similar to the schematic created in Task 1. You will use the pushbuttons purchased as a part of your lab components. Two LEDs will be connected to RB1 and RB15. Resistors (910 ohm) should be connected to the cathode of each LED. The other terminal of the resistor should be connected to a Vss (GND) pin of the PIC24, which is either pin 19 or 8. The constructed circuit should resemble the circuit shown in Figure 3. Implement the following LED/Switch I/O problem: 1. Turn on LED1 (RB15). On a press and release of pushbutton SW1, turn off the LED1 and go to step 2. 2. After a press and release of a pushbutton (SW1), blink LED1 two times and the freeze the LED1 on. 3. After a press and release of a pushbutton (SW1), if SW2 = 0, go to (1), else go to the next step. 4. When the pushbutton (SW1) is pressed and held down, blink LED2 five times per second. LED2 should be off if SW1 is not pressed. After the second release, go to (5). 5. Blink LED2 rapidly (twice as fast as step 4). On press and release of the pushbutton (SW2), go to (1). Your first task should be to determine the states required and construct an ASM chart for implementing your assigned LED/switch I/OStep 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