PIC16F72-I/ML Microchip Technology, PIC16F72-I/ML Datasheet - Page 44
![IC PIC MCU FLASH 2KX14 28-QFN](/photos/6/81/68120/150-28-qfn_sml.jpg)
PIC16F72-I/ML
Manufacturer Part Number
PIC16F72-I/ML
Description
IC PIC MCU FLASH 2KX14 28-QFN
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16F818-ISO.pdf
(6 pages)
4.PIC16F72-ISO.pdf
(136 pages)
5.PIC16F72-ISO.pdf
(6 pages)
6.PIC16F72-ISO.pdf
(136 pages)
Specifications of PIC16F72-I/ML
Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Number Of I /o
22
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-VQFN Exposed Pad, 28-HVQFN, 28-SQFN, 28-DHVQFN
Controller Family/series
PIC16F
No. Of I/o's
22
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT28QFN4 - SOCKET TRANS ICE 28QFN W/CABLEAC164322 - MODULE SOCKET MPLAB PM3 28/44QFN
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16F72-I/MLR
PIC16F72-I/MLR
PIC16F72-I/MLR
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
PIC16F72
Maximum PWM resolution (bits) for a given PWM
frequency is calculated using Equation 8-3.
EQUATION 8-3:
For a sample PWM period and duty cycle calculation,
see the PICmicro™ Mid-Range MCU Reference
Manual (DS33023).
TABLE 8-3:
TABLE 8-4:
DS39597B-page 42
0Bh,8Bh
10Bh,18Bh
0Ch
8Ch
87h
11h
92h
12h
15h
16h
17h
Legend:
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Address
Note:
PWM Maximum Resolution =
x = unknown, u = unchanged, - = unimplemented, read as ‘0’. Shaded cells are not used by PWM and Timer2.
INTCON
PIR1
PIE1
TRISC
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
If the PWM duty cycle value is longer than
the PWM period, the CCP1 pin will not be
cleared.
Name
PWM Frequency
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
PORTC Data Direction Register
Timer2 Module Register
Timer2 Module Period Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
Bit 7
PWM MAX RESOLUTION
GIE
—
—
—
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
—
log ( F
log(2)
F
PWM
OSC
TMR0IE
CCP1X
Bit 5
—
—
)
bits
1.22 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz
0xFF
CCP1Y
16
10
INTE
Bit 4
—
—
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
0xFF
SSPIF
SSPIE
RBIE
10
Bit 3
4
8.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
Set the PWM period by writing to the PR2 register.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
Make the CCP1 pin an output by clearing the
TRISC<2> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP1 module for PWM operation.
TMR0IF
CCP1IF
CCP1IE
Bit 2
0xFF
10
1
SET-UP FOR PWM OPERATION
TMR2IE
TMR2IF
INTF
Bit 1
0x3F
1
8
2002 Microchip Technology Inc.
TMR1IE -0-- 0000 0000 0000
TMR1IF -0-- 0000 0000 0000
RBIF
Bit 0
0x1F
0000 000x 0000 000u
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
POR, BOR
1
7
Value on
0x17
5.5
Value on
RESETS
all other
1