
© 2010 Microchip Technology Inc. DS70205C-page 11-3
Section 11. Timers
Timers
11
11.2 TIMER VARIANTS
This section describes the different types of timers available on the dsPIC33F/PIC24H family of
devices.
11.2.1 Type A Timer
Timer1 is a Type A timer. A Type A timer has the following unique features over other types of
timers:
• Can be operated from the low-power 32 kHz crystal oscillator available on the device.
• Can be operated in Asynchronous Counter mode from an external clock source.
• Optionally, the external clock input (TxCK) can be synchronized to the internal device clock
and clock synchronization is performed after TxCK is divided by the prescaler. The
advantage of clock synchronization after division by the prescaler is explained in
11.4.3 “Synchronous Counter Mode”.
The unique features of Type A timer allows it to be used for Real-Time Clock (RTC) applications.
Figure 11-1 shows the block diagram of a Type A timer.
Figure 11-1: Type A Timer Block Diagram
Note 1: FCY is the instruction cycle clock.
2: Refer to Section 7. “Oscillator” (DS70186), for information on enabling the secondary oscillator.
TGATE
TCS
00
10
x1
TMRx
Comparator
PRx
TGATE
Set TxIF Flag
0
1
TSYNC
0
1
Sync
Equal
Reset
Prescaler
(/n)
TCKPS<1:0>
Gate
Sync
FCY
(1)
Falling Edge
Detect
Prescaler
(/n)
TCKPS<1:0>
LPOSCEN
(2)
Latch
CLK
DATA
SOSCO/
T1CK
SOSCI
Kommentare zu diesen Handbüchern