PIC Microcontroller
Technology
Instrument Product
Application
PIC Microcontroller Technology Instrument Product Application
Objective
• Understand microcontroller and its target
Instrumentation product applications.
• Know how PIC microcontroller provide cost effective
solutions to Instrumentation applications.
• Know the tools need for Instrumentation Applications
using PIC16F690 microcontroller
PIC Microcontroller Technology Instrument Product Application
Topics
• Introduction to Microcontroller and its application
• Input/Output
• ADC/DAC/SENSOR
• Communication
• Tools for PIC microcontroller design application
• Project
PIC Microcontroller Technology Instrument Product Application
Introduction to Microcontroller and its
application
What is Microcontroller ?
PIC Microcontroller Technology Instrument Product Application
Wikipedia
Microchip Technology Inc.
The Embedded Control Solutions Company®
Interface IR Communication RF Xmit/Receive Power Drivers
RS 232/485
RS 422/423 Motors
I2C Relays
SPI
USART Fan Control
High Voltage I/OS
Serial NV
Memory
LED DRIVERS
DSP Function
Encryptions LCD DRIVERS
ADC Sensors
Speech Processing
PIC Microcontroller Technology Instrument Product Application
Where Microcontroller applies?
PIC Microcontroller Technology Instrument Product Application
Application
PIC Microcontroller Technology Instrument Product Application
Input/Output
PIC Microcontroller Technology Instrument Product Application
Topic
• General Purpose Input/Output 8-bit
• LED Display Interface
• LCD Display Interface
• Expanded Input/Output
PIC Microcontroller Technology Instrument Product Application
General Purpose Input/Output 8-bit
IC1
VDD VSS
RA5 RA0
RA4 RA1
RA3 RA2
RC5 RC0 Solenoid
RC4 RC1
GND RC3 RC2
RC6 RB4
RC7 RB5
RB7 RB6
Opto - isolator PIC16F690(DIL20) Transistor relay
Driver
NPN Transistor
PNP
Driver
Photoelectric Sensor
Solid state relay
PIC Microcontroller Technology General Purpose Input/Output 8-bit
LED Display Interface
Product Monitoring Temperature Indicating Instrument
PIC Microcontroller Technology Display
LCD 8-bit Data transfer
If the microntroller had enough I/O then 8-bit data transfer could be an option.
In this method the 8 bit data will be transfer in byte form one at a time which
controlled by the RS, R/W, and E.
LCD1 LCD_Displaytech162C
LCD-DISPLAY
LED+
LED-
VEE
R/W
+5V
RS
D0
D1
D2
D3
D4
D5
D6
D7
0V
E
IC1
VDD VSS
RA5 RA0
RA4 RA1
RA3 RA2
RC5 RC0
RC4 RC1
RC3 RC2
RC6 RB4
RC7 RB5
RB7 RB6
PIC16F690(DIL20)
PIC Microcontroller Technology Display
LCD 4-bit Data transfer
The LCD HD44780 can be connect to the microntroller I/O port of 4-bit MPU.
This method the 8 bit data will be transfer in nibble form one at a time which
controlled by the RS, R/W, and E. In this case timing sequence becomes somewhat
complex.
LCD1 LCD_Displaytech162C
LCD-DISPLAY
IC1
LED+
LED-
VEE
R/W
+5V
RS
VDD VSS
D0
D1
D2
D3
D4
D5
D6
D7
0V
E
RA5 RA0
RA4 RA1
RA3 RA2
RC5 RC0
RC4 RC1
RC3 RC2
RC6 RB4
RC7 RB5
RB7 RB6
PIC16F690(DIL20)
PIC Microcontroller Technology Display
Expanded Input/Output
Opto isolated input Microcontroller Mother Board Opto-isolated output
PIC Microcontroller Technology General Purpose Input/Output 8-bit
Serial Interface Bus EEPROM
PIC Microcontroller Technology Data Logging
ADC/DAC/SENSOR
PIC Microcontroller Technology Instrument Product Application
Topic
• ADC-Analog to Digital and Sensor
• DAC-Digital to Analog
PIC Microcontroller Technology Instrument Product Application
Analog to Digital Converter (ADC)
PIC16F690
LCD Display
10-bit ADC
Linear Sensor
PIC Microcontroller Technology Analog to Digital Converter (ADC) Method
Digital to Analog Converter (DAC)
PIC Microcontroller Technology Digital to Analog Converter (DAC)
TIMER
PIC Microcontroller Technology TIMING
Communication
PIC Microcontroller Technology Communication
Topic
• USART/UART
• Data Transmission
• Application
PIC Microcontroller Technology Communication
Microcontroller Interfacing
PIC16F690
TX
A
USART
RS-422
HMI
RX
B
A B A B A B
USART
RS-422 RS-422 RS-422
TX RX TX RX TX RX
Media Converter
USART USART USART
PIC16F690 PIC16F690 PIC16F690
Sensor 1 Sensor 2 LED Display
PIC Microcontroller Technology Digital to Analog Converter (DAC)
Tools for PIC microcontroller
design application
PIC Microcontroller Technology Tools for PIC microcontroller design application
MPLAB IDE
PIC16F690 KIT
Programmers
PIC Microcontroller Technology Tools for PIC microcontroller design application
Projects
Engr. Kent B. Roferos
[email protected]http://www.aaronvailsblog.com/2009_09_24_archive.html