PIC16C716/JW Microchip Technology, PIC16C716/JW Datasheet - Page 45

IC MCU EPROM2KX14 A/D PWM 18CDIP

PIC16C716/JW

Manufacturer Part Number
PIC16C716/JW
Description
IC MCU EPROM2KX14 A/D PWM 18CDIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C716/JW

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
EPROM, UV
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-CDIP (0.300", 7.62mm) Window
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Other names
PIC16C716/JWR
PIC16C716/JWR
Q811661
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:
© 2005 Microchip Technology Inc.
Address
07h
0Bh,8Bh
0Ch
11h
12h
15h
16h
17h
87h
8Ch
92h
Legend: x = unknown, u = unchanged, — = unimplemented read as ‘0’. Shaded cells are not used by PWM and Timer2.
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
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
TRISCCP<2> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP1 module for PWM operation.
Name
DATACCP
INTCON
PIR1
TMR2
T2CON
CCPR1L
CCPR1H
CCP1CON
TRISCCP
PIE1
PR2
SET-UP FOR PWM OPERATION
PWM Frequency
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
Timer2 Module’s Register
Capture/Compare/PWM Register 1 (LSB)
Capture/Compare/PWM Register 1 (MSB)
Timer2 Module’s Period Register
Bit 7
GIE
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
ADIE
Bit 6
PEIE
ADIF
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
DC1B0
INTE
Bit 4
0xFF
10
4
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
RBIE
Bit 3
0xFF
CCP1IE
CCP1IF
DCCP
TCCP
10
Bit 2
T0IF
1
PIC16C712/716
TMR2IE
TMR2IF
INTF
Bit 1
0x3F
1
8
TMR1IE -0-- -000 -0-- -000
DT1CK
TMR1IF
TT1CK
RBIF
Bit 0
0x1F
1
7
xxxx xxxx xxxx xuxu
0000 000x 0000 000u
-0-- -000 -0-- -000
0000 0000 0000 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx x1x1 xxxx x1x1
1111 1111 1111 1111
DS41106B-page 43
Value on
POR,
BOR
0x17
5.5
1
Value on
all other
Resets

Related parts for PIC16C716/JW