PIC16C62B-20I/SO Microchip Technology, PIC16C62B-20I/SO Datasheet - Page 37
![IC MCU OTP 2KX14 PWM 28SOIC](/photos/6/59/65909/150-28-soic_sml.jpg)
PIC16C62B-20I/SO
Manufacturer Part Number
PIC16C62B-20I/SO
Description
IC MCU OTP 2KX14 PWM 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F818-ISO.pdf
(6 pages)
2.PIC16C62B-04SO.pdf
(120 pages)
3.PIC16C62B-04SO.pdf
(5 pages)
4.PIC16C62A-04SP.pdf
(337 pages)
Specifications of PIC16C62B-20I/SO
Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Oscillator Type
External
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
22
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
No. Of Pwm
RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C62B-20I/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C62B-20I/SO
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-4
TABLE 7-5
Address
0Bh,8Bh
0Ch
8Ch
87h
11h
92h
12h
15h
16h
17h
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 on-time 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.
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
—
—
—
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
—
CCP1X
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
CCP1Y
INTE
Bit 4
—
—
0xFF
10
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
4
SSPIF
SSPIE
RBIE
Bit 3
CCP1IE
CCP1IF
0xFF
Bit 2
T0IF
10
1
PIC16C62B/72A
TMR2IF
TMR2IE
Bit 1
INTF
0x3F
1
8
TMR1IE -0-- 0000 -0-- 0000
TMR1IF
RBIF
Bit 0
0x1F
1
7
1111 1111 1111 1111
0000 000x 0000 000u
-0-- 0000 -0-- 0000
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
DS35008B-page 37
Value on
POR,
BOR
0x17
5.5
1
Value on
all other
resets