How to use C language to set up the following question. for MPLAB homework Steps Connect the following components to the PIC24HJ device on your breadboard: 1. 2 LEDs: a) LED 0 to RB13 (is IC pin) b)...



How to use C language to set up the following question. for MPLAB homework


Steps

Connect the following components to the PIC24HJ device on your breadboard:

1. 2 LEDs:

a) LED 0 to RB13 (is IC pin)

b) LED 1 to RB14 (is IC pin)




2. 1 Push Button:

a) PB to RB11 (is IC pin)




3. Write a state machine in C language to perform the following LED sequence.

a) Both LED 0 and LED 1 are turned on, i.e. 11

b) Press the PB to start the repeating LED sequence with one second between patterns: 10, 01, 11,00 (1 LED is on , 0 LED IS off)




c) Release the button to stop LED at 00. Press the PB will go to (b).




Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here