PIC16F946T-I/PT Microchip Technology, PIC16F946T-I/PT Datasheet - Page 190

Microcontroller

PIC16F946T-I/PT

Manufacturer Part Number
PIC16F946T-I/PT
Description
Microcontroller
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F946T-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
14KB (8K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
336 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
MA160011 - DAUGHTER BOARD PICDEM LCD 16F91X
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F946T-I/PT
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16F946T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F946
15.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
TABLE 15-1:
TABLE 15-2:
DS41265A-page 188
0Bh,8Bh,
10Bh, 18Bh
0Ch
0Dh
8Ch
8Dh
87h
0Eh
0Fh
10h
15h
16h
17h
1Bh
1Ch
1Dh
Legend:
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.
Make the RC5/T1CKI/CCP1/SEG10 pin an
output by clearing the TRISC<5> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP1 module for PWM operation.
PWM Frequency
TRISC
TMR1L
INTCON
PIR1
PIR2
PIE1
PIE2
TMR1H
T1CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
SETUP FOR PWM OPERATION
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by Capture and Timer1.
Name
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH CAPTURE, COMPARE AND TIMER1
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 Register 2 (LSB)
Capture/Compare/PWM Register 2 (MSB)
T1GINV
TRISC7
OSFIF
OSFIE
Bit 7
EEIF
EEIE
GIE
TRISC6
T1GE
PEIE
ADIF
ADIE
Bit 6
C2IF
C2IE
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON 0000 0000 uuuu uuuu
TRISC5
CCP1X
CCP2X
1.22 kHz
RCIE
Bit 5
RCIF
T0IE
C1IF
C1IE
0xFFh
16
10
TRISC4
CCP1Y
CCP2Y
LCDIF
LCDIE
Bit 4
INTE
TXIF
TXIE
Preliminary
4.88 kHz
0xFFh
10
4
CCP1M3
CCP2M3
TRISC3
SSPIF
SSPIE
Bit 3
RBIE
19.53 kHz
0xFFh
CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
CCP2M2 CCP2M1 CCP2M0 --00 0000 --00 0000
CCP1IE
TRISC2
CCP1IF
10
LVDIF
LVDIE
Bit 2
1
T0IF
TMR2IE
TMR2IF
TRISC1
Bit 1
INTF
78.12kHz
0x3Fh
1
8
TMR1IF
CCP2IF
TMR1IE
CCP2IE
TRISC0
© 2005 Microchip Technology Inc.
RBIF
Bit 0
156.3 kHz
0x1Fh
0000 000x 0000 000x
0000 0000 0000 0000
0000 -0-0 0000 -0-0
0000 0000 0000 0000
0000 -0-0 0000 -0-0
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:
1
7
POR,
BOR
208.3 kHz
0x17h
Value on
all other
Resets
5.5
1

Related parts for PIC16F946T-I/PT