PIC16F716 Microchip Technology, PIC16F716 Datasheet - Page 34

no-image

PIC16F716

Manufacturer Part Number
PIC16F716
Description
8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F716
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F716-1/P4AP
Manufacturer:
a
Quantity:
4
Part Number:
PIC16F716-E/ML
0
Part Number:
PIC16F716-E/SO
Manufacturer:
PIC
Quantity:
5 510
Part Number:
PIC16F716-E/SO
Manufacturer:
AMD
Quantity:
5 510
Part Number:
PIC16F716-E/SS
Manufacturer:
BCD
Quantity:
10
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP
Quantity:
5 373
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16F716-I/P
Quantity:
6 994
Company:
Part Number:
PIC16F716-I/P
Quantity:
3 900
Part Number:
PIC16F716-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F716-I/SO
0
Company:
Part Number:
PIC16F716-I/SO
Quantity:
2 000
Company:
Part Number:
PIC16F716-I/SO
Quantity:
1 680
Part Number:
PIC16F716-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16F716
6.1
Timer2 can be used as the PWM time base for PWM
mode of the ECCP module.
The TMR2 register is readable and writable, and is
cleared on any device Reset
The input clock (F
1:4
T2CKPS1:T2CKPS0 (T2CON<1:0>).
The match output of TMR2 goes through a 4-bit
postscaler (which gives a 1:1 to 1:16 scaling inclusive)
to generate a TMR2 interrupt (latched in flag bit
TMR2IF, (PIR1<1>).
The prescaler and postscaler counters are cleared
when any of the following occurs:
• A write to the TMR2 register
• A write to the T2CON register
• Any device Reset (Power-on Reset, MCLR Reset,
TMR2 is not cleared when T2CON is written.
TABLE 6-1:
DS41206A-page 32
Legend:
0Bh, 8Bh
Address
Watchdog Timer Reset, or Brown-out Reset)
0Ch
8Ch
12h
92h
11h
or
Timer2 Operation
INTCON
T2CON
Name
TMR2
PIR1
PIE1
x = unknown, u = unchanged, - = unimplemented read as ‘0’. Shaded cells are not used by the Timer2 module.
PR2
1:16,
REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER
OSC
Bit 7
GIE
/4) has a prescale option of 1:1,
selected
TOUTPS3
PEIE
ADIF
ADIE
Bit 6
by
TOUTPS2
Bit 5
T0IE
control
TOUTPS1
Timer2 module’s register
Timer2 Period Register
Bit 4
INTE
Preliminary
bits
TOUTPS0
RBIE
Bit 3
6.2
The Timer2 module has an 8-bit Period register (PR2).
Timer2 increments from 00h until it matches PR2 and
then resets to 00h on the next increment cycle. PR2 is
a readable and writable register. The PR2 register is
initialized to FFh upon Reset.
FIGURE 6-1:
Sets flag
bit TMR2IF
TMR2ON
CCP1IF
CCP1IE
Bit 2
T0IF
1:1
Postscaler
Timer2 Interrupt
to
1:16
4
T2CKPS1 T2CKPS0
TMR2IF
TMR2IE
TMR2
output
Reset
INTF
Bit 1
EQ
Comparator
TIMER2 BLOCK DIAGRAM
TMR2 reg
TMR1IF
TMR1IE
PR2 reg
 2003 Microchip Technology Inc.
Bit 0
RBIF
0000 000x
0000 0000
-000 0000
1111 1111
Value on
-0-- -000
-0-- -000
POR,
BOR
1:1, 1:4, 1:16
Prescaler
2
0000 000u
0000 0000
-000 0000
1111 1111
Value on
-0-- -000
-0-- -000
all other
Resets
F
OSC
/4

Related parts for PIC16F716