PIC16LC770-E/SS Microchip Technology, PIC16LC770-E/SS Datasheet - Page 66
![IC MCU OTP 2KX14 A/D PWM 20SSOP](/photos/6/58/65895/150-20-ssop_sml.jpg)
PIC16LC770-E/SS
Manufacturer Part Number
PIC16LC770-E/SS
Description
IC MCU OTP 2KX14 A/D PWM 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16LC770-E/SS
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
15
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 6x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Other names
PIC16LC770E/SS
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LC770-E/SS
Manufacturer:
MICROCHIP
Quantity:
4 000
- 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 PIC16LC770-E/SS
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16LC77-04I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
44 PIN, 14KB OTP, 368 RAM, 33 I/O,
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LC77-04I/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
IC MCU OTP 8KX14 A/D PWM 44TQFP
Manufacturer:
Microchip Technology
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: