0% found this document useful (0 votes)
69 views5 pages

Lab6 On Seven-Segment Overview

The document discusses the application of a 2-to-4 decoder in microcontroller projects, specifically in relation to two target boards featuring seven-segment displays. It includes circuit diagrams and examples of how to set the PORTAbits for controlling the decoders. The focus is on understanding the functionality and implementation of the decoder in the context of the hardware setup.

Uploaded by

Fan Hong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views5 pages

Lab6 On Seven-Segment Overview

The document discusses the application of a 2-to-4 decoder in microcontroller projects, specifically in relation to two target boards featuring seven-segment displays. It includes circuit diagrams and examples of how to set the PORTAbits for controlling the decoders. The focus is on understanding the functionality and implementation of the decoder in the context of the hardware setup.

Uploaded by

Fan Hong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like