PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 58

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 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
PIC16F785/HV785
7.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 7-1:
TABLE 7-1:
DS41249D-page 56
0Bh,
8Bh
0Ch
11h
12h
8Ch
92h
Legend:
Addr
INTCON
PIR1
TMR2
T2CON
PIE1
PR2
Timer2 Interrupt
Name
F
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by the Timer2 module.
OSC
/4
Holding Register for the 8-bit TMR2 Register
Timer2 Module Period register
REGISTERS ASSOCIATED WITH TIMER2
Bit 7
EEIF
EEIE
GIE
TIMER2 BLOCK DIAGRAM
TOUTPS3 TOUTPS2
T2CKPS<1:0>
PEIE
ADIF
ADIE
Bit 6
1:1, 1:4, 1:16
Prescaler
2
CCP1IF
CCP1IE
Bit 5
T0IE
TOUTPS1
INTE
Comparator
Bit 4
C2IF
C2IE
Preliminary
TMR2
PR2
TOUTPS0
RAIE
C1IE
Bit 3
C1IF
EQ
Reset
TMR2ON T2CKPS1 T2CKPS0
TOUTPS<3:0>
OSFIF
OSFIE
Bit 2
T0IF
Postscaler
1:1 to 1:16
Output
TMR2
4
TMR2IF
TMR2IE
INTF
Bit 1
TMR1IF
TMR1IE
© 2006 Microchip Technology Inc.
Bit 0
RAIF
bit TMR2IF
Sets Flag
0000 0000
0000 0000
0000 0000
-000 0000
0000 0000
1111 1111
POR, BOR
Value on:
0000 0000
0000 0000
0000 0000
-000 0000
0000 0000
1111 1111
Value on
all other
Resets

Related parts for PIC16F785-I/P