PIC16C72-04I/SS Microchip Technology, PIC16C72-04I/SS Datasheet - Page 37
![IC MCU OTP 2KX14 A/D PWM 28SSOP](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC16C72-04I/SS
Manufacturer Part Number
PIC16C72-04I/SS
Description
IC MCU OTP 2KX14 A/D PWM 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16C72-04SO.pdf
(289 pages)
4.PIC16C72-04SO.pdf
(125 pages)
5.PIC16C72-04SO.pdf
(8 pages)
Specifications of PIC16C72-04I/SS
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SSOP
For Use With
309-1025 - ADAPTER 28-SSOP TO 28-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
For an example PWM period and duty cycle calcula-
tion, see the PICmicro™ Mid-Range MCU Reference
Manual (DS33023).
7.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
TABLE 7-3
TABLE 7-4
Address
0Bh,8Bh
0Ch
8Ch
87h
11h
92h
12h
15h
16h
17h
Legend:
Note 1: These bits/registers are unimplemented, read as '0'.
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
1998 Microchip Technology Inc.
Set the PWM period by writing to the PR2 regis-
ter.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
SET-UP FOR PWM OPERATION
x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by PWM and Timer2.
Name
INTCON
PIR1
PIE1
TRISC
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
PWM Frequency
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
PORTC Data Direction Register
Timer2 module’s register
Timer2 module’s period register
Capture/Compare/PWM register1 (LSB)
Capture/Compare/PWM register1 (MSB)
Bit 7
GIE
(1)
(1)
—
—
TOUTPS
PEIE
ADIF
ADIE
Bit 6
—
3
TOUTPS
CCP1X
Bit 5
T0IE
(1)
(1)
2
1.22 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz
0xFF
16
10
TOUTPS
Preliminary
CCP1Y
INTE
Bit 4
(1)
(1)
1
0xFF
TOUTPS
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
10
SSPIF
SSPIE
4
RBIE
Bit 3
3.
4.
5.
0
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.
CCP1IF
CCP1IE
TMR2O
Bit 2
T0IF
0xFF
N
10
1
PIC16C72 Series
T2CKPS
TMR2IF
TMR2IE
INTF
Bit 1
1
0x3F
1
8
T2CKPS
TMR1IE 0000 0000 0000 0000
TMR1IF 0000 0000 0000 0000
RBIF
Bit 0
0
0x1F
0000 000x 0000 000u
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
-000 0000 -000 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on:
1
7
POR,
DS39016A-page 37
BOR
0x17
5.5
Value on
all other
1
resets