PIC24FJ64GA306-I/MR Microchip Technology, PIC24FJ64GA306-I/MR Datasheet - Page 197

no-image

PIC24FJ64GA306-I/MR

Manufacturer Part Number
PIC24FJ64GA306-I/MR
Description
16-bit, 16 MIPS, 64 KB Flash, 8 KB RAM, 53 I/O, LCD, XLP W/Vbat 64 QFN 9x9x0.9mm
Manufacturer
Microchip Technology
Datasheet
12.0
The Timer1 module is a 16-bit timer, which can serve
as the time counter for the Real-Time Clock (RTC) or
operate as a free-running, interval timer/counter.
Timer1 can operate in three modes:
• 16-Bit Timer
• 16-Bit Synchronous Counter
• 16-Bit Asynchronous Counter
Timer1 also supports these features:
• Timer Gate Operation
• Selectable Prescaler Settings
• Timer Operation during CPU Idle and Sleep
• Interrupt on 16-Bit Period Register Match or
FIGURE 12-1:
 2010-2011 Microchip Technology Inc.
Note:
modes
Falling Edge of External Gate Signal
Clock Input Select Detail
SOSCO
SOSC
Input
T1CK Input
LPRC Input
SOSCI
LPRC
TIMER1
Section 14. “Timers” (DS39704). The
This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. For more information, refer to the
“PIC24F
information in this data sheet supersedes
the information in the FRM.
T1ECS<1:0>
Family
16-BIT TIMER1 MODULE BLOCK DIAGRAM
2
T
CY
SOSCEN
Gate
Sync
Reference
SOSCSEL<1:0>
TGATE
TCS
Input Select
Manual”,
Clock
PIC24FJ128GA310 FAMILY
TON
Figure 12-1
timer module.
To configure Timer1 for operation:
1.
2.
3.
4.
5.
6.
TCKPS<1:0>
1, 8, 64, 256
Prescaler
Set the TON bit (= 1).
Select the timer prescaler ratio using the
TCKPS<1:0> bits.
Set the Clock and Gating modes using the TCS,
TECS and TGATE bits.
Set or clear the TSYNC bit to configure
synchronous or asynchronous operation.
Load the timer period value into the PR1
register.
If interrupts are required, set the interrupt enable
bit, T1IE. Use the priority bits, T1IP<2:0>, to set
the interrupt priority.
Comparator
D
CK
TMR1
2
PR1
presents a block diagram of the 16-bit
Q
Q
Reset
Equal
Sync
TGATE
1
0
TSYNC
1
0
DS39996F-page 197
Set T1IF
Gate
Output
Clock
Output
to TMR1

Related parts for PIC24FJ64GA306-I/MR