PIC16F72-I/SOG Microchip Technology, PIC16F72-I/SOG Datasheet - Page 35

IC PIC MCU FLASH 2KX14 28-SOIC

PIC16F72-I/SOG

Manufacturer Part Number
PIC16F72-I/SOG
Description
IC PIC MCU FLASH 2KX14 28-SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F72-I/SOG

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
6.0
The Timer2 module timer has the following features:
• 8-bit timer (TMR2 register)
• 8-bit period register (PR2)
• Readable and writable (both registers)
• Software programmable prescaler (1:1, 1:4, 1:16)
• Software programmable postscaler (1:1 to 1:16)
• Interrupt on TMR2 match of PR2
• SSP module optional use of TMR2 output to
Timer2 has a control register, shown in Register 6-1.
Timer2 can be shut-off by clearing control bit TMR2ON
(T2CON<2>) to minimize power consumption.
Figure 6-1 is a simplified block diagram of the Timer2
module.
Additional information on timer modules is available in
the PIC™ Mid-Range MCU Reference Manual,
(DS33023).
6.1
Timer2 can be used as the PWM time-base for PWM
mode of the CCP 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>)).
© 2007 Microchip Technology Inc.
generate clock shift
or
TIMER2 MODULE
Timer2 Operation
1:16,
OSC
selected
/4) has a prescale option of 1:1,
by
control
bits
6.2
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 ,
TMR2 is not cleared when T2CON is written.
6.3
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.
6.4
The output of TMR2 (before the postscaler) is fed to the
Synchronous Serial Port module, which optionally uses
it to generate a shift clock.
FIGURE 6-1:
Note 1: TMR2 register output can be software
WDT Reset, or Brown-out Reset)
Sets Flag
bit TMR2IF
1:1
Postscaler
Timer2 Prescaler and Postscaler
Timer2 Interrupt
Output of TMR2
to
selected by the SSP module as a baud clock.
1:16
4
TMR2
Output
RESET
EQ
(1)
Comparator
TMR2 reg
TIMER2 BLOCK DIAGRAM
PR2 reg
PIC16F72
1:1, 1:4, 1:16
DS39597C-page 33
Prescaler
2
F
OSC
/4

Related parts for PIC16F72-I/SOG