19.07.2014 Views

PIC24HJ64 Datasheet

PIC24HJ64 Datasheet

PIC24HJ64 Datasheet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIC24HJ32GP302/304, <strong>PIC24HJ64</strong>GPX02/X04, AND PIC24HJ128GPX02/X04<br />

12.0 TIMER2/3 AND TIMER4/5<br />

FEATURE<br />

Note:<br />

This data sheet summarizes the features<br />

of the PIC24HJ32GP302/304,<br />

<strong>PIC24HJ64</strong>GPX02/X04,<br />

and<br />

PIC24HJ128GPX02/X04 families of<br />

devices. It is not intended to be a comprehensive<br />

reference source. To complement<br />

the information in this data sheet, refer to<br />

the PIC24H Family Reference Manual,<br />

“Section 11. Timers” (DS70244), which<br />

is available from the Microchip website<br />

(www.microchip.com).<br />

Timer2 and Timer4 are Type B timers with the following<br />

specific features:<br />

• A Type B timer can be concatenated with a Type<br />

C timer to form a 32-bit timer<br />

• The external clock input (TxCK) is always<br />

synchronized to the internal device clock and the<br />

clock synchronization is performed after the<br />

prescaler.<br />

A block diagram of the Type B timer is shown in<br />

Figure 12-1.<br />

Timer3 and Timer5 are Type C timers with the following<br />

specific features:<br />

• A Type C timer can be concatenated with a Type<br />

B timer to form a 32-bit timer<br />

• At least one Type C timer has the ability to trigger<br />

an A/D conversion.<br />

• The external clock input (TxCK) is always synchronized<br />

to the internal device clock and the<br />

clock synchronization is performed before the<br />

prescaler<br />

A block diagram of the Type C timer is shown in<br />

Figure 12-2.<br />

FIGURE 12-1: TYPE B TIMER BLOCK DIAGRAM (x = 2 or 4)<br />

Gate<br />

Sync<br />

Falling Edge<br />

Detect<br />

1<br />

Set TxIF flag<br />

0<br />

FCY<br />

Prescaler<br />

(/n)<br />

10<br />

TCKPS<br />

00<br />

TMRx<br />

Reset<br />

TGATE<br />

TxCK<br />

Prescaler<br />

(/n)<br />

Sync<br />

x1<br />

Comparator<br />

Equal<br />

TCKPS<br />

TGATE<br />

TCS<br />

PRx<br />

FIGURE 12-2: TYPE C TIMER BLOCK DIAGRAM (x = 3 or 5)<br />

Gate<br />

Sync<br />

Falling Edge<br />

Detect<br />

1<br />

Set TxIF flag<br />

0<br />

FCY<br />

Prescaler<br />

(/n)<br />

TCKPS<br />

10<br />

00<br />

TMRx<br />

Reset<br />

TGATE<br />

TxCK<br />

Sync<br />

Prescaler<br />

(/n)<br />

x1<br />

Comparator<br />

Equal<br />

ADC SOC Trigger<br />

TCKPS<br />

TGATE<br />

TCS<br />

PRx<br />

© 2008 Microchip Technology Inc. Preliminary DS70293B-page 155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!