PIC18F1220-H/P Microchip Technology, PIC18F1220-H/P Datasheet - Page 112

no-image

PIC18F1220-H/P

Manufacturer Part Number
PIC18F1220-H/P
Description
IC MCU 8BIT 4KB FLASH 18PDIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheet

Specifications of PIC18F1220-H/P

Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
16
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 7x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 150°C
Package / Case
18-DIP (0.300", 7.62mm)
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PIC18F1220/1320
13.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 13-1:
TABLE 13-1:
DS39605F-page 110
INTCON GIE/GIEH PEIE/GIEL
PIR1
PIE1
IPR1
TMR2
T2CON
PR2
Legend:
Name
Timer2 Interrupt
Timer2 Module Register
Timer2 Period Register
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by the Timer2 module.
Bit 7
F
OSC
/4
REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
ADIF
ADIE
ADIP
TIMER2 BLOCK DIAGRAM
Bit 6
T2CKPS1:T2CKPS0
1:1, 1:4, 1:16
TMR0IE
Prescaler
RCIF
RCIE
RCIP
Bit 5
2
INT0IE
Bit 4
TXIF
TXIE
TXIP
Comparator
TMR2
PR2
RBIE
Bit 3
13.3
The output of TMR2 (before the postscaler) is fed to the
Synchronous Serial Port module, which optionally uses
it to generate the shift clock.
TMR0IF
CCP1IF
CCP1IE
CCP1IP
Reset
EQ
Bit 2
TOUTPS3:TOUTPS0
Postscaler
1:1 to 1:16
Output of TMR2
TMR2IE
TMR2IP
TMR2IF
INT0IF
Bit 1
Output
TMR2
4
(1)
TMR1IF
TMR1IE
TMR1IP
RBIF
Bit 0
© 2007 Microchip Technology Inc.
0000 000x 0000 000u
-000 -000 -000 -000
-000 -000 -000 -000
-111 -111 -111 -111
0000 0000 0000 0000
1111 1111 1111 1111
POR, BOR
Value on
bit TMR2IF
Sets Flag
Value on
all other
Resets

Related parts for PIC18F1220-H/P