PIC16LF877-04/L Microchip Technology, PIC16LF877-04/L Datasheet - Page 64

IC MCU FLASH 8KX14 EE A/D 44PLCC

PIC16LF877-04/L

Manufacturer Part Number
PIC16LF877-04/L
Description
IC MCU FLASH 8KX14 EE A/D 44PLCC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet

Specifications of PIC16LF877-04/L

Core Size
8-Bit
Program Memory Size
14KB (8K x 14)
Core Processor
PIC
Speed
4MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
44-PLCC
Controller Family/series
PIC16LF
No. Of I/o's
33
Eeprom Memory Size
256Byte
Ram Memory Size
368Byte
Cpu Speed
4MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16LF877-04/L
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F87X
8.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
TABLE 8-3:
TABLE 8-4:
DS30292C-page 62
0Bh,8Bh,
10Bh, 18Bh
0Ch
0Dh
8Ch
8Dh
87h
0Eh
0Fh
10h
15h
16h
17h
1Bh
1Ch
1Dh
Legend:
Note 1: The PSP is not implemented on the PIC16F873/876; always maintain these bits clear.
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Address
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.
x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by Capture and Timer1.
PWM Frequency
SETUP FOR PWM OPERATION
INTCON
PIR1
PIR2
PIE1
PIE2
TRISC
TMR1L
TMR1H
T1CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
Name
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH CAPTURE, COMPARE, AND TIMER1
PORTC Data Direction Register
Holding Register for the Least Significant Byte of the 16-bit TMR1 Register
Holding Register for the Most Significant Byte of the 16-bit TMR1 Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
Capture/Compare/PWM Register2 (LSB)
Capture/Compare/PWM Register2 (MSB)
PSPIF
PSPIE
Bit 7
GIE
(1)
(1)
PEIE
ADIF
ADIE
Bit 6
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
1.22 kHz
CCP1X
CCP2X
0xFFh
RCIE
Bit 5
RCIF
T0IE
16
10
CCP1Y
CCP2Y
Bit 4
INTE
TXIF
TXIE
4.88 kHz
0xFFh
10
4
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
CCP2M3 CCP2M2 CCP2M1 CCP2M0 --00 0000 --00 0000
SSPIE
SSPIF
RBIE
Bit 3
3.
4.
5.
19.53 kHz
0xFFh
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.
10
1
CCP1IE
CCP1IF
Bit 2
T0IF
78.12kHz
TMR2IF
TMR2IE
0x3Fh
Bit 1
INTF
1
8
TMR1IF 0000 0000 0000 0000
TMR1IE 0000 0000 0000 0000
CCP2IE ---- ---0 ---- ---0
CCP2IF ---- ---0 ---- ---0
2001 Microchip Technology Inc.
Bit 0
RBIF
156.3 kHz
0x1Fh
1
7
0000 000x 0000 000u
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on:
POR,
BOR
208.3 kHz
0x17h
5.5
1
Value on
RESETS
all other

Related parts for PIC16LF877-04/L