PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7...
Transcript of PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7...
![Page 1: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/1.jpg)
Page 1
PIC18FK
A compact starter kit with your favorite microcontroller and two mikroBUS™ sockets
PIC18FK
![Page 2: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/2.jpg)
Page 2
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
![Page 3: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/3.jpg)
Page 3
Introduction to clicker 2 for PIC18FK 4
Key features 5
Schematic 6
1. Power supply 7
2. PIC18F67K40 microcontroller 8
3. Programming the microcontroller 9
3.1 Programming with mikroBootloader 10
step 1 – Connecting clicker 2 for PIC18FK 10
step 2 – Browsing for .HEX file 11
step 3 – Selecting .HEX file 11
step 4 – Uploading .HEX file 12
step 5 – Finish upload 13
3.2 Xpress programmer 14
3.3 Programming with mikroProg programmer 15
mikroProg Suite for PIC® software 16
4. Buttons and LEDs 17
5. Power management and battery charger 18
6. Oscillators 19
7. USB connection 20
8. Pinout 21
8.1 mikroBUS™ pinout 22
9. click boards™ are plug and play! 23
10. Dimensions 24
Table of contents
![Page 4: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/4.jpg)
Page 4
clicker 2 for PIC18FK is a compact develompent
kit with two mikroBUS™ sockets for click board
connectivity. You can use it to quickly build your
own gadgets with unique functionalities and
features. It carries the PIC18F67K40, a 8-bit
microcontroller, two indication LEDs, two general
purpose buttons, a reset button, an on/off
switch, a li-polymer battery connector, a micro
USB connector and two mikroBUS™ sockets.
A mikroProg connector and a 2x26 pinout for
interfacing with external electronics are also
provided. The mikroBUS™ connector consists of
two 1x8 female headers with SPI, I 2C, UART, RST,
PWM, Analog and Interrupt lines as well as 3.3V,
5V and GND power lines. clicker 2 for PIC18FK
board can be powered over a USB cable.
Introduction to clicker 2 for PIC18FK
![Page 5: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/5.jpg)
Page 5
1 ON/OFF switch
2 16 MHz crystal oscillator
3 two 1x26 connection pads
4 mikroBUS™ sockets 1 and 2
5 Pushbuttons
6 Additional LEDs
7 LTC3586 USB power manager IC
8 Power and Charge indication LEDs
9 RESET button
10 Micro USB connector
11 PIC18F67K40 MCU
12 Li-Polymer battery connector
13 mikroProg programmer connector
14 PIC16F1454
9
10
11
3
4
5
6
12
13
1
2
14
3
4
5
6
8
7
Key features
![Page 6: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/6.jpg)
Page 6
VCC-3.3V VCC-5V
1
VCC-3.3V VCC-5V
2
ANRSTCSSCKMISOMOSI3.3VGND
PWMINTRXTX
SCLSDA
5VGND
MIKROBUS 1
MIKROBUS HOST CONN
ANRSTCSSCKMISOMOSI3.3VGND
PWMINTRXTX
SCLSDA
5VGND
MIKROBUS 2
MIKROBUS HOST CONN
VCC-BAT
VCC-BATVCC-BAT
VCC-3.3VVCC-BAT R510k
R610k
R101M
R12100k
R13100k
R14100kC33
0.1µF
R11
1k R8470
LD1LD2
LD3LED GREENC36
10µF
32
1 M1DMP2305U-7 2
1CN1
SHM1x2
R1
1k
R2
1k
456
123
91011
78
12131415
181920
1617
2122
26
232425
HDR1
456
123
91011
78
12131415
181920
1617
2122
26
232425
HDR2
AN
INT
SPI
PWM
SCL
RX
VCC-3.3V VCC-3.3V
GPIO
GPIO
VCC-3.3V VCC-3.3V
RE5
VCC-USB
VCC-USB
VCC-3.3VVCC-3.3VVCC-3.3V
VCC-3.3V
VCC-5V
VCC-5V VCC-5V VCC-5V
LDO3V3
LDO3V3
PWR-ENPWR-EN
VCC-BAT
VCC-3.3V
VCC-5V VCC-5V
VCC-3.3VLDO3V3LDO3V3
VCC-USB
VSYS
VSYS VSYS
VSYS
LDO3V3
PWR-EN
LDO3V3
FAULT
R15
2.2k
R16
10k
R18
3.3k
R20
10k
R171k
C180.1µF
R2716.9k
R23
1.69k
R2688.7k
R21
15k
R22105k
R19324k
C250.1µF
ILIM
01
ILIM
12
LDO
3V3
3
CLPR
OG
4
NTC
5
VOU
T46
VOU
T47
SW4
8
MO
DE
9
FB4
10
FB3
11
VC3
12
SWAB3 13VIN3 14VIN3 15VOUT3 16VOUT3 17EN3 18SWCD3 19
EN2
20EN
121
VIN
422
FB2
23VI
N2
24SW
225
SW1
26VI
N1
27FB
128
PRO
G29
CHRG
#30
GAT
E31
BAT32
EN433
VOUT34
VBUS35
VBUS36
SW37
FAULT#38
LTC3586
U2LTC3586EUFE
LD4C151µF
C171µF
C1610000pF
C1422µF
C3122µF
C3022µF
C271µF
C2810000pF
C3210µF
C2910pF
C192.2µF
C202.2µF
32
1
M2DMP2305U-7
L32.2µH
L2
2.2µH
L1 3.3µH
C24
300pF
C2133pFC2310pFC22
47µF
1
2
3
4
5
6SW1
JS202011AQN
R3010k
T1
VSYSVCC-3.3V
TX
SDA
T2T3
RE11
PIC18F67K40
RE02
RG03
RG14
RG25
RG36
VPP/MCLR/RG57
RG48
VSS9
VDD10
RF711
RF612
RF513
RF414
RF315
RF216
RF1
17
RF0
18
RG7
19
RG6
20
RA3
21
RA2
22
RA1
23
RA0
24
RH1
25
RH0
26
RA5
27
RA4
28
RC1
29
RC0
30
RC6
31
RC7
32
RC233RC334RC435RC536RB737VDD38RA739RA640VSS41RB642RB543RB444RB345RB246RB147RB048
RD7
49RD
650
RD5
51RD
452
RD3
53RD
254
RD1
55RH
356
RH2
57RD
058
RE7
59RE
660
RE5
61RE
462
RE3
63RE
264
U1
PIC18F67K40
VCC-3.3V
Y1
16MHz
45
123
J1
M1X5
RF1-VSENSE
RD0 RH2
RF4-GPIORF5-GPIO
RF4-GPIO
RF5-GPIO
RG4RG3
FB1
VCC-USB
DATA
USBD_NUSBD_P
RB4RB5
RD7-
LED
RH3-
LED
RD7-
LED
RH3-
LED
RF2-
BUTT
ON
RF3-
BUTT
ON
RF2-BUTTONRF3-BUTTON
C70.1µF
R3 27
R4 27
C50.1µF
C60.1µF
VCC-3.3V
VCC-3.3V
VCC-3.3V VCC-3.3V VCC-3.3V
C310µF
12345 ID
D+D-VBUS
GND
CN2
10118192-0001LF
C210pF
C110pF
45
123
J2
M1X5 UAR
T4-T
XU
ART4
-RX
LINK
RA51
GNDRA4
2
RA33
RC54
RC4
5
RC3
6
RC2
7
RC1
8
RA012
RA111
VUSB3V310
RC09
VDD
16
NC
15
NC
14
VSS
13 17
U3
PIC16F1454-I/ML
TGPG
C
TGPG
D
R31220
R25
220
TGPGC
TGPGD
TGPGCTGPGD
PGD
PGC
PGDPGC
TGMCLR
TGMCLR
TGMCLR
TGMCLR
MCLR
MCLR
VCC-3.3V
R2810k
PRG/MCLR
PRG/MCLR
C80.47µF
UART4-TX
UAR
T4-R
X
R34220
R35220
R32
1kR33
1k
R29100k
3
1
2
Q2
DMG3420U-7
3
1
2
Q1
DMG3420U-7
R2410k
TARGET-MCLR
TARGET-MCLR
R9100k
VCC-3.3VVCC-3.3V
RA0RA1
RA2
RB0RB1
RB2RB3
RA4RA5RF0
RE1RE0
RE2
RE3
RE4
RE7RE6
RC5RC4RC3
RF6
RG2RG7
RD4
RD3RD2RD1RH1
RC2RC6
RC7RG6
RH0
RD6RD5
RG1RG0
RF7RA3
RB6RB7
RG0RG1
RA2
RF6
RA4
RA5
RF0
RB0RB1RE0
RE1
RE3
RB2
RB2
RB3
RB3
RC2
RC2
RC6
RC6
RB6
RE6
RE7
RC3
RC3RC3
RC4
RC4RC4
RC5
RC5RC5
RE2
RE4
RC7
RG6
RA3
RF7
RE5
RD4
RH0
RH1
RD1
RD2
RD3
RB7
RA0
RA1
RG2
RG2
RG7
RG7
RA0 RA1
RD6
RD6RD6
RD5
RD5RD5
RG3
RD0
RG4
RH2
RB5RB4
RF1-
VSEN
SE
3
1
2
Q4
DMG3420U-7
3
1
2
Q3
DMG3420U-7
R37100k
VCC-3.3V
R3610k
VCC-3.3V
VCC-5V
VCC-5V
R7100k
clicker 2 for PIC18FK schematic
![Page 7: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/7.jpg)
Page 7
1. Power supply
You can supply power to the board with a micro USB cable provided
in the package. On-board voltage regulators provide the appropriate
voltage levels to each component on the board. Power LED (GREEN)
will indicate the presence of power supply.
You can also power the board using a Li-Polymer battery, via onboard
battery connector. On-board battery charger circuit enables you
to charge the battery over USB connection. LED diode (RED) will
indicate when battery is charging. Charging current is ~300mA and
charging voltage is 4.2V DC.t
Battery power supply
USBpower supply
Figure 1-1: Connecting USB power supply
Figure 1-2: Connecting Li-Polymer battery
Some click boards need more current than the USB connection can supply. For 3.3V clicks, the upper limit is 750 mA; for 5V clicks, it’s 500
mA. In those cases you would need to use the battery as the power supply, or the vsys pin on the side of the board.
NOTE
![Page 8: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/8.jpg)
Page 8
2. PIC18F67K40 microcontroller
The clicker 2 for PIC18FK development tool comes with the
PIC18F67K40 device. This 8-bit low power high performance
microcontroller is rich with on-chip peripherals and features
128KB of program memory and 3568 bytes of RAM.
Key MCU features∫ 128K bytes Program Flash
∫ 3568 Bytes Data SRAM
∫ 1024 Bytes Data EEPROM
Sleep mode: Lowest Power Consumption
![Page 9: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/9.jpg)
Page 9
∫ Using UART mikroBootloader,
∫ Using external mikroProg for PIC18FK programmer
∫ Using Xpress bootloader
Figure 3-1:PIC18F67K40 microcontroller
The microcontroller can be programmed in three ways:
3. Programming the microcontroller
![Page 10: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/10.jpg)
Page 10
You can program the microcontroller with a bootloader
which is preprogrammed by default. To transfer .hex file
from a PC to MCU you need bootloader software (UART
mikroBootloader) which can be downloaded from:
3.1 Programming with mikroBootloader
Figure 3-2: USB UART mikroBootloader window
step 1 – Connecting clicker 2 for PIC18FK
01
01
To start, connect the USB cable, or if already connected press the Reset button on your clicker 2 for PIC18FK. Click the Connect button within 5s to enter the bootloader mode, otherwise existing microcontroller program will execute.
After the mikroBootloader software is downloaded,
unzip it to desired location and start it.
https://download.mikroe.com/examples/starter-boards/clicker-2/pic18fk/clicker-2-pic18fk-mikrobootloader-v100.zip
clicker 2 for PIC18FK BootloaderWinRAR ZIP archive
clicker 2 for PIC18FK BootloaderFile folder
SoftwareFile folder
mikroBootloader.exeBootloader tool for mikroElektron...mikroElektronika
clicker 2 for PIC18FK PIC18F67K40 UART Bootloader v1.0.0.hexHEX File
FirmwareFile folder
![Page 11: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/11.jpg)
Page 11
step 3 – Selecting .HEX file step 2 – Browsing for .HEX file
Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX
01 01
02
01
02
Click the Browse for HEX button and from a
pop-up window (Figure 3.4) choose the .HEX file
which will be uploaded to MCU memory.
Select .HEX file using open dialog window.
Click the Open button.
HEX.file01
![Page 12: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/12.jpg)
Page 12
step 4 – Uploading .HEX file
Figure 3-5: Begin uploading Figure 3-6: Progress bar
01
01 01To start .HEX file bootloading click the Begin uploading button.
Progress bar enables you to monitor .HEX file uploading.
01
![Page 13: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/13.jpg)
Page 13
step 5 – Finish upload
Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job
01
01
02
Click OK button after the uploading process is finished.
Press Reset button on clicker 2 for PIC18FK board and wait
for 5 seconds. Your program will run automatically.
![Page 14: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/14.jpg)
Page 14
3.2 XPRESS bootloader
The XPRESS bootloader allows for easy drag and drop programming.When plugged into the USB it will show itself as a flash drive onto which you can simply drag a hex file for your MCU. The hex file can be generated by any compiler. After the hex file is placed onto the clicker 2 for PIC18FK it will program the main MCU. This functionality is enabled by the PIC16F1454 which acts both as a drag and drop programmer and Virtual COM port. The additional bootloader in the main MCU is not needed for this to work.
![Page 15: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/15.jpg)
Page 15
The microcontroller can be programmed with external mikroProg
for PIC programmer and mikroProg Suite for PIC software.
The external programmer is connected to the development
system via 1x5 connector Figure 3-9. mikroProg is a fast USB
2.0 programmer with hardware debugger support. It supports
PIC10®, dsPIC30/33®, PIC24® and PIC32® devices in a single
programmer. It supports over 570 microcontrollers
from Microchip®. Outstanding performance,
easy operation and elegant design are its key
features.
3.3 Programming with mikroProg programmer
Figure 3-9: mikroProg connector
GND
RESE
T# PGD
PGC
VCC
3.3V
clicker 2 forPIC18FK 1x5programmingheaders
![Page 16: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/16.jpg)
Page 16
mikroProg Suite for PIC software
mikroProg programmer requires
special programming software
called mikroProg Suite for PIC®. This
software is used for programming
of ALL Microchip® microcontroller
families, including PIC10®, PIC12®,
PIC16®, PIC18®, dsPIC30/33®, PIC24®
and PIC32®. Software has intuitive
interface and SingleClick™ programming
technology. Just by downloading the
latest version of mikroProg Suite your
programmer is ready to program new
devices. mikroProg Suite is updated
regularly, at least four times a year, so
your programmer will be more and more
powerful with each new release.
Figure 3-10: Main window of mikroProg Suite for PIC® programming software
PIC18FK
![Page 17: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/17.jpg)
Page 17
Figure 4-1: Two LEDs, two buttonsand a reset button
4. Buttons and LEDs
The board also contains a 01 reset button and
a pair of 02 buttons and 03 LEDs, as well as
an ON/OFF switch. The RESET button
is used to manually reset the
microcontroller—it generates
a low voltage level on the
microcontroller’s reset pin. LEDs
can be used for visual indication
of the logic state on two pins (RH3
and RD7). An active LED indicates
that a logic high (1) is present on the pin.
Pressing any of the two buttons can change
the logic state of the microcontroller pins (T2 and
T3) from logic high (1) to logic low (0).
03 02 01
![Page 18: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/18.jpg)
Page 18
5. Power management and battery charger
clicker 2 for PIC18FK features
LTC®3586-2, a highly integrated
power management and battery
charger IC that includes a current
limited switching PowerPath
manager. LTC®3586 also enables
battery charging over a USB
connection.
Figure 5-1: power management and battery charger IC
![Page 19: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/19.jpg)
Page 19
6. Oscillators
Board is equipped with 16MHz crystal oscillator (X1) circuit that provides
external clock waveform to the
microcontroller OSC1 and OSC2 pins.
This base frequency is suitable for further
clock multipliers and ideal for generation
of necessary USB clock, which ensures
proper operation of bootloader and your
custom USB-based applications.
Figure 6-1:16MHz crystal oscillator module (X1)
![Page 20: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/20.jpg)
Page 20
PIC18FK microcontrollers has an integrated USB
module, which enables you to implement USB
communication functionality to your clicker 2 board.
Connection with target USB host is done over a
micro USB connector which is positioned next to the
battery connector.
7. USB connection
Figure 7-1: Connecting USB cable to clicker 2
![Page 21: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/21.jpg)
Page 21
SPI LinesInterrupt LinesAnalog LinesDigital lines I2C Lines UART lines PWM lines
8. PinoutVSYSRSTReset pin System power supplyGNDGNDReference Ground Reference GroundRG0RG1RA2RE2RF6RE4RA4RC7RA5RG6RF0RA3RB0RF7RB1RE5RE0RD4RE1RH0RE3RH1RB2RD1RB3RD2RC2RD3RC6RB7RB6RA0RE6RA1RE7RG2RC3RG7RC4RD6RC5RD53.3V3.3V3.3V power supplyGNDGNDReference Ground
Pin functions Pin functions
Digital I/O lines
SPI1 Lines
Interrupt Lines
Analog Lines
RXTX SCK
SCL SDISDA SDO
UART2 Lines
I2C2 Lines
PWM lines
Digital I/O lines
3.3V power supplyReference Ground
![Page 22: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/22.jpg)
Page 22
RB5RB3RC6
RG2
RC2
RB4
RG7
RB2
RD6
5V
RD6
5V
RD5
RD5
RD5
GND
RXInterrupt linePWM line
RX
PWM line
TX
TX
Interrupt line
SCL
5V power supply
SCL
5V power supply
SDA
Reference ground
SDA
Reference ground
UART3 lines
UART2 lines
I2C2 lines
I2C2 lines
RC3
RA1
RC3
RA0
3.3V
RC4
3.3V
RG4
RC4
RG3
GND
RC5
GND
RH2
RC5
RD0
SPI1 lines
SPI1 lines
SCK
Analog line
SCK
Analog line
3.3V power supply
MISO
3.3V power supply
MISO
Digital lines*
Reference ground
MOSI
Reference ground
MOSI
Figure 9-1: mikroBUS™ individual and shared lines
8.1 mikroBUS™ pinouts
Digital lines*
SPI LinesInterrupt LinesAnalog LinesDigital lines I2C Lines UART lines PWM lines
![Page 23: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/23.jpg)
Page 23
Up to now, MikroElektronika has released more
than 300 mikroBUS™ compatible click boards™.
On the average, three click boards are released
per week. It is our intention to provide you with
as many add-on boards as possible, so you will
be able to expand your development board with
additional functionality. Each board comes with a
set of working example code. Please visit the click
boards™ webpage for the complete list of currently
available boards: mikroe.com/click
9. click boards™ are plug and play!
Figure 10-1: clicker 2 for PIC18FK driving click boards™
![Page 24: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/24.jpg)
Page 24
10. Dimensions
![Page 25: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/25.jpg)
Page 25
DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution. Any modification of this manual is prohibited.
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary.
TRADEMARKS
The MikroElektronika name and logo, mikroC, mikroBasic, mikroPascal, Visual TFT, Visual GLCD, mikroProg, Ready, MINI, mikroBUS™, EasyPIC, EasyAVR, Easy8051, click boards™ and mikromedia are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners’ benefit, with no intent to infringe.
Copyright © 2017 MikroElektronika. All Rights Reserved.
HIGH RISK ACTIVITIES
The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazardous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.
![Page 26: PIC18FK - Mikroelektronika · m 0 1 i l i m 1 2 l d o 3 v 3 3 c p r o g 4 n t c 5 v o u t 4 6 t 4 7 s w 4 8 m o d e 9 f b 4 1 0 3 1 v c 2 swab3 13 vin3 14 vin3 15 vout3 16 vout3 17](https://reader033.fdocuments.in/reader033/viewer/2022042016/5e74b99502c24d238a7cf32e/html5/thumbnails/26.jpg)
Page 26
If you want to learn more about our products, please visit our web site at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional
information, please place your ticket at www.mikroe.com/support
If you have any questions, comments or business proposals,
do not hesitate to contact us at [email protected]