
Using the STK526
2-16
STK526 rev. B Hardware User Guide
7709B–AVR–05/07
2.6
On-board Resources
2.6.1
Joystick
The 4+1 way joystick offers an easy user interface implementation for a USB application
(it can easily emulate mouse movements, keyboard inputs, etc.).
Pushing a push-button causes the corresponding signal to be pulled low, while releasing
(not pressed) causes an H.Z state on the signal. The user must enable internal pull-ups
on the input pins, removing the need for an external pull-up resistors on the push-button.
Figure 2-12 .
Joystick Schematic
Figure 2-13 .
Joystick Implementation
2.6.2
LEDs
The STK526 includes 4 green LEDs implemented on one line. They are connected to
the low nibble of “Port D” of AT90USB82/162 (PORTD[3..0]).
To light ON a LED, the corresponding port pin must drive to high level. To light OFF a
LED, the corresponding port pin must drive a low level. It is the opposite method used in
STK500.
Select
5
Lef t
7
Up
3
Right
6
Down
4
Com1
1
Com2
2
SW3
TPA511G
PB[7..0]
PB0
PB4
PB5
PB6
PB7
Select
5
Lef t
7
Up
3
Right
6
Down
4
Com1
1
Com2
2
SW3
TPA511G
PB[7..0]
Select
5
Lef t
7
Up
3
Right
6
Down
4
Com1
1
Com2
2
SW3
TPA511G
PB[7..0]
P
Содержание STK526
Страница 1: ...STK526 Rev B Hardware User Guide...