Easy
PIC
for dsPIC30
®
v7
page 23
The logic state of
all microcontroller
digital inputs may
be changed using
push buttons.
Tri-state DIP
switch SW7 is
available for selecting which logic state will be applied
to corresponding MCU pin when button is pressed, for
each I/O port separately. If you, for example, place
SW7.1 in VCC position, then pressing any of push
buttons in PORTB I/O group will apply logic one to
the appropriate microcontroller pin. The same goes
for GND. If DIP switch is in the middle position neither
of two logic states will be applied to the appropriate
microcontroller pin. You can disable pin protection
220ohm resistors by placing jumpers J5 and J6, which
will connect your push buttons directly to VCC or GND.
Be aware that doing so you may accidentally damage
MCU in case of wrong usage.
Headers Buttons
LEDs
connectivity
Figure 10-5: IDC10 male headers enable easy
connection with MikroElektronika accessory boards
With enhanced connectivity as one of the key features
of EasyPIC
™
v7 for dsPIC30
®
, we have provided two
connection headers for each PORT. I/O PORT group
contains one male IDC10 2x5 header (like CN3 on Figure
10-4) and one 1x10 row of connection pads (like CN5
on Figure 10-4). There is one more IDC10 header
available on the left side of the board, next to the section
with displays. These headers are all compatible with all
MikroElektronika accessory boards, and enable simple
connection.
LED (Light-Emitting
Diode) is a highly
efficient electronic
light source. When
connecting LEDs,
it is necessary to
place a current
limiting resistor in
series so that LEDs
are provided with
the current value specified by the manufacturer. The
current varies from 0.2mA to 20mA, depending on the
type of the LED and the manufacturer. The EasyPIC
™
v7
for dsPIC30
®
board uses low-current LEDs with typical
current consumption of 0.2mA or 0.3mA. Board contains
42 LEDs which can be used
for visual indication of the
logic state on PORT pins. An
active LED indicates that a
logic high (1) is present on
the pin. In order to enable
PORT LEDs, it is necessary
to enable the corresponding
DIP switch on SW10 (
Figure
10-7
).
Figure 10-7: SW10.1
through SW10.6
switches are used to
enable PORT LEDs
Microcontroller
Figure 10-6: Button press
level DIP switch (tri-state)
SMD resistor
limiting current
through the LED
In the far upper right section of the
board, there is a RESET button,
which can be used to manually
reset the microcontroller.
Reset Button