Question: Background We're going to design a simple C program today to which is used to read in 3 switches on the board, and then selectively

Background We're going to design a simple C program today to which is used to read in 3 switches on the board, and then selectively turn on some LEDS. You'll need to refer to the PIC trainer manual that is posted on Blackboard. Assignment Print out this last sheet one per team. You are to design, code, and implement a program that reads three debounced switches, S10, S11, and S12 on the board, using a parallel port, and then writes an output on another parallel port peripheral with the following functionality: If input switch S10 is on, the RED LEDs on the board (LED3, LED6) should be on. If input switch S11 is on, the AMBER LEDs on the board (LED4, LED7) should be on. Ignore LED9 & LED 10 for now. If input switch S12 is on, the GREEN LEDs on the board (LEDS, LED8) should be on You will need to select available GPIO pins to serve as inputs and program the port to read them. You will also need to select other port pins to serve as outputs, and program them appropriately. Remember that PORTB pins 6&7 are NOT available, as they are used by the ICE Once you select your port pins for input & output, create a wiring diagram for the lab. Refer to the board documentation for the schematics and connector designations. After you have your wiring diagram complete, you will need to manually wire S10-S12 and the LEDs to the GPIO ports using your breadboard wires. Background We're going to design a simple C program today to which is used to read in 3 switches on the board, and then selectively turn on some LEDS. You'll need to refer to the PIC trainer manual that is posted on Blackboard. Assignment Print out this last sheet one per team. You are to design, code, and implement a program that reads three debounced switches, S10, S11, and S12 on the board, using a parallel port, and then writes an output on another parallel port peripheral with the following functionality: If input switch S10 is on, the RED LEDs on the board (LED3, LED6) should be on. If input switch S11 is on, the AMBER LEDs on the board (LED4, LED7) should be on. Ignore LED9 & LED 10 for now. If input switch S12 is on, the GREEN LEDs on the board (LEDS, LED8) should be on You will need to select available GPIO pins to serve as inputs and program the port to read them. You will also need to select other port pins to serve as outputs, and program them appropriately. Remember that PORTB pins 6&7 are NOT available, as they are used by the ICE Once you select your port pins for input & output, create a wiring diagram for the lab. Refer to the board documentation for the schematics and connector designations. After you have your wiring diagram complete, you will need to manually wire S10-S12 and the LEDs to the GPIO ports using your breadboard wires
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
