Microcontroller Applications
Understanding the 2-to-4 Decoder on the
Target Board
Seven-Segments on Board 1
4 x Transistors
RA5
RA4
2-to-4 Decoder
Seven-Segments on Board 2
4 x Transistors
RA5
RA4
2-to-4 Decoder
Circuit Diagram
PORTAbits.RA5 = 0;
PORTAbits.RA4 = 0;
PORTAbits.RA5 = 0;
PORTAbits.RA4 = 1;
Lab 6 Ex 1
PORTAbits.RA5 = 1;
PORTAbits.RA4 = 0;
PORTAbits.RA5 = 1;
PORTAbits.RA4 = 1;
5