PIC16C712-04/P Microchip Technology, PIC16C712-04/P Datasheet - Page 43
![IC MCU OTP 1KX14 A/D PWM 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
PIC16C712-04/P
Manufacturer Part Number
PIC16C712-04/P
Description
IC MCU OTP 1KX14 A/D PWM 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16C716-04P.pdf
(106 pages)
2.PIC16C716-04P.pdf
(14 pages)
3.PIC16C712-04P.pdf
(109 pages)
Specifications of PIC16C712-04/P
Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
4MHz
Number Of I /o
13
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-DIP (0.300", 7.62mm)
Controller Family/series
PIC16C
No. Of I/o's
13
Ram Memory Size
128Byte
Cpu Speed
4MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C712-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
7.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
TABLE 7-3
TABLE 7-4
Address
07h
0Bh,8Bh
0Ch
11h
12h
15h
16h
17h
87h
8Ch
92h
Legend:
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
1999 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.
Make the CCP1 pin an output by clearing the
TRISCCP<2> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP1 module for PWM operation.
SET-UP FOR PWM OPERATION
x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by PWM and Timer2.
Name
DATACCP
INTCON
PIR1
TMR2
T2CON
CCPR1L
CCPR1H
CCP1CON
TRISCCP
PIE1
PR2
PWM Frequency
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
Timer2 module’s register
Capture/Compare/PWM register1 (LSB)
Capture/Compare/PWM register1 (MSB)
Timer2 module’s period register
Bit 7
GIE
—
—
—
—
—
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
—
—
—
DC1B1
Bit 5
T0IE
—
—
—
—
1.22 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz
0xFF
16
10
Preliminary
DC1B0
INTE
Bit 4
—
—
—
—
0xFF
10
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
4
RBIE
Bit 3
—
—
—
—
CCP1IE
CCP1IF
0xFF
DCCP
TCCP
Bit 2
T0IF
10
1
PIC16C712/716
TMR2IF
TMR2IE
Bit 1
INTF
—
—
0x3F
1
8
TMR1IE -0-- -000 -0-- -000
DT1CK
TMR1IF
TT1CK
RBIF
Bit 0
0x1F
1
7
xxxx xxxx xxxx xuxu
xxxx x1x1 xxxx x1x1
0000 000x 0000 000u
-0-- -000 -0-- -000
0000 0000 0000 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
DS41106A-page 43
Value on
POR,
BOR
0x17
5.5
1
Value on
all other
resets