PIC18F23K20-E/MLQTP MICROCHIP [Microchip Technology], PIC18F23K20-E/MLQTP Datasheet - Page 150
![no-image](/images/no-image-200.jpg)
PIC18F23K20-E/MLQTP
Manufacturer Part Number
PIC18F23K20-E/MLQTP
Description
28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC18F23K20-EMLQTP.pdf
(420 pages)
- Current page: 150 of 420
- Download datasheet (8Mb)
PIC18F2XK20/4XK20
13.2
Timer2 can also generate an optional device interrupt.
The Timer2 output signal (TMR2-to-PR2 match) pro-
vides the input for the 4-bit output counter/postscaler.
This counter generates the TMR2 match interrupt flag
which is latched in TMR2IF of the PIR1 register. The
interrupt is enabled by setting the TMR2 Match Inter-
rupt Enable bit, TMR2IE of the PIE1 register.
A range of 16 postscale options (from 1:1 through 1:16
inclusive) can be selected with the postscaler control
bits, T2OUTPS<3:0> of the T2CON register.
FIGURE 13-1:
TABLE 13-1:
DS41303B-page 148
INTCON GIE/GIEH PEIE/GIEL
PIR1
PIE1
IPR1
TMR2
T2CON
PR2
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by the Timer2 module.
Note 1:
Name
T2OUTPS<3:0>
T2CKPS<1:0>
F
OSC
Timer2 Interrupt
/4
Timer2 Register
Timer2 Period Register
These bits are unimplemented on 28-pin devices; always maintain these bits clear.
PSPIE
PSPIP
PSPIF
Bit 7
—
REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER
(1)
(1)
(1)
TIMER2 BLOCK DIAGRAM
T2OUTPS3 T2OUTPS2 T2OUTPS1 T2OUTPS0 TMR2ON T2CKPS1 T2CKPS0
Internal Data Bus
1:1, 1:4, 1:16
ADIE
ADIP
ADIF
Bit 6
2
Prescaler
TMR0IE
RCIF
RCIE
RCIP
Bit 5
Advance Information
4
TMR2
INT0IE
Bit 4
TXIF
TXIE
TXIP
Reset
8
SSPIE
SSPIP
SSPIF
RBIE
Bit 3
13.3
The unscaled output of TMR2 is available primarily to
the CCP modules, where it is used as a time base for
operations in PWM mode.
Timer2 can be optionally used as the shift clock source
for the MSSP module operating in SPI mode. Addi-
tional information is provided in Section 17.0 “Master
Synchronous Serial Port (MSSP) Module”.
Comparator
1:1 to 1:16
Postscaler
8
TMR2/PR2
Match
Timer2 Output
TMR0IF
CCP1IE
CCP1IP
CCP1IF
Bit 2
TMR2IF
TMR2IE
TMR2IP
INT0IF
© 2007 Microchip Technology Inc.
Bit 1
PR2
8
Set TMR2IF
TMR2 Output
(to PWM or MSSP)
TMR1IF
TMR1IE
TMR1IP
RBIF
Bit 0
on page
Values
Reset
57
60
60
60
58
58
58
Related parts for PIC18F23K20-E/MLQTP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F23K20-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F23K20-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC MCU 8BIT 8KB FLASH 28UQFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 QFN 6x6mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 UQFN 4x4x0.5mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SO](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SOIC .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SPDIP .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SS](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SSOP .209in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2480](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F2682-I/PT](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet: