Professional Documents
Culture Documents
v7
USER'S GUIDE
microcontrollers supported Supports 3.3V and 5V devices Easily add extra boards Four connectors for each port Fast USB 2.0 programmer and
The ultimate PIC board Dual Power Supply mikroBUS sockets Amazing Connectivity In-Circuit Debugger
To our valued customers
From the day one, we in MikroElektronika gave ourselves the highest possible goals in pursuit of excellence.
That same day, the idea of EasyPIC development board was born. And we all grew together with EasyPIC.
In its each and tiniest piece we had put all of our energy, creativity and sense of whats best for an engineer.
Ive personally assembled hundreds of early EasyPIC boards myself with my home soldering iron.
EasyPIC PRO follows the same path. With the new 7th generation of high pin count PIC boards it emerged
as a unified and clear concept, supporting both 5V and 3.3V microcontrollers. Now we proudly say that it's
one of a kind in the world - good looking, powerful and easy to use.
You made the right choice. But the fun has only just begun!
Nebojsa Matic,
Owner and General Manager
of MikroElektronika
Introduction Communication
Table of contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displays
Default MCU card LCD 2x16 characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Supported microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . 08 GLCD 128x64px . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Touchpanel controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Programmer/debugger
On-board programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Other modules
Installing programmer drivers . . . . . . . . . . . . . . . . . . . . . . 14 Piezo Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Programming software . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 DS1820 - Digital Temperature Sensor . . . . . . . . . . . . . . 30
mikroICD - In Circuit Debugger . . . . . . . . . . . . . . . . . . . 16 LM35 - Analog Temperature Sensor . . . . . . . . . . . . . . . . 31
ADC inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Connectivity I2C EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Input/Output Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Output voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
mikroBUS sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Additional GNDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Click Boards are plug and play . . . . . . . . . . . . . . . . . . . . 21 Whats Next? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
page 3
Introduction
introruction
For the first time in history we have managed to combine all the features
of BIGPIC6 and LV18F v6 boards, which supported high pin count PICs
into the unique EasyPIC PRO v7. Supporting microcontrollers in both 5V
and 3.3V power supply technology, this board is truly fantastic tool for
development. We have put a lot of effort into board design, making it
easy to use, and we have placed lots of modules that will help you in
your work. Newly redesigned MCU sockets are here to stay. They are
well organized and cover all high-pin-count PIC microcontrollers in
TQFP packaging. We carefully picked high-quality components and
chose a 2.4mm PCB, which makes this board especially durable.
We hope you will enjoy it as much as we do.
Two Connectors for each port Everything is already here 3.3V and 5V power supply For easier connections
Amazing connectivity mikroProg on board
Multimedia peripherals mikroBUS support
EasyPIC PRO v7 is all about Powerful on-board mikroProg EasyPIC PRO v7 is among few Just plug in your mikroBUS
connectivity. Having two programmer and In-Circuit development boards which board, and its ready to work.
different connectors for debugger can program support both 3.3V and 5V We picked up a set of the
each port, you can connect and debug nearly 100 microcontrollers. This feature most useful pins you need
accessory boards, sensors and microcontrollers. You will greatly increases the number of for development and made a
your custom electronics easier need it, whether you are a supported MCUs.Its like having pinout standard you will enjoy
then ever before. professional or a beginner. two boards instead of one! using.
introduction
PIC18F87K22 is the default microcontoller! System Specification
PIC18F87K22 is the default chip of EasyPIC PRO v7. - Great choice for both beginners and
power supply
Featuring nanoWatt XLP technology, it has 16 MIPS
professionals 723V AC or 932V DC
operation, 128K bytes of linear program memory, - Rich with modules or via USB cable (5V DC)
3896 bytes of linear data memory, and support for - Comes with examples for mikroC,
power consumption
a wide range of power supply from 1.8V to 5V. Its mikroBasic and mikroPascal compilers
~90mA at 5V when all peripheral
loaded with great modules: 69 General purpose I/O
modules are disconnected
pins, 24 Analog Input pins (AD), internal Real time
clock and calendar (RTCC), support for Capacitive board dimensions
266 x 220mm (10.47 x 8.66 inch)
Touch Sensing using Charge Time Measurement Unit
(CTMU), six 8-bit timers and five 16-bit timers. It
also has ten CCP modules, three Comparators and weight
475g (1.0472 lbs)
two MSSP modules which can be either SPI or I2C.
Package contains
EasyPIC PRO v7
page 5
Power supply
power supply
2. Using adapter 3 4
Set J2 jumper to
EXT position
EasyPIC PRO v7
page 7
Default MCU card
supported MCUs
Microcontrollers are supported using specialized MCU cards containing 104 pins, which Default MCU card that comes with the EasyPIC PRO v7 package is shown on Figure
are placed into the on-board female MCU socket. Currently, there are three types of cards: 4-1. It contains PIC18F87K22 microcontroller which is loaded with on-chip modules
Standard 80-pin TQFP, Ethernet 80-pin TQFP card and Ethernet 100-pin TQFP and is a great choice for both beginners and professionals. After testing and building
PF card. Standard card supports 80-pin PIC18Fxxxx, PIC18FxxJxx and PIC18FxxKxx the final program, this card can also be taken out of the board socket and used in your
microcontrollers, with or without USB support. It contains several SMD jumpers, which final device.
are supposed to be placed or removed, depending on the microcontroller.
3 VCAP jumper. Some PIC18FK and all PIC18FJ microcontrollers have cores that
work on 1.8V-2.5V voltage range, and peripherals that work with 3.3V and
2
6 5V voltages. Internally, those microcontrollers have power regulators which
adjust the core voltage levels. In order for those devices to have a stable
operation of the core, manufacturer recommends that decoupling capacitive
filters should be provided, and connected between specific microcontroller
1 5 pins designated with VCAP and GND. This MCU card provides a VCAP jumper
which is used for this purpose. Jumper is removed by default.
4 USB communication lines. These two jumpers, when in USB position, connect
3 D+ and D- lines of the on-board USB connector with RF3 and RF4 microcontroller
pins. Since PIC18F87K22 doesn't support USB, jumpers are in I/O position.
4 5 VUSB line jumper. For PIC18F8xJ5x devices, this jumper should be connected
to VCC for enabling internal USB controller. Since PIC18F87K22 doesn't support
USB, this jumper is in I/O position.
VCC
RC4
RC2
RB7
RB1
RB3
RB5
RJ3
RJ6
103
101
99
97
95
93
91
89
87
85
83
81
79
HD4D
GND 104
102
100
98
96
94
92
90
88
86
84
82
GND 80
RC5
RC3
RB0
RB2
RB4
RB6
RJ2
RJ7
VCC VCC
E1 E2
10uF 10uF
VCC
RH1
RH0
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RE2
RE3
RE4
RE5
RE6
RE7
RJ0
RJ1
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
U1
RH1
RH0
RJ0
RJ1
RE2
RE3
RE4
RE5
RE6
RE7
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
VDD
GND
RH2 1 60 RJ2
RH2 RJ2
RH3 2 59 RJ3
RH3 RJ3
RE1 3 58 RB0
RE1 RB0
RE0 4 57 RB1
VCC 1 2 GND RE0 RB1 GND 78 77 VCC
RG0 5 56 RB2
3 4 RG0 RB2 RJ4 76 75 RJ5
RG1 6 55 RB3
5 6 RG1 RB3 RC6 74 73 RC7
RG2 7 54 RB4
RJ1 7 8 RJ0 RG2 RB4 RC1 72 71 RC0
RG3 8 53 RB5
RD7 9 10 RD6 RG3 RB5 RA5 70 69 RA4
MCLR# 9 52 RB6 C1 22pF
RD5
RD3
11
13
12
14
RD4
RD2
VCC J1B RG4 10
MCLR
RG4
PIC18F87K22 PGC/RB6
GND
51
RA1
68
66
67
65 RA0
11 50 OSC2
RD1
RE7
15
17
16
18
RD0
RE6
VCAP 12
GND
VCCcore/Vcap/VDD
80pin TQFP OSC2/RA6
OSC1/RA7
49 OSC1
X1
16MHz
RA3 64
62
63
61
RA2
RF7 13 48
RE5 19 20 RE4 RF7 VDD 60 59
RF6 14 47 RB7
RE3 21 22 RE2 E3 RF6 PGD/RB7 RF1 58 57 RF0
RF5 15 46 RC5 C2 22pF
RH0 23 24 RH1 10uF RF5 RC5 RH5 56 55 RH4
RF4/DP 16 45 RC4
VCC 25 26 GND RF4/D+ RC4 GND 54 53 VCC
RF3/DM 17 44 RC3
RF3/D- RC3
HD1A RF2 18 43 RC2 HD3C
RF2 RC2
RH7 19 42 RJ7
ENVREG/RF0
RH7 RJ7
RH6 20 41 RJ6
RF1/VUSB
RH6 RJ6
AGND
AVCC
J2
GND
VDD
RH5
RH4
RA3
RA2
RA1
RA0
RA5
RA4
RC1
RC0
RC6
RC7
RF4
RJ4
RJ5
RF4/DP VCC VCC VCC VCC
DP
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
J3 C3 C4 C5 E6
RF3
100nF 100nF 100nF 10uF
RF3/DM
ENR/RF0
RF1/USB
DM
RH5
RH4
RA3
RA5
RA2
RA1
RA0
RA4
RC1
RC0
RC6
RC7
RJ4
RJ5
VCC VCC
VCC VCC
J4 J5
RF1 RF0
RF1/USB ENR/RF0
E4 E5
10uF 10uF
GND
38 MCLR#
GND
RH6
RH2
RG0
RG2
RE1
RF6
RF4
RF2
DM
28
30
32
34
36
40
42
44
46
48
50
52
HD2B
27
29
31
33
35
37
39
41
43
45
47
49
51
RH7
RH3
RG1
RG3
RG4
VCC
VCC
RE0
RF7
RF5
RF3
DP
EasyPIC PRO v7
page 9
supported MCUs
Figure 4-2: On-board Figure 4-3: Place the Figure 4-4 Properly
1 2 3
MCU socket has silksreen MCU card on the socket placed MCU card will
markings which will help so the pins are aligned have equally leveled
you to correctly orient the correctly. pins.
MCU card before inserting.
supported MCUs
MikroElektronika currently offers total of five populated MCU cards with
different microcontrollers. You can also purchase empty PCB cards that you
can populate on your own and solder any supported microcontroller you need in
your development. This way your EasyPIC PRO v7 board becomes truly flexible and
reliable tool for almost any of your PIC projects. MCU cards can also be used in your final
devices. For complete list of currently available MCU cards, please visit the board webpage:
http://www.mikroe.com/eng/products/view/815/easypic-pro-v7-development-system/
Figure 4-5: Standard 80-pin Figure 4-6: Standard Figure 4-7: Standard Figure 4-8: Ethernet
1 2 3 4
MCU card with PIC18F87J50, 80-pin MCU card with 80-pin MCU card with 80-pin MCU card
which supports USB. PIC18F8520. PIC18F8722. with PIC18F87J60
microcontroller with
internal ethernet module.
EasyPIC PRO v7
page 11
On-board
programming
programmer
What is mikroProg?
mikroProg is a fast USB 2.0 programmer with mikroICD hardware In-Circuit Debugger. Smart engineering allows mikroProg
to support all nearly 100 PIC18 devices in a single programmer. It also features a powerful mikroICD debugger which will be of
great help in your development. Outstanding performance and easy operation are among it's top features.
How do I start?
In order to start using mikroProg, and program your 1. Install the necessary software 2. Power up the board, and you are ready to go.
microcontroller, you just have to follow two simple - Install USB drivers - Plug in the programmer USB cable
steps: - Install mikroProg Suite for PIC software - LINK LED should light up.
EasyPIC PRO v7
page 13
Installing programmer drivers
programming
http://www.mikroe.com/downloads/get/1201/
mikroprog_for_pic_drivers_v200.zip
programming
mikroProg Suite for PIC
Installation wizard - 6 simple steps
On-board mikroProg programmer requires special programming software called
mikroProg Suite for PIC. This software is used for programming all of Microchip
microcontroller families, including PIC10, PIC12, PIC16, PIC18, dsPIC30/33, PIC24 and
PIC32. Software has intuitive interface and SingleClick programming technology.
To begin, first locate the installation archive on our website:
http://www.mikroe.com/downloads/get/1201/mikroprog_suite_for_pic_v229.zip
After downloading, extract the package and double click the executable setup
file, to start installation.
Step 1 - Start Installation Step 2 - Accept EULA and continue
EasyPIC PRO v7
page 15
mikroICD - In Circuit Debugger
programming
What is Debugging?
mikroICD
Every developer comes to a point where he has to monitor the How do I use the debugger? bugger
code execution in order to find errors in the code, or simply in-circuit de
to see if everything is going as planed. This hunt for bugs, or When you build your project for debugging, and program
errors in the code is called debugging. There are two ways the microcontroller with this HEX file, you can start the
to do this: one is the software simulation, which enables debugger using [F9] command. Compiler will change layout
you to simulate what is supposed to be happening on the to debugging view, and a blue line will mark where code
microcontroller as your code lines are executed, and the other, execution is currently paused. Use debugging toolbar in
most reliable one, is monitoring the code execution on the the Watch Window to guide the program execution, and
chip itself. And this latter one is called In-Circuit debugging. stop anytime. Add the desired variables to Watch Window and
"In-Circuit" means that it is the real deal - code executes right monitor their values. Complete guide to using mikroICD with Figure 5-2: mikroICD manual
on the target device. your compiler is provided with the EasyPIC PRO v7 package. explains debugging thoroughly
What is mikroICD?
Supported Compilers
programming
Here is a short overview of which debugging commands are supported in MikroElektronika compilers. You can see what each command does,
and what are their shortcuts when you are in debugging mode. It will give you some general picture of what your debugger can do.
Toolbar
Command Name Shortcut Description
Icon
Run To Cursor [F4] Executes the program until reaching the cursor position.
EasyPIC PRO v7
page 17
Input/Output Group
connectivity
It took us a while to realize that having PORT headers, PORT buttons and Figure 6-1: I/O group contains PORT headers, tri-state pull
PORT LEDs next to each other, and groupped together, makes development up/down DIP switch, buttons and LEDs all in one place
easier, and the entire EasyPIC PRO v7 cleaner and well organized. We have also
provided an additional PORT headers on the right side of the board, so you can access any pin you want from that side of the board too.
Tri-state DIP switches, like SW3 on Figure 6-2, are DATA BUS
used to enable 4K7 pull-up or pull-down resistor on
any desired port pin. Each of these switches has three
states:
1. middle position disables both pull-up and pull-
down feature from the PORT pin
2. up position connects the resistor in pull-up state
Figure 6-2: to the selected pin
Tri-state DIP 3. down position connects the resistor in pull-down
switch on PORTC state to the selected PORT pin.
Figure 6-3: Schematic of the single I/O group connected to microcontroller PORTC
EasyPIC PRO v7
page 19
mikroBUS sockets
connectivity
DATA BUS
Figure 7-1: Connection schematics of on-board mikroBUS host sockets
LightHz click microSD click DAC click DIGIPOT click SHT1x click
EasyPIC PRO v7
page 21
UART via RS-232
communication
communication
Modern PC computers, laptops and notebooks are
no longer equpped with RS-232 connectors and
Enabling USB-UART UART controllers. They are nowdays replaced with USB
connectors and USB controllers. Still, certain technology
enables UART communication to be done over USB connection.
Controllers such as FT232RL from FTDI convert UART signals to
the appropriate USB standard. In order to use USB-UART module on
EasyPIC PRO v7, you must first install FTDI drivers on your computer.
Drivers can be found on link bellow:
http://www.ftdichip.com/Drivers/VCP.htm
DATA BUS
EasyPIC PRO v7
page 23
communication
USB device
communication
USB is the acronym for Universal Serial Bus.
This is a very popular industry standard that
defines cables, connectors and protocols used Enabling USB
for communication and power supply between
computers and other devices. EasyPIC PRO v7
contains USB DEVICE connector (CN9) which
enables microcontrollers that support USB
DATA BUS
communication to establish a connection
with the target host (eg. PC, Laptop, etc). USB
data lines comming from the MCU socket are
dedicated to USB connector only, and are
not available via PORT headers. To enable Microcontroller with USB support
USB communication, you have to solder SMD should be soldered to the MCU
jumpers on the MCU card to the appropriate card with dedicated USB SMD
USB position. This only makes sense if the jumpers. Make sure to solder RF1,
MCU card contains microcontroller with RF3 and RF4 jumpers to USB
integrated USB controller. One of these position in order to connect USB
cards is Standard 80-pin MCU card with lines to USB connector.
PIC18F87J50 microcontroller. Figure 10-1: USB connection schematics
DATA BUS
Ethernet is a popular computer networking
technology for local area networks (LAN).
Systems communicating over Ethernet Enabling Eth. LEDs Figure 11-1:
divide a stream of data into individual
Ethernet connection schematics
packets called frames. Each frame contains
source and destination addresses and error-
checking data so that damaged data can be
detected and re-transmitted. EasyPIC PRO
v7 features standard RJ-45 connector which
enables microcontrollers that support Ethernet
communication to establish a connection with
a computer, router or other devices. All four
ethernet lines (TPOUT+, TPOUT-, TPIN+ and
TPIN-) are routed to the MCU card socket. In order to enable ethernet LEDs,
Only microcontrollers containing embedded you must enable SW5.5 (RA0) and
ethernet module soldered to 100-pin or 80- SW5.6 (RA1) DIP switches. This
pin TQFP Ethernet MCU cards can use these connects the LEDA and LEDB lines
lines and utilize ethernet connector. Additional to appropriate microcontroller pins.
signalization LEDs are available on the board.
EasyPIC PRO v7
page 25
LCD 2x16 characters
displays
IMPORTANT: In order to use PWM backlight both SW4.1 and SW4.3 switches must be
enabled at the same time.
displays
Graphical Liquid Crystal Displays, or GLCDs are used to GLCD module to perfectly and firmly fit into place.
display monochromatic graphical content, such as text, Display connector is routed to PORTB (control lines)
images, human-machine interfaces and other content. and PORTD (data lines) of the microcontroller sockets.
EasyPIC PRO v7 provides the connector and necessary Since PORTB is also used by 2x16 character LCD
interface for supporting GLCD with resolution of 128x64 display, you cannot use both displays simoutaneously.
pixels, driven by the KS108 or similar display controller. You can control the display contrast using dedicated
Communication with the display module is done through potentiometer P4. Display backlight can be enabled with
CN16 display connector. Board is fitted with uniquely SW4.2 switch, and PWM-driven backlight with SW4.3
designed plastic display distancer, which allows the switch.
pinout explained
CS1 and CS2 - Controller Chip Select lines
VCC - +5V display power supply
GND - Reference ground
Vo - GLCD contrast level from potentiometer P4
RS - Data (High), Instruction (Low) selection line
R/W - Determines whether display is in Read or Write mode.
E - Display Enable line
D0D7 - Data lines
RST - Display reset line
Vee - Reference voltage for GLCD contrast potentiometer P3
LED+ - Connection with the backlight LED anode
LED- - Connection with the backlight LED cathode
IMPORTANT: In order to use PWM backlight both SW4.2 and SW4.3 switches must be
enabled at the same time.
EasyPIC PRO v7
page 27
Touchpanel controller
displays
Touchpanel is a glass panel whose surface is covered touchpanel controller and connector for 4-wire resistive
with two layers of resistive material. When the screen touchpanels. It can very accurately register pressure at a
is pressed, the outer layer is pushed onto the inner layer specific point, representing the touch coordinates in the form
and appropriate controllers can measure that pressure of analog voltages, which can then be easily converted to X
and pinpoint its location. This is how touchpanels can be and Y values. Touchpanel is ment to be mounted onto the
used as an input devices. EasyPIC PRO v7 is equipped with GLCD display.
1 2 3
Figure 14-1: Put Touch Panel flat cable in Figure 14-2: Use a tip of your finger Figure 14-3: Now place GLCD with
DATA BUS
READ-X
READ-Y
other modules
Piezoelectricity is the charge which accumulates in ones. Frequency of the square signal determines
certain solid materials in response to mechanical pressure, the pitch of the generated sound, and duty cycle of
but also providing the charge to the piezoelectric material the signal can be used to increase or decrease the
causes it to physically deform. One of the most widely volume in the range from 0% to 100% of the duty
used applications of piezoelectricity is the production of cycle. You can generate PWM signal using hardware
sound generators, called piezo buzzers. Piezo buzzer is capture-compare module, which is usually available in
an electric component that comes in different shapes and most microcontrollers, or by writing a custom software
sizes, which can be used to create sound waves when which emulates the desired signal waveform.
provided with analog electrical signal. EasyPIC PRO v7
comes with piezo buzzer which can be connected to RB6
microcontroller pin. Connection is established using SW4.4
Supported sound frequencies
DIP switch. Buzzer is driven by transistor Q1 (Figure 15-1).
Microcontrollers can create sound by generating a PWM Piezo buzzers resonant frequency (where you can expect
(Pulse Width Modulated) signal a square wave signal, it's best performance) is 3.8kHz, but you can also use it to
which is nothing more than a sequence of logic zeros and create sound in the range between 2kHz and 4kHz.
TOP
DATA BUS
VIEW
PERSPECTIVE
VIEW Enabling Piezo Buzzer
Figure 15-1: Piezo
buzzer connected to In order to use the on-board Piezo Buzzer in
RB6 microcontroller your application, you first have to connect the
pin via SW4.4 transistor driver of piezo buzzer to the appropriate
microcontroller pin. This is done using SW4.4 DIP
switch. Once the switch is in ON position, it connects
the buzzer driver to RB6 microcontroller pin.
Freq = 3kHz, Duty Cycle = 50% Freq = 3kHz, How to make it sing? Figure 15-2:
Turn ON
Volume = 50%
Buzzer starts "singing" when you provide SW4.4 to
Freq = 3kHz, Duty Cycle = 80% PWM signal from the microcontroller connect
Freq = 3kHz,
to the buzzer driver. The pitch of the Piezo buzzer
Volume = 80%
sound is determined by the frequency, driver to
and amplitude is determined by the RB6 pin
Freq = 3kHz, Duty Cycle = 20% Freq = 3kHz,
Volume = 20% duty cycle of the PWM signal.
EasyPIC PRO v7
page 29
DS1820 - Digital
other modules
Temperature Sensor
DS1820 is a digital tempera- of 750ms for the DS1820 to calculate sensors can be connected on the same
ture sensor that uses 1-wire temperature with 9-bit resolution. line. All slave devices by default have
interface for its operation. It is 1-wire serial communication ena- a unique ID code, which enables the
capable of measuring temperatures bles data to be transfered over a single master device to easily identify all
within the range of -55 to 128C, communication line, while the process devices sharing the same interface.
and provides 0.5C accuracy for itself is under the control of the master EasyPIC PRO v7 provides a separate so
temperatures within the range of -10 to microcontroller. The advantage of cket (TS1) for the DS1820. Communica
85C. It requires 3V to 5.5V power supply such communication is that only one tion line with the microcontroller is
for stable operation. It takes maximum microcontroller pin is used. Multiple selected with a J3 jumper.
DATA BUS
DS1820 not DS1820 DS1820 DS1820
connected placed in connected connected
socket to RB7 pin to RE6 pin
other modules
Temperature Sensor
The LM35 is a low-cost precision obtain convenient Centigrade scaling. has very low self-heating,
integrated-circuit temperature sensor, The LM35 does not require any external less than 0.1C in still air.
whose output voltage is linearly calibration or trimming to provide EasyPIC PRO v7 provides a
proportional to the Celsius (Centigrade) typical accuracies of C at room separate socket (TS2) for the
temperature. The LM35 thus has an temperature and C over a full -55 LM35 sensor in TO-92 plastic
advantage over linear temperature to +150C temperature range. It has packaging. Readings are done
sensors calibrated in Kelvin, as the a linear + 10.0 mV/C scale factor with microcontroller using single
user is not required to subtract a large and less than 60 A current drain. As analog input line, which is selected
constant voltage from its output to it draws only 60 A from its supply, it with a J4 jumper.
DATA BUS
Figure 17-1: Figure 17-2: Figure 17-3: Figure 17-4:
LM35 not LM35 placed LM35 LM35
connected in socket connected connected
to RF6 pin to RA3 pin
EasyPIC PRO v7 enables you to get analog readings from the LM35 sensor
using RA3 or RF6 microcontroller pins. The selection of either of those two
lines is done using J4 jumper. When placing the sensor in the socket make sure
that half-circle on the boards silkscreen markings matches the rounded part
of the LM35 sensor. If you accidently connect the sensor the other way, it can
be permanently damaged and you might need to replace it with another one.
During the readings of the sensor, make sure that no other device uses the
selected analog line, because it may interfere with the readings.
EasyPIC PRO v7
page 31
ADC inputs
other modules
other modules
EEPROM is short for Electrically Erasable
Programmable Read Only Memory. It is
Enabling I2C EEPROM usually a secondary storage memory in devices
containing data that is retained even if the device
Figure 19-1: looses power supply. EEPROMs come with parallel
Activate or serial interface to the master device. Because
SW5.7 and of the ability to alter single bytes of data, EEPROM
SW5.8 devices are used to store personal preference and
switches to configuration data in a wide spectrum of consumer,
enable pull-up automotive, telecommunication, medical, industrial, and
resistors in I2C PC applications.
lines of Serial EasyPIC PRO v7 supports serial EEPROM which uses I2C
EEPROM. communication interface and has 1024 bytes of available
memory. Board contains socket for serial EEPROMs in DIP8 packaging,
In order to connect I2C EEPROM to the so you can easily exchange it with different memory size EEPROM IC.
microcontroller you must enable SW5.7 and EEPROM itself supports single byte or 16-byte (page) write and read operations.
SW5.8 switches, as shown on Figure 19-1. 4K7 Data rates are dependant of power supply voltage, and go up to 1 MHz with 5V power
pull-up resistors necessary for I2C communication supply, and 400 kHz for 3.3V power supply.
are already provided on SDA and SCL lines once
switches are turned on. Prior to using EEPROM in
your application, make sure to disconnect other What is I2C?
peripherals, LEDs and additional pull-up or pull-
down resistors from the interface lines in order I2C is a multi-master serial single-ended bus that is used to attach low-speed peripherals to computer or embedded
not to interfere with signal/data integrity. systems. IC uses only two open-drain lines, Serial Data Line (SDA) and Serial Clock (SCL), pulled up with
resistors. SCL line is driven by a master, while SDA is used as bidirectional line either by master or slave device.
Up to 112 slave devices can be connected to the same bus. Each slave must have a unique address.
DATA BUS
Figure 19-2:
Schematic of
I2C EEPROM
module
EasyPIC PRO v7
page 33
Output voltages
other modules
Purpose of the output voltage terminals is not to be the main power source of big
consumers, but more a power source for remote small consumers.
other modules
EasyPIC PRO v7 contains three GND pins located in three different
sections of the board, which allow you to easily connect oscilloscope GND
reference when you monitor signals on microcontroller pins, or signals of
on-board modules.
Figure 21-1:
3 oscilloscope GND
pins are conveniently
positioned so each part
of the board can be reached
with an oscilloscope probe
2
EasyPIC PRO
v7
page 35
Whats Next?
You have now completed the journey through each and every feature of EasyPIC PRO v7 board. You got to know its modules, organization, supported microcontrollers,
programmer and debugger. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite
you to join thousands of users of EasyPIC brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome!
Compiler
You still dont have an appropriate compiler? Locate PIC compiler
that suits you best on our website:
www.mikroe.com/pic/compilers/
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, the MikroElektronika logo, mikroC, mikroBasic, mikroPascal, mikroProg, EasyPIC, EasyPIC PRO, mikroBus and Click boards 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.
0 100000 024812