PIC12F609-H/MD MICROCHIP [Microchip Technology], PIC12F609-H/MD Datasheet - Page 65
![no-image](/images/no-image-200.jpg)
PIC12F609-H/MD
Manufacturer Part Number
PIC12F609-H/MD
Description
8-Pin, Flash-Based 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12F609-HMD.pdf
(212 pages)
- Current page: 65 of 212
- Download datasheet (2Mb)
8.0
The Timer2 module is an 8-bit timer with the following
features:
• 8-bit timer register (TMR2)
• 8-bit period register (PR2)
• Interrupt on TMR2 match with PR2
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
See Figure 8-1 for a block diagram of Timer2.
8.1
The clock input to the Timer2 module is the system
instruction clock (F
Timer2 prescaler, which has prescale options of 1:1,
1:4 or 1:16. The output of the prescaler is then used to
increment the TMR2 register.
The values of TMR2 and PR2 are constantly compared
to determine when they match. TMR2 will increment
from 00h until it matches the value in PR2. When a
match occurs, two things happen:
• TMR2 is reset to 00h on the next increment cycle.
• The Timer2 postscaler is incremented
The match output of the Timer2/PR2 comparator is
then fed into the Timer2 postscaler. The postscaler has
postscale options of 1:1 to 1:16 inclusive. The output of
the Timer2 postscaler is used to set the TMR2IF
interrupt flag bit in the PIR1 register.
FIGURE 8-1:
2010 Microchip Technology Inc.
TIMER2 MODULE
(PIC12F615/617/HV615 ONLY)
Timer2 Operation
F
OSC
/4
OSC
TIMER2 BLOCK DIAGRAM
/4). The clock is fed into the
T2CKPS<1:0>
1:1, 1:4, 1:16
Prescaler
PIC12F609/615/617/12HV609/615
2
Comparator
TMR2
PR2
EQ
Reset
The TMR2 and PR2 registers are both fully readable
and writable. On any Reset, the TMR2 register is set to
00h and the PR2 register is set to FFh.
Timer2 is turned on by setting the TMR2ON bit in the
T2CON register to a ‘1’. Timer2 is turned off by clearing
the TMR2ON bit to a ‘0’.
The Timer2 prescaler is controlled by the T2CKPS bits
in the T2CON register. The Timer2 postscaler is
controlled by the TOUTPS bits in the T2CON register.
The prescaler and postscaler counters are cleared
when:
• A write to TMR2 occurs.
• A write to T2CON occurs.
• Any device Reset occurs (Power-on Reset, MCLR
Reset, Watchdog Timer Reset, or Brown-out
Reset).
Note:
TOUTPS<3:0>
Postscaler
1:1 to 1:16
Output
TMR2
TMR2 is not cleared when T2CON is
written.
4
Sets Flag
bit TMR2IF
DS41302D-page 65
Related parts for PIC12F609-H/MD
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC12F609-I/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-E/MD](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 DFN 4x4mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-I/PQTP](/images/no-image3.png)
Part Number:
Description:
8-Pin Flash-Based, 8-Bit CMOS Microcontrollers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC12F609-I/MS](/photos/6/59/65932/mfg_150_c04-111_ms_8-msop_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8MSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-I/MF](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8-DFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-E/P](/photos/16/0/160065/8-pdip-angled-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 PDIP .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-E/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 SOIC 3.90mm (.150") TUB
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-E/MF](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 DFN 3x3mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-E/MS](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 MSOP 3x3mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F609-I/MD](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
1.75KB Flash, 64B RAM, 6 I/O, 8MHz Internal Oscillator 8 DFN 4x4mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F1840-I/P](/photos/16/3/160349/pdip8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer:
Microchip Technology
Datasheet:
![PIC12LF1840-I/MF](/photos/16/0/160077/dfn8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F1840-I/MF](/photos/16/0/160077/dfn8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 DFN
Manufacturer:
Microchip Technology
![PIC12F1840-I/SN](/photos/16/3/160347/soic8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 SOI
Manufacturer:
Microchip Technology