03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.3.2.15 16-Bit Pulse Accumulator Control Register (PACTL)<br />

Module Base + 0x0020<br />

R 0<br />

W<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

Timer Module (TIM16B8CV3)<br />

1 This register is available only when channel 7 exists and is reserved if that channel does not exist. Writes to a reserved register<br />

have no functional effect. Reads from a reserved register return zeroes.<br />

Read: Any time<br />

Write: Any time<br />

7 6 5 4 3 2 1 0<br />

PAEN PAMOD PEDGE CLK1 CLK0 PAOVI PAI<br />

Reset 0 0 0 0 0 0 0 0<br />

Unimplemented or Reserved<br />

Figure 12-24. 16-Bit Pulse Accumulator Control Register (PACTL)<br />

When PAEN is set, the Pulse Accumulator counter is enabled.The Pulse Accumulator counter shares the<br />

input pin with IOC7.<br />

Table 12-18. PACTL Field Descriptions<br />

Field Description<br />

6<br />

PAEN<br />

5<br />

PAMOD<br />

4<br />

PEDGE<br />

3:2<br />

CLK[1:0]<br />

1<br />

PAOVI<br />

0<br />

PAI<br />

Pulse Accumulator System Enable — PAEN is independent from TEN. With timer disabled, the pulse<br />

accumulator can function unless pulse accumulator is disabled.<br />

0 16-Bit Pulse Accumulator system disabled.<br />

1 Pulse Accumulator system enabled.<br />

Pulse Accumulator Mode — This bit is active only when the Pulse Accumulator is enabled (PAEN = 1). See<br />

Table 12-19.<br />

0 Event counter mode.<br />

1 Gated time accumulation mode.<br />

Pulse Accumulator Edge Control — This bit is active only when the Pulse Accumulator is enabled (PAEN = 1).<br />

For PAMOD bit = 0 (event counter mode). See Table 12-19.<br />

0 Falling edges on IOC7 pin cause the count to be increased.<br />

1 Rising edges on IOC7 pin cause the count to be increased.<br />

For PAMOD bit = 1 (gated time accumulation mode).<br />

0 IOC7 input pin high enables M (bus clock) divided by 64 clock to Pulse Accumulator and the trailing falling<br />

edge on IOC7 sets the PAIF flag.<br />

1 IOC7 input pin low enables M (bus clock) divided by 64 clock to Pulse Accumulator and the trailing rising edge<br />

on IOC7 sets the PAIF flag.<br />

Clock Select Bits — Refer to Table 12-20.<br />

Pulse Accumulator Overflow Interrupt Enable<br />

0 Interrupt inhibited.<br />

1 Interrupt requested if PAOVF is set.<br />

Pulse Accumulator Input Interrupt Enable<br />

0 Interrupt inhibited.<br />

1 Interrupt requested if PAIF is set.<br />

<strong>Freescale</strong> <strong>Semiconductor</strong> 387

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

Saved successfully!

Ooh no, something went wrong!