12 PDFsam Manual-PIC-EK
12 PDFsam Manual-PIC-EK
12 PDFsam Manual-PIC-EK
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. PIC+EK board uses
low current LEDs with typical current consumption of 0.2mA or 0.3mA, depending of VCC voltage selection. Board
contains 8 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 LEDs, it is necessary to connected them to the appropriate IOs Port via connector (CN4) using dupont
wires. The CN4 connector does not be connected to any IOs, and it makes your experiments more flexible. See the
comments in the source code provided in CD Rom for how to connect the hardware.
The logic state of all microcontroller digital inputs may be changed using push buttons. PIC+EK equips 3 user buttons
Button1, Button2 and Button3. In order to enable three buttons, it is necessary to connected them to the appropriate IOs
www.LogiFind.com 12
PIC EK™ Development Board Users Manual
Port via connector (CN19.0~2) using dupont wires.See the comments in the source code provided in CD Rom for how to
connect the hardware.
2).Joystick
PIC+EK also equips a Joystick which is a smart navigation key concept based on contactless, magnetic movement
detection. You can think it simply as 5 Tact Switchs installed on one device, and they are the Left, Right, Up, Down and
Center. In order to enable the Joystick, it is necessary to connected them to the appropriate IOs Port via connector
(CN19.3~7) using dupont wires. See the comments in the source code provided in CD Rom for how to connect the
hardware.
4X4 Matrix Keypad is used for loading numerics into the microcontroller. It consists of 16 buttons arranged in a form of an
array containig four Rows and four columns. In order to enable the 4X4 Matrix Keypad, it is necessary to connected them
to the appropriate IOs Port via connector (CN18) using dupont wires. The CN18 connector does not be connected to any
IOs, and it makes your experiments more flexible.
DS18B20 is a digital temperature sensor that uses 1 wire® interface for it’s operation. It is capable of measuring
temperatures within the range of 55 to 128°C, and provides ±0.5°C accuracy for temperatures within the range of 10 to
85°C. It requires 3V to 5.5V power supply for stable operation. It takes maximum of 750ms for the DS18B20 to calculate
temperature with 9 bit resolution. 1 wire® serial communication enables data to be transferred over a single
communication line, while the process itself is under the control of the master microcontroller. The advantage of such
communication is that only one microcontroller pin is used. Multiple sensors can be connected on the same line. All slave
www.LogiFind.com 13
PIC EK™ Development Board Users Manual
devices by default have a unique ID code, which enables the master device to easily identify all devices sharing the same
interface. PIC+EK provides a separate socket for the DS18B20. Communication line with the microcontroller is connected
via CN9.4 to RA4.See the comments in the source code provided in CD Rom for how to connect the hardware.
2).ADC input
Digital signals have two discrete states, which are decoded as high and low, and interpreted as logic 1 and logic 0. Analog
signals, on the other hand, are continuous, and can have any value within defined range. A/D converters are specialized
circuits which can convert analog signals (voltages) into a digital representation, usually in form of an integer number. The
value of this number is linearly dependent on the input voltage value. Most microcontrollers nowadays internally have A/D
converters connected to one or more input pins. Some of the most important parameters of A/D converters are conversion
time and resolution. Conversion time determines how fast can an analog voltage be represented in form of a digital
number. This is an important parameter if you need fast data acquisition. The other parameter is resolution. Resolution
represents the number of discrete steps that supported voltage range can be divided into. It determines the sensitivity of
the A/D converter. Resolution is represented in maximum number of bits that resulting number occupies. Most
microcontrollers have 10 bit resolution, meaning that maximum value of conversion can be represented with 10 bits,which
converted to integer is 210=1024. This means that supported voltage range, for example from 0 3.3V, can be divided into
1024 discrete steps of about 3.222mV. PIC+EK provides an interface in form of potentiometer for simulating analog input
voltages that can be routed to any of the 8 supported analog input pins(AN0 to AN8) via Jumper CN9.See the comments
in the source code provided in CD Rom for how to connect the hardware.
www.LogiFind.com 14
PIC EK™ Development Board Users Manual
PS/2, Buzzer,EEPROM and RTC
The PS/2 port is a 6 pin mini DIN connector used for connecting some keyboards and mice to a PC compatible computer
system. PIC+EK provides a standard PS/2 port to connect a common PC keyboard to your PIC+EK. In order to enable the
PS/2 Module, it is necessary to connected them to the appropriate IOs Port via connector (CN11.0~1) using dupont wires.
See the comments in the source code provided in CD Rom for how to connect the hardware.
Piezoelectricity is the charge which accumulates in certain solid materials in response to mechanical pressure,but also
providing the charge to the piezo electric material causes it to physically deform. One of the most widely used applications
of piezoelectricity is the production of sound generators, called piezo buzzers. Piezo buzzer is an electric component that
comes in different shapes and sizes, which can be used to create sound waves when provided with analog electrical
signal. PIC+EK comes with piezo buzzer which can be connected to any IO of microcontroller via connector (CN11.2).
Buzzer is driven by transistor T1. Microcontrollers can create sound by generating a PWM(Pulse Width Modulated) signal
– a square wave signal, which is nothing more than a sequence of logic zeros and ones. Frequency of the square signal
determines the pitch of the generated sound, and duty cycle of the signal can be used to increase or decrease the volume
in the range from 0% to 100% of the duty cycle. You can generate PWM signal using hardware capture compare module,
which is usually available in most microcontrollers, or by writing a custom software which emulates the desired signal
waveform.
3).I²
²C EEPROM
I²
²C is a multi master serial single ended bus that is used to attach low speed peripherals to computer or embedded
systems. I²
²C 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.
EEPROM is short for Electrically Erasable Programmable Read Only Memory. It is usually a secondary storage memory
in devices containing data that is retained even if the device looses power supply. EEPROMs come with parallel or serial
interface to the master device. Because of the ability to alter single bytes of data, EEPROM devices are used to store
personal preference and configuration data in a wide spectrum of consumer, automotive, telecommunication, medical,
industrial, and PC applications. easyPIC Pro supports serial EEPROM which uses I2C communication interface and has
1024 bytes of available memory. EEPROM itself supports single byte or 16 byte (page) write and read operations. Data
rates are dependent of power supply voltage, and go up to 400 kHz for 3.3V power supply.
PIC+EK equips an IC socket for EEPROM IC with different capacity.In order to enable the I²
²C EEPROM, it is necessary to
connected them to the appropriate microcontroller Pin via connector (CN11.3~4) using dupont wires. See the comments
in the source code provided in CD Rom for how to connect the hardware.
The PCF8563 is a CMOS real time clock/calendar optimized for low power consumption. A programmable clock output,
interrupt output and voltage low detector are also provided. All address and data are transferred serially via a two line
bidirectional I2C bus. Maximum bus speed is 400 kbits/s. The built in word address register is incremented automatically
after each written or read data byte.
In order to enable the Real Time Clock PCF8563, it is necessary to connected them to the appropriate microcontroller
Pin via connector (CN11.5~6) using dupont wires. See the comments in the source code provided in CD Rom for how to
connect the hardware.
www.LogiFind.com 16
PIC EK™ Development Board Users Manual
Step Motor, Infrared Receiver and RS232
The ULN2003A is high voltage high current Darlington transistor arrays. Each consists of seven npn Darlington pairs that
feature high voltage outputs with common cathode clamp diodes for switching inductive loads. The collector current rating
of a single Darlington pair is 500 mA. The Darlington pairs can be paralleled for higher current capability. Applications
include relay drivers, hammer drivers, lamp drivers, display drivers (LED and gas discharge), line drivers, and logic buffers.
On PIC+EK, We use a ULN2003A to drive step motor. In this application, you need to connect a
2).Infrared Receiver
1838V is miniaturized infrared receivers for remote control and other applications requiring improved ambient light
rejection.The separate PIN diode and preamplifier IC are assembled on a single leadframe. The epoxy package contains
a special IR filter.This module has excellent performance even in disturbed ambient light applications and provides
protection against uncontrolled output pulses. PIC+EK equips a socket(Remote) for installing 1838V infrared receiver.
In order to enable the 1838V infrared receiver Module, it is necessary to connected them to the appropriate IOs Port via
connector (CN20.1) using a dupont wire. See the comments in the source code provided in CD Rom for how to connect
the hardware.
The UART (universal asynchronous receiver/transmitter) is one of the most common ways of exchanging data between
the MCU and peripheral components. It is a serial protocol with separate transmit and receive lines, and can be used for
full duplex communication. Both sides must be initialized with the same baud rate, otherwise the data will not be received
correctly. RS+232 serial communication is performed through a 9 pin SUB D connector and the microcontroller UART
module.
In order to enable this communication, it is necessary to establish a connection between RX and TX lines on SUB D
connector and the same pins on the target microcontroller using connector CN20.6~7. Since RS 232 communication
voltage levels are different than microcontroller logic levels, it is necessary to use a RS 232 Transceiver circuit.
www.LogiFind.com 17
PIC EK™ Development Board Users Manual
See the comments in the source code provided in CD Rom for how to connect the hardware.
Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user of some electronic
device. Character LCDs can be used to represent standard and custom characters in the predefined number of fields. The
PIC+EK provides the connector and the necessary interface for supporting 2x16 character LCDs. This type of display has
two rows consisted of 16 character fields. Each field is a 7x5 pixel matrix. Board equips an universal socket allowing you
to install 16x2 LCD very easily.
www.LogiFind.com 18
PIC EK™ Development Board Users Manual
Connector pinout explained
1 GND
2 5V
3 Vo,LCD contrast level from potentiometer P1
4 RS,Register Select Signal
5 E,Display Enable
6 R/W,Determines whether display is in Read or Write mode. It’s always connected to GND, leaving the display in Write
mode all the time.
7~14 Data Port,Display is supported in 8 bit data mode.
15 LED+,Connection with 5V
16 LED ,Connection with GND
IMPORTANT:
Make sure to Place the LCD1602 in the right direction.
Make sure to turn off the power supply before placing LCD onto the board. Otherwise your display can be
permanently damaged.
GLCD 128x64(Socket)
Graphical Liquid Crystal Displays, or GLCDs are used to display monochromatic graphical content, such as text, images,
humanmachine interfaces and other content. PIC+EK provides the connector and necessary interface for supporting
GLCD with resolution of 128x64 pixels and proper PINOUTs.It is compatible with the most popular LCD12864 in the
market with KS108 or ST7920 display controller.The example we provide is only for LCD12864 with ST7920 display
controller.The PIC+EK equips an universal socket allowing you to install 128*64 Graphical LCD very easily.
www.LogiFind.com 19
PIC EK™ Development Board Users Manual
`
Figure 2+13: LCD12864 characters Socket
Connector pinout explained:
1 GND
2 VCC
3 Vo,GLCD contrast level from potentiometer P2
4 RS,Data (High), Instruction (Low) selection
5 R/W,Determines whether display is in Read or Write mode.
6 E,Display Enable line
7~14,D0–D7,Data lines
15 PSB,Parallel/Serial Mode Selection
16 RB4
17 RST
18 VEE
19 LEDA 5V
20 LEDK – GND
IMPORTANT:
Make sure to Place the LCD12864 in the right direction.
Make sure to turn off the power supply before placing LCD onto the board. Otherwise your display can be
permanently damaged.
www.LogiFind.com 20
PIC EK™ Development Board Users Manual
Input/Output Group
One of the most distinctive features of PIC+EK are its Input/Output PORT groups. It makes development easier, and the
entire PIC+EK 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 both sides of the board.
`
Figure 2+14: Input/Output Group
PIC+EK provides three headers (GND,3.3V and 5.0V) for your prototype DIY.
`
Figure 2+15: Power Supply Header for DIY
www.LogiFind.com 21
PIC EK™ Development Board Users Manual
Contact Us
If you want to learn more about our products, please visit our website at:
www.LogiFind.com
If you have any questions, comments or business proposals, contact us at:
[email protected]
[email protected]
www.LogiFind.com 22
PIC EK™ Development Board Users Manual
DISCLAIMER
All the products owned by LogiFind 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, must be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without
the prior written permission of LogiFind. The manual PDF edition can be printed for private or local use, but not for
distribution. Any modification of this manual is prohibited.
LogiFind 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.
LogiFind shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this
manual. In no event shall LogiFind, 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 LogiFind has been
advised of the possibility of such damages. LogiFind reserves the right to change information contained in this manual at
any time without prior notice, if necessary.
The products of LogiFind 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’). LogiFind and its suppliers specifically disclaim any expressed or implied warranty of fitness for
High Risk Activities.
TRADEMARKS
The LogiFind name and logo are trademarks of LogiFind. 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.
www.LogiFind.com 23