Datasheet
Page 17
Programming/debugging is enabled when mikroProg™ is connected to the device. As shown on Figure 8-3, when programming/debugging
is nished, multiplexer reconnects programming/debugging pins so they can be used as I/Os. There’s no need to remove mikroProg™
connector. When mikroProg™ is removed, place jumpers over 2x5 male header in order to use programming/debugging pins as I/O, and
MCLR pin as reset (Figure 8-4). In programming/debugging mode MCLR pin is used by mikroProg™, otherwise it is used by MCU.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
PIC18F45K22
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nF
RESET
10K1K
MCU-VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
PIC18F45K22
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nF
RESET
10K1K
MCU-VCC
Figure 8-3: Multiplexer allows
the usage of programming pins
as I/O and MCLR pin as reset
when not in programming/
debugging mode
Figure 8-4: When mikroProg™
is removed place jumpers over
2x5 male header in order to
use programming pins as I/O
and MCLR pin as reset
Multiplexer decides pin function Programming pins just as I/Os