Core Independent Peripherals for 8-bit PIC(R) Microcontrollers Brochure

Core Independent Peripherals
Core Independent Peripherals
For 8-bit PIC® Microcontrollers
Unique Integrated Peripherals for 8-bit PIC Microcontrollers
www.microchip.com/8bit
8-bit Peripheral Highlights
Overview
Microchip is the leader in 8-bit microcontrollers by continually investing and expanding upon the PIC® microcontroller lineup. Emphasis is persistently focused on reducing costs while developing products with a strong mix of peripherals such
as LCD drive, PWM, ADC, comparators, timers and communication. Beyond standard peripherals, Microchip is constantly
bringing additional value to PIC microcontrollers by developing unique and exclusive peripherals. These unique peripherals
allow embedded engineers to simplify their designs and create ever more creative applications and products. This
innovation is demonstrated by some of the following PIC microcontroller integrated peripherals.
Intelligent Analog
USB
Timers
8-bit
16-bit
PWM*
MAX PWM
Channels**
CLC
Availability
USB
HRPWM***
I2C™/SPI
PSMC
EUSART
Now
9-bit
Now
ü
8-bit
ü
–
5-bit
ü
ü
Comp
ü
ü
12-bit
Now
10-bit
ü
–
8-bit
–
I/O
ü
Pins
ü
RAM
CWG/
COG
New Peripherals
NCO
DAC
Flash
Low Pin Count
ADC
PIC10(L)F320
448
64
6
4
3
–
–
–
–
–
–
–
–
–
2
–
2
4
1
PIC10(L)F322
896
64
6
4
3
–
–
–
–
–
–
–
–
–
2
–
2
4
1
PIC12(L)F1501
1.75K
64
8
6
–
4
–
1
1
–
–
–
–
–
2
1
4
6
2
1
ü
–
–
2
1
4
7
2
ü
ü
–
ü
Now
–
2
1
4
7
2
ü
ü
–
ü
Now
PIC16(L)F1503
3.5K
128
14
12
–
8
–
2
PIC16(L)F1507
3.5K
128
20
18
–
12
–
2
–
–
–
–
–
–
PIC16(L)F1508
7K
256
20
18
–
12
–
2
1
–
–
ü
ü
–
2
1
4
7
4
ü
ü
–
ü
Now
PIC16(L)F1509
14K
512
20
18
–
12
–
2
1
–
–
ü
ü
–
2
1
4
7
4
ü
–
8K
1K
14
11
–
5
–
2
1
–
–
ü
ü
ü
2
1
2
4
–
ü
–
ü
–
Now
PIC16(L)F1455
ü
–
Now
PIC16(L)F1459
8K
1K
20
17
–
9
–
2
1
–
–
2
4
–
–
ü
–
–
Now
64
8
6
–
4
–
2
1
–
–
ü
–
1
1K
ü
–
2
PIC12F752/HV752
ü
–
3
–
1
3
–
–
ü
–
–
Now
PIC16F753/HV753
2K
128
14
12
–
8
–
2
–
–
1
–
–
–
4
–
1
3
–
–
–
–
Q2 ‘13
PIC16(L)F1782
2K
256
28
25
–
–
11
3
–
1
–
ü
ü
–
2
1
4
10
–
–
ü
–
2
–
Now
PIC16(L)F1783
4K
512
28
25
–
–
11
3
–
1
–
ü
ü
–
2
1
4
10
–
–
–
2
–
Now
PIC16(L)F1784
4K
512
44
36
–
–
14
4
–
1
–
ü
ü
–
2
1
6
17
–
–
–
3
–
Q2 ‘13
PIC16(L)F1786
8K
1K
28
25
–
–
11
4
–
1
–
ü
ü
–
2
1
6
17
–
–
–
3
–
Q2 ‘13
PIC16(L)F1787
8K
1K
44
36
–
–
14
4
–
1
–
ü
ü
–
2
1
6
17
–
–
–
3
–
Q2 ‘13
PIC16(L)F1788
16K
2K
28
25
–
–
11
4
3
1
–
ü
ü
–
2
1
7
17
–
–
–
4
–
Q2 ‘13
PIC16(L)F1789
16K
2K
44
36
–
–
14
4
3
1
–
ü
ü
–
2
1
7
17
–
–
–
4
–
Q2 ‘13
*PWM inclusive of PWM, CCP, ECCP and PSMC.
**Total PWM channels is the sum of external channels available via PWM, CCP, ECCP, HRPWM, CWG, COG and PSMC.
***HRPWM available via implementation of CLC and NCO, please see app note AN1476.
Development Support
IDE/Compiler
■ MPLAB X IDE
■ MPLAB XC8 Compiler
PIC10F32X
PIC12F150X
PIC16F150X
PIC16F145X
PIC12F752
PIC16F753
PIC16F178X
Development Boards
PICDEM™ Lab Development Kit
(DM163045)
–
ü
ü
ü
ü
ü
ü
PICkit™ Low Pin Count
Development Board (DM164130-9)
–
ü
ü
ü
ü
ü
–
PIC10F32X Development Board
(AC103011)
ü
–
–
–
–
–
–
PIC10F32X Debug Extension Pak
(AC244045)
ü
–
–
–
–
–
–
Low Pin Count USB Development
Board (DM164127)
–
–
–
ü
–
–
–
PICkit™ 28-pin Demo Board
(DM164120-3)
–
–
–
–
–
–
ü
Programmer/Debuggers
■ PICkit 3 (PG164130)
■ MPLAB® ICD 3 (DV164035)
■ MPLAB REAL ICE™ In-Circuit Debugger (DV244005)
2
Core Independent Peripherals for 8-bit PIC Microcontrollers
PICDEM™ Lab Development Kit
(DM163045)
Low Pin Count USB
Development Board
(DM164127)
PICkit Low Pin Count
Development Board
(DM164130-9)
PIC10F32X Development Board
(AC103011))
8-bit Peripheral Highlights
Configurable Logic Cell (CLC)
Easily Create Custom Combination and Sequential Logic
Key Features
■■ User configurable real time logic control
• CLC configuration GUI for quick turn development
■■ Combinational Logic Functions
• AND/OR/XOR/NOT/NAND/NOR/XNOR
■■ State Functions/Clock
• D Flip-Flop, JK Flip-Flop D Latch, SR Latch
■■ Input sources
• Pins
• Peripherals
■■ Output available to:
• External pins
• Other peripherals
■■ Operation while in Sleep
Benefits
■■ Increases on chip interconnection of peripherals
and I/O
■■ Integrates hardware functions and saves board space
■■ Software control of Combinational/Sequential Logic
■■ Saves program code space and frees up CPU cycles
Example Applications
■■ ■■ ■■ ■■ ■■ ■■ ■■ Data modulation
Power sequencing
Manchester/IrDA encoder
Event sequencing
Conditional signaling
General purpose logic
Customizable circuitry
CLC Designer: GUI to Simplify Design
Example: Phase Shifted Data Modulator
Combinational and Sequential logic can easily be designed using on-chip hardware.
CLC1
Data Input
Code Reset
CLC2
CLC3
D S Q1
D S Q2
R
R
CLC4
Data Output
FOSC
NCO
NCOCLK
NCOOUT
Clock Out
Core Independent Peripherals for 8-bit PIC Microcontrollers
3
8-bit Peripheral Highlights
Complementary Waveform Generator (CWG), Complimentary Output Generator (COG)
Key Features
Benefits
■■ Provides non-overlapping complementary waveform
■■ Various input sources inclusive of:
• Comparators, PWM, CLC, NCO
■■ B
lanking control for transient filtering 1
(available with COG)
■■ P
hase control for output delay 2
(available with COG)
■■ Independent rise and fall 3 / 4
■■ Dead band control
■■ Auto shutdown/restart
■■ Polarity control
■■ ■■ ■■ ■■ Works with multiple peripherals
Fewer components and less space
Lower power
Improved switching efficiencies
Example Applications
■■ ■■ ■■ ■■ ■■ ■■ Switch mode power supplies
LED/fluorescent lighting
Battery charger
Motor drive
Power factor correction
Class D audio amplifiers
Complementary Output Generator (COG)
Complementary Outputs
2 - Phase control
3 - Rising edge deadband control
4 - Falling edge deadband control
Input Source
1 - Blanking control, for transient filtering






Comparator
1
PWM
Source
Input
External
Input
Electrical
Transient
CWG/COG
Out0
Out1
2
3
4
Example: Half Bridge Circuit Using CWG,
PIC® Microcontroller
CWG
Comp
Output
PWM
Dead Band
Control
Motor
Auto
Shutdown
■■ Automates generation of the complementary
waveforms necessary for Half Bridge control
■■ Programmable dead band control to protect against
shoot through
■■ Auto Shutdown can be based on external inputs,
software, CLC, or other peripherals
■■ Programmable blanking control available to filter out
transient inputs
Example: LED Buck Converter
PIC® Microcontroller
COG
PWM
Voltage
Reference
4
Comp
Output
Dead Band
Control
+
–
Auto
Shutdown
Core Independent Peripherals for 8-bit PIC Microcontrollers
■■ Switching frequency determined by the PWM
■■ Enables synchronous switching, increasing
power conversion efficiency
■■ Programmable dead band control protects
the synchronous switches against
shoot through
■■ Advanced features to provide auto
shutdown, auto restart, and polarity control
8-bit Peripheral Highlights
Numerically Controlled Oscillator (NCO)
Oscillator Capabilities with True Linear Frequency Control
Key Features
Benefits
■■ Up to 20-bit frequency resolution
■■ Multiple internal and external clock sources available
■■ 16b numeric frequency control
• 625 kHz max output with 20MHz oscillator
• 0.03 Hz min step size with 31kHz internal oscillator
■■ 2 Output modes
• Fixed 50% Duty Cycle
• Pulse Frequency Modulation (PFM)
■■ True linear frequency control
■■ Increased frequency resolution
Numeric
Increment
Value
Example Applications
■■ ■■ ■■ ■■ ■■ Fluorescent ballast and LED lighting control
Motor drivers
Modems
Class D audio amplifiers
Ultrasonic ranging
NCO
Increment (16-bit)
F F F F



1
FDC
or
16 MHz
Clock
Accumulator (20-bit)
Overflow
Output Generation
Output
2
PFM
Example: Fluorescent Lighting Control
■■ Use the NCO to create linear frequencies for start-up and dimming control
■■ Lower power and extend life of fluorescent bulb
Max.
Brightness
NCO
Bulb Voltage
PIC® Microcontroller
Light Output
Min.
Brightness
Frequency
ADC
NCO provides linear
control over entire range
Core Independent Peripherals for 8-bit PIC Microcontrollers
5
8-bit Peripheral Highlights
High Resolution PWM (HRPWM)
Full Range PWM Resolution at High Frequency
Example Applications
Key Features
■■ ■■ ■■ ■■ ■■ ■■ ■■ Enables high switching frequency designs
■■ Variable PWM resolution
■■ Up to 17 bits effective resolutions at 500 kHz
Benefits
■■ Reduced sizing of inductors and capacitors
■■ Reduced BOM cost and improved EMI
■■ Precision LED color mixing, smooth diming and
brightness control
■■ Higher efficiency power conversion designs
Power supplies
DC/DC converters
LED lighting/color mixing
Motor control
Flourescent ballast
Resonant power supply
HRPWM
Input Sources
HRPWM Output
System Clock
Max Steps
PWM
CLC
Comparator
NCO
0
Variable PWM
Duty Cycle
External Pin
Clock Period
17-bit PWM
Max # Steps = 217 = 131,072
Conventional PWM vs. HRPWM
Conventional PWM
HRPWM
16b
Variable
16 MHz
16 MHz
PWM Resolution
PWM Clock Frequency
500 kHz
500 kHz
1 ÷ 500 kHz = 2 μs
1 ÷ 500 kHz = 2 μs
1 ÷ 16 MHz = 62.5 ns
15.26 ps*
2 μs ÷ 62.5 ns = 32
2 μs ÷ 15.26 ps = 131,072
log232 = 5 bits
log2131,072 = 17 bits
Target Switching Frequency
Target Period Width
Best PWM Pulse Adjustment
Maximum Number of Steps per Period
Effective Full Range PWM Resolution
*Reference application note AN1476 for calculation
6
Core Independent Peripherals for 8-bit PIC Microcontrollers
8-bit Peripheral Highlights
Programmable 16-bit Switch Mode Controller (PSMC)
Advanced PWM Capabilities and Integrated Analog Enabling High Performance with
Minimal External Circuitry CPU Bandwidth
Key Features
Benefits
■■ Various clock sources: external, system clock,
independent 64 MHz
■■ Various input sources: comparators, external pins
■■ Blanking control for transient filtering
■■ Single 16-bit PWM
• With up to 6 steerable outputs
■■ Complementary 16-bit PWM
• With up to 3 steerable output pairs
■■ Independent rising/falling edge control
■■ Dead band with independent rise and fall control
■■ Polarity control/auto shutdown and restart
■■ Flexible PWM output modes:
• Push/pull, pulse skipping, 3-phase, fixed duty cycle,
brushed DC with forward/reverse
■■ Output gating: externally controlled activate/deactivate
■■ Customizable high speed PWM with increased
resolution and control
■■ Simplifies the implementation of applications such as:
motor control, lighting and power supplies
Example Applications
■■ Power Supplies / Conversion
• DC/DC (power bricks), Power factor correction
■■ Lighting
• LED, Backlighting, Automotive, HID, Lamp Ballast
■■ Motor Control
• BLDC, AC induction, 3 Phase
■■ Battery Charging / Monitoring
■■ General purpose applications requiring high
resolution PWM
Example: Buck Converter Driving LED Array
■■ High Efficiency closed-loop control with fast switching speeds
■■ Cost effective integration enabling significant BOM reductions
Synchronous Buck Regulator
controlled by PIC16F178X MCU
for maximum efficiency
PIC16F178X
64 MHz
Clock
Programmable
Switch Mode
Controller
(PSMC)
+
Rail-to-rail 50 ns
response time
for high speed
switching frequency
Comparator
–
Over-voltage
monitor with
PSMC auto
shutdown
High Speed
High Voltage
MOSFET Drive Stage
MOSFET
Driver
+
Comparator
8b DAC with FVR
input @ 1.024V
equating to 4 mV
resolution
System Health
Monitor: Output
voltage, temperature
and current
Fast switching
frequency allows
use of smaller
inductor and capacitor
–
Voltage divider to prevent
over-voltage of load
FVR
8-bit DAC
Real-time temperature
monitoring of LEDs for
fail-safe operation
10/12b ADC
+
Op Amp
–
Resistive
Temperature
Sensor
Rail-to-rail op amp gain
operation allows use of
smaller current sense
resistor for less loss
Current sense and feedback
to sustain constant current
Core Independent Peripherals for 8-bit PIC Microcontrollers
7
Support
Training
Microchip is committed to supporting its customers
in developing products faster and more efficiently. We
maintain a worldwide network of field applications
engineers and technical support ready to provide product
and system assistance. In addition, the following service
areas are available at www.microchip.com:
■■ Support link provides a way to get questions
answered fast: http://support.microchip.com
■■ Sample link offers evaluation samples of any
Microchip device: http://sample.microchip.com
■■ Forum link provides access to knowledge base and
peer help: http://forum.microchip.com
■■ Buy link provides locations of Microchip Sales Channel
Partners: www.microchip.com/sales
If additional training interests you, then Microchip can
help. We continue to expand our technical training options,
offering a growing list of courses and in-depth curriculum
locally, as well as significant online resources – whenever
you want to use them.
■■ Technical Training Centers: www.microchip.com/training
■■ MASTERs Conferences: www.microchip.com/masters
■■ Worldwide Seminars: www.microchip.com/seminars
■■ eLearning: www.microchip.com/webseminars
■■ Resources from our Distribution and Third Party Partners
www.microchip.com/training
Sales Office Listing
AMERICAS
Atlanta
Tel: 678-957-9614
Boston
Tel: 774-760-0087
Chicago
Tel: 630-285-0071
Cleveland
Tel: 216-447-0464
Dallas
Tel: 972-818-7423
Detroit
Tel: 248-538-2250
Indianapolis
Tel: 317-773-8323
Los Angeles
Tel: 949-462-9523
Santa Clara
Tel: 408-961-6444
Toronto
Mississauga, Ontario
Tel: 905-673-0699
EUROPE
Austria - Wels
Tel: 43-7242-2244-39
Denmark - Copenhagen
Tel: 45-4450-2828
France - Paris
Tel: 33-1-69-53-63-20
Germany - Munich
Tel: 49-89-627-144-0
Italy - Milan
Tel: 39-0331-742611
Netherlands - Drunen
Tel: 31-416-690399
Spain - Madrid
Tel: 34-91-708-08-90
UK - Wokingham
Tel: 44-118-921-5869
ASIA/PACIFIC
Australia - Sydney
Tel: 61-2-9868-6733
China - Beijing
Tel: 86-10-8569-7000
China - Chengdu
Tel: 86-28-8665-5511
China - Chongqing
Tel: 86-23-8980-9588
China - Hangzhou
Tel: 86-571-2819-3187
China - Hong Kong SAR
Tel: 852-2401-1200
China - Nanjing
Tel: 86-25-8473-2460
China - Qingdao
Tel: 86-532-8502-7355
China - Shanghai
Tel: 86-21-5407-5533
China - Shenyang
Tel: 86-24-2334-2829
China - Shenzhen
Tel: 86-755-8203-2660
China - Wuhan
Tel: 86-27-5980-5300
China - Xiamen
Tel: 86-592-2388138
China - Xian
Tel: 86-29-8833-7252
China - Zhuhai
Tel: 86-756-3210040
ASIA/PACIFIC
India - Bangalore
Tel: 91-80-3090-4444
India - New Delhi
Tel: 91-11-4160-8631
India - Pune
Tel: 91-20-2566-1512
Japan - Osaka
Tel: 81-6-6152-7160
Japan - Yokohama
Tel: 81-45-471- 6166
Korea - Daegu
Tel: 82-53-744-4301
Korea - Seoul
Tel: 82-2-554-7200
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Malaysia - Penang
Tel: 60-4-227-8870
Philippines - Manila
Tel: 63-2-634-9065
Singapore
Tel: 65-6334-8870
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Taiwan - Kaohsiung
Tel: 886-7-213-7828
Taiwan - Taipei
Tel: 886-2-2508-8600
Thailand - Bangkok
Tel: 66-2-694-1351
11/29/11
www.microchip.com
Information subject to change. The Microchip name and logo, the Microchip logo, dsPIC, MPLAB and PIC are registered trademarks
and PICDEM, PICtail and mTouch are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. © 2012
Energizer. Energizer and other marks are trademarks owned by Energizer. All other trademarks mentioned herein are property
of their respective companies. © 2012, Microchip Technology Incorporated. All Rights Reserved. Printed in the U.S.A. 11/12
DS41565D
*DS41565D*
Microchip Technology Inc.
2355 W. Chandler Blvd.
Chandler, AZ 85224-6199