PIC16C770/P Microchip Technology Inc., PIC16C770/P Datasheet - Page 66
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C770/P
Manufacturer Part Number
PIC16C770/P
Description
20 PIN, 3.5 KB OTP, 256 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C770P.pdf
(220 pages)
Specifications of PIC16C770/P
A/d Inputs
6-Channel, 12-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
16
Interface
I2C/SPI
Memory Type
OTP
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
256 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
- Current page: 66 of 220
- Download datasheet (4Mb)
PIC16C717/770/771
8.3.7
When the ECCP module is used in the PWM mode, the
application hardware must use the proper external pull-
up and/or pull-down resistors on the PWM output pins.
When the microcontroller powers up, all of the I/O pins
are in the high-impedance state. The external pull-up
and pull-down resistors must keep the power switch
devices in the off state until the microcontroller drives
the I/O pins with the proper signal levels, or activates
the PWM output(s).
8.3.8
Prior to enabling the PWM outputs, the P1A, P1B, P1C
and P1D latches may not be in the proper states.
Enabling the TRISB bits for output at the same time
with the CCP module may cause damage to the power
switch devices. The CCP1 module must be enabled in
the proper Output mode with the TRISB bits enabled as
inputs. Once the CCP1 completes a full PWM cycle,
the P1A, P1B, P1C and P1D output latches are prop-
erly initialized. At this time, the TRISB bits can be
enabled for outputs to start driving the power switch
devices. The completion of a full PWM cycle is indi-
cated by the TMR2IF bit going from a ’0’ to a ’1’.
TABLE 8-3:
DS41120B-page 64
0Bh, 8Bh,
10Bh, 18Bh
0Ch
8Ch
86h, 186h
11h
92h
12h
15h
17h
97h
Legend:
Address
INTCON
PIR1
PIE1
TRISB
TMR2
PR2
T2CON
CCPR1L
CCP1CON PWM1M1
P1DEL
x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by ECCP module in PWM mode.
SYSTEM IMPLEMENTATION
START-UP CONSIDERATIONS
Name
REGISTERS ASSOCIATED WITH PWM
PORTB Data Direction Register
Timer2 register
Timer2 period register
Capture/Compare/PWM register1 (LSB)
PWM1 Delay value
Bit 7
GIE
—
—
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0
PWM1M0
ADIE
Bit 6
PEIE
ADIF
DC1B1
Bit 5
T0IE
—
—
DC1B0
INTE
Bit 4
—
—
CCP1M3
SSPIF
SSPIE
RBIE
Bit 3
8.3.9
The following steps should be taken when configuring
the ECCP module for PWM operation:
1.
2.
3.
Configure the PWM module:
a)
b)
c)
d)
e)
Configure and start TMR2:
a)
b)
c)
Enable PWM outputs after a new cycle has
started:
a)
b)
TMR2ON
CCP1M2
CCP1IE
CCP1IF
Bit 2
T0IF
Disable the CCP1/P1A, P1B, P1C and/or
P1D outputs by setting the respective
TRISB bits.
Set the PWM period by loading the PR2
register.
Set the PWM duty cycle by loading the
CCPR1L register and CCP1CON<5:4>
bits.
Configure the ECCP module for the desired
PWM operation by loading the CCP1CON
register. With the CCP1M<3:0> bits select
the active high/low levels for each PWM
output. With the PWM1M<1:0> bits select
one of the available Output modes: Single,
Half-Bridge, Full-Bridge, Forward or Full-
Bridge Reverse.
For Half-Bridge Output mode, set the dead-
band delay by loading the P1DEL register.
Clear the TMR2 interrupt flag bit by clearing
the TMR2IF bit in the PIR1 register.
Set the TMR2 prescale value by loading the
T2CKPS<1:0> bits in the T2CON register.
Enable Timer2 by setting the TMR2ON bit
in the T2CON register.
Wait until TMR2 overflows (TMR2IF bit
becomes a ’1’). The new PWM cycle begins
here.
Enable the CCP1/P1A, P1B, P1C and/or
P1D pin outputs by clearing the respective
TRISB bits.
SET UP FOR PWM OPERATION
T2CKPS1
CCP1M1
TMR2IE
TMR2IF
Bit 1
INTF
T2CKPS0 -000 0000 -000 0000
CCP1M0
TMR1IF
TMR1IE
2002 Microchip Technology Inc.
RBIF
Bit 0
0000 000x 0000 000u
-0-- 0000 -0-- 0000
-0-- 0000 -0-- 0000
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
0000 0000 0000 0000
0000 0000 0000 0000
Value on
POR,
BOR
Value on
RESETS
all other
Related parts for PIC16C770/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC1-100-JT](/images/no-image3.png)
Part Number:
Description:
SURFACE MOUNT POWER INDUCTORS
Manufacturer:
RCD [RCD COMPONENTS INC.]
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: