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
EasyAVR
USB
4
EasyAVR4 User
’
s Manual
MikroElektronika
Development
tools
1
14
4
page
LL
EE
DD
ss
Light Emitting Diodes (LEDs) are the most commonly used components, usually for dis-
playing pin’s digital state. EasyAVR4 has 32 LEDs that are connected to the microcon-
troller’s PORTA, PORTB, PORTC and PORTD.
LEDs
Figure 14.
Light Emitting Diodes
Each group of eight LEDs can be enabled or disabled using the switch SW2. Fig. 15. illus-
trates the connection of a LEDs to PORTA 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.