Datasheet
22
UNI-DS6
MikroElektronika
page
VCC-BRD
J1
SW1
RN1
8x10K
R58
220
VCC-BRD
J13
J12
RA0
RA0
VCC-BRD
0V
up
pull
down
RA4 RE4
RE2
RA12
RB4 RF12
RB12 RG4
RC4 RG12
RC12 RH4
RD4 RJ4
RD12
USB-VBUS
RA6
RA14 RF6
RB6 RF14
RB14 RG6
RC6 RG14
RC14 RH6
RD6 RJ6
RD14
#RX232A
#TX232A
#SCL
#SDA
#SS1#
#SCK1
#MISO1
#MOSI1
USB-DP
RA0 RE0
RA8 RF0
RE6
RB0 RF8
RB8 RG0
RC0 RG8
RC8 RH0
RD0 RJ0
RD8
RA2
RA10 RF2
RF4
RB2 RF10
RB10 RG2
RC2 RG10
RC10 RH2
RD2 RJ2
RD10
RA5
RA13
RB5 RF13
RB13 RG5
RC5 RG13
RC13 RH5
RD5 RJ5
RD13
RA7
RA15 RF7
RF5
RF3
RB7 RF15
RB15 RG7
RC7 RG15
RC15 RH7
RD7 RJ7
RD15
#RX232B
#TX232B
#CS1#
#CS2#
#SS2#
#SCK2
#MISO2
#MOSI2
USB-DN
RA1 RE1
RA9 RF1
RE7
RE5
RE3
RB1 RF9
RB9 RG1
RC1 RG9
RC9 RH1
RD1 RJ1
RD9
RA3
RA11
RB3 RF11
RB11 RG3
RC3 RG11
RC11 RH3
RD3 RJ3
RD11
VCC-SW VCC-5V
CN20 CN21
Pull-up/pull-down resistors enable you to feed all microcontroller’s input pins with logic level when they are in idle state�
This level depends on the position of the pull-up/pull-down jumper (J1-J11)� The RA0 pin with the relevant jumper J1
and RA0 push button with jumper J13 are used here for the purpose of explaining the performance of pull-up/pull-down
resistors� The principle of their operation is the same for all other microcontroller pins�
In order to enable the PORTA pins to be
connected to pull-down resistors, it is necessary
to place jumper J1 in the Down position rst.
This enables any PORTA port pin to be supplied
with a logic zero (0V) in idle state over jumper
J1 and 8x10k resistor network� To provide the
RA0 pin with this signal, it is necessary to set
switch 1 on the DIP switch SW1 to the ON
position�
As a result, every time you press the RA0 push
button, the RA0 pin will be fed with a logic one
(VCC-BRD voltage), provided that jumper J13
is placed in the VCC-BRD position�
VCC-BRD
J1
SW1
RN1
8x10K
R58
220
VCC-BRD
J13
J12RA0
RA0
VCC-BRD
0V
up
pull
down
RA4 RE4
RE2
RA12
RB4 RF12
RB12 RG4
RC4 RG12
RC12 RH4
RD4 RJ4
RD12
USB-VBUS
RA6
RA14 RF6
RB6 RF14
RB14 RG6
RC6 RG14
RC14 RH6
RD6 RJ6
RD14
#RX232A
#TX232A
#SCL
#SDA
#SS1#
#SCK1
#MISO1
#MOSI1
USB-DP
RA0 RE0
RA8 RF0
RE6
RB0 RF8
RB8 RG0
RC0 RG8
RC8 RH0
RD0 RJ0
RD8
RA2
RA10 RF2
RF4
RB2 RF10
RB10 RG2
RC2 RG10
RC10 RH2
RD2 RJ2
RD10
RA5
RA13
RB5 RF13
RB13 RG5
RC5 RG13
RC13 RH5
RD5 RJ5
RD13
RA7
RA15 RF7
RF5
RF3
RB7 RF15
RB15 RG7
RC7 RG15
RC15 RH7
RD7 RJ7
RD15
#RX232B
#TX232B
#CS1#
#CS2#
#SS2#
#SCK2
#MISO2
#MOSI2
USB-DN
RA1 RE1
RA9 RF1
RE7
RE5
RE3
RB1 RF9
RB9 RG1
RC1 RG9
RC9 RH1
RD1 RJ1
RD9
RA3
RA11
RB3 RF11
RB11 RG3
RC3 RG11
RC11 RH3
RD3 RJ3
RD11
VCC-SW VCC-5V
CN20 CN21
In order to enable the PORTA pins to be
connected to pull-up resistors and the port
input pins to be supplied with a logic one (1),
it is necessary to place jumper J1 in the Up
position and jumper J13 in the GND position�
This enables any port PORTA input pin, when
it is in idle state, to be driven high (VCC-BRD)
over the 10k resistor�
As a result, every time you press the RA0 push
button, the RA0 pin will be fed with a logic zero
(0V), provided that switch 1 on the DIP switch
SW1 is set to the ON position�
VCC-BRD
J1
VCC-BRD
J13
VCC-BRD
0V
up
pull
down
In case that jumpers J1 and J13 are in the
same positions, pressure on any button will not
cause input pins to change their logic state�
Figure 17-6: Jumper J1 in pull-down and jumper J13 in pull-up position
Figure 17-7: Jumper J1 in pull-up and jumper J13 in pull-down position
Figure 17-8: Jumpers J1 and J13 in the same positions