EasyPIC4 User
’
s Manual
1
16
6
page
M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D
MikroElektronika
Development
tools
LL
EE
DD
ss
EasyPIC
ICD
4
Light Emitting Diodes (LEDs) are the most commonly used components, usually for
displaying pin’s digital state. EasyPIC4 has 36 LEDs that are connected to the
microcontroller’s PORTA, PORTB, PORTC, PORTD and PORTE.
LEDs
Figure 18.
Light Emitting Diodes
Each group of eight LEDs can be enabled or disabled using the switch SW2. The
exception is PORTE which has 4 LEDs and is connected to the same switch as
PORTA.
Fig. 19. illustrates the connection of a LEDs to PORTB of the microcontroller. A
resistor is used in series with the LED to limit the LED's current. In this case the
resistor's value is 1K.