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 line-
up. 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.
ADC
DAC
I
2
C™/SPI
Timers
MAX PWM
Channels**
New Peripherals
HRPWM***
Availability
Now
Now
Now
Now
Now
Now
Now
Now
Now
Now
Q2 ‘13
Now
Now
Q2 ‘13
Q2 ‘13
Q2 ‘13
Q2 ‘13
Q2 ‘13
EUSART
PWM*
CWG/
COG
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
–
–
–
–
–
–
–
USB
PIC10(L)F320
Low Pin Count
448
896
1.75K
3.5K
3.5K
7K
14K
8K
8K
1K
2K
2K
4K
4K
8K
8K
16K
16K
64
64
64
128
128
256
512
1K
1K
64
128
256
512
512
1K
1K
2K
2K
6
6
8
14
20
20
20
14
20
8
14
28
28
44
28
44
28
44
4
4
6
12
18
18
18
11
17
6
12
25
25
36
25
36
25
36
3
3
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
4
8
12
12
12
5
9
4
8
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
11
11
14
11
14
11
14
–
–
1
2
2
2
2
2
2
2
2
3
3
4
4
4
4
4
–
–
1
1
1
1
1
1
1
–
–
–
–
–
–
3
3
–
–
–
–
–
–
–
–
–
–
–
1
1
1
1
1
1
1
–
–
–
–
–
–
–
–
–
–
1
–
–
–
–
–
–
–
–
–
–
–
–
ü
ü
ü
ü
–
–
ü
ü
ü
ü
ü
ü
ü
–
–
–
ü
–
ü
ü
ü
ü
–
–
ü
ü
ü
ü
ü
ü
ü
–
–
–
–
–
–
–
ü
ü
–
–
–
–
–
–
–
–
–
2
2
2
2
2
2
2
2
2
3
4
2
2
2
2
2
2
2
–
–
1
1
1
1
1
1
1
–
–
1
1
1
1
1
1
1
2
2
4
4
4
4
4
2
2
1
1
4
4
6
6
6
7
7
4
4
6
7
7
7
7
4
4
3
3
10
10
17
17
17
17
17
1
1
2
2
2
4
4
–
–
–
–
–
–
–
–
–
–
–
ü
ü
ü
ü
ü
ü
ü
–
–
–
–
–
–
–
–
–
–
–
PSMC
–
–
–
–
–
–
–
–
–
–
–
2
2
3
3
3
4
4
10-bit
12-bit
16-bit
Comp
Flash
RAM
8-bit
5-bit
8-bit
9-bit
8-bit
NCO
Pins
CLC
I/O
ü
ü
ü
ü
ü
ü
ü
–
–
–
–
–
–
–
–
–
–
–
PIC10(L)F322
PIC12(L)F1501
PIC16(L)F1503
PIC16(L)F1507
PIC16(L)F1508
PIC16(L)F1509
PIC16(L)F1455
PIC16(L)F1459
PIC12F752/HV752
PIC16F753/HV753
Intelligent Analog
USB
PIC16(L)F1782
PIC16(L)F1783
PIC16(L)F1784
PIC16(L)F1786
PIC16(L)F1787
PIC16(L)F1788
PIC16(L)F1789
*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
Development Boards
PIC12F150X
PIC16F150X
PIC16F145X
PIC16F178X
PIC10F32X
PIC12F752
PIC16F753
IDE/Compiler
■
MPLAB X IDE
■
MPLAB XC8 Compiler
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)
–
–
ü
ü
–
–
ü
ü
–
–
–
–
ü
ü
–
–
–
–
ü
ü
–
–
ü
–
ü
ü
–
–
–
–
ü
ü
–
–
–
–
ü
–
–
–
–
ü
PICDEM™ Lab Development Kit
(DM163045)
PICkit Low Pin Count
Development Board
(DM164130-9)
Programmer/Debuggers
■
PICkit 3 (PG164130)
■
MPLAB® ICD 3 (DV164035)
■
MPLAB REAL ICE™ In-Circuit Debugger (DV244005)
Low Pin Count USB
Development Board
(DM164127)
PIC10F32X Development Board
(AC103011))
2
Core Independent Peripherals for 8-bit PIC Microcontrollers
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
D S Q1
R
CLC2
CLC3
D S Q2
R
F
OSC
CLC4
Data Output
Code Reset
NCO
NCO
CLK
NCO
OUT
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
■
Provides non-overlapping complementary waveform
■
Various input sources inclusive of:
• Comparators, PWM, CLC, NCO
■
Blanking control for transient filtering
1
(available with COG)
■
Phase control for output delay
2
(available with COG)
■
Independent rise and fall
3
/
4
■
Dead band control
■
Auto shutdown/restart
■
Polarity control
Benefits
■
■
■
■
■
■
■
■
■
■
Works with multiple peripherals
Fewer components and less space
Lower power
Improved switching efficiencies
Switch mode power supplies
LED/fluorescent lighting
Battery charger
Motor drive
Power factor correction
Class D audio amplifiers
Complementary Outputs
Example Applications
Complementary Output Generator (COG)
Input Source
2 - Phase control
3 - Rising edge deadband control
4 - Falling edge deadband control
1 - Blanking control, for transient filtering
Comparator
PWM
External
Input
1
Source
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
Auto
Shutdown
Motor
■
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
Comp
Output
Dead Band
Control
+
–
Voltage
Reference
Auto
Shutdown
■
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
4
Core Independent Peripherals for 8-bit PIC Microcontrollers
8-bit Peripheral Highlights
Numerically Controlled Oscillator (NCO)
Key Features
■
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)
Oscillator Capabilities with True Linear Frequency Control
Benefits
■
True linear frequency control
■
Increased frequency resolution
Example Applications
■
■
■
■
■
Fluorescent ballast and LED lighting control
Motor drivers
Modems
Class D audio amplifiers
Ultrasonic ranging
Numeric
Increment
Value
NCO
F F F F
Increment (16-bit)
16 MHz
Clock
Accumulator (20-bit)
Overflow
Output Generation
Output
1
FDC
or
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
PIC
®
Microcontroller
Bulb Voltage
Max.
Brightness
Light Output
Min.
Brightness
NCO
Frequency
ADC
NCO provides linear
control over entire range
Core Independent Peripherals for 8-bit PIC Microcontrollers
5