PIC16F877A-I/PT Microchip Technology Inc., PIC16F877A-I/PT Datasheet - Page 64

no-image

PIC16F877A-I/PT

Manufacturer Part Number
PIC16F877A-I/PT
Description
44 PIN, 7 KB FLASH, 368 RAM, 33 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F877A-I/PT

A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
33
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
44-pin TQFP
Programmable Memory
14K Bytes
Ram Size
368 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F877A-I/PT
Manufacturer:
MICROCHIP
Quantity:
9 100
Part Number:
PIC16F877A-I/PT
Manufacturer:
AVAGO
Quantity:
84
Part Number:
PIC16F877A-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F877A-I/PT
Quantity:
1 639
Part Number:
PIC16F877A-I/PT
0
Company:
Part Number:
PIC16F877A-I/PT
Quantity:
3 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 PIC16F877A-I/PT