Figure 38-11, Figure 38-12 – Rainbow Electronics AT91CAP9S250A User Manual

Page 660

Advertising
background image

660

6264A–CAP–21-May-07

AT91CAP9S500A/AT91CAP9S250A

Figure 38-11. WAVSEL = 01 Without Trigger

Figure 38-12. WAVSEL = 01 With Trigger

38.5.11.4

WAVSEL = 11

When WAVSEL = 11, the value of TC_CV is incremented from 0 to RC. Once RC is reached, the
value of TC_CV is decremented to 0, then re-incremented to RC and so on. See

Figure 38-13

.

A trigger such as an external event or a software trigger can modify TC_CV at any time. If a trig-
ger occurs while TC_CV is incrementing, TC_CV then decrements. If a trigger is received while
TC_CV is decrementing, TC_CV then increments. See

Figure 38-14

.

RC Compare can stop the counter clock (CPCSTOP = 1) and/or disable the counter clock (CPC-
DIS = 1).

Time

Counter Value

R

C

R

B

R

A

TIOB

TIOA

Counter decremented by compare match with 0xFFFF

0xFFFF

Waveform Examples

Time

Counter Value

TIOB

TIOA

Counter decremented by compare match with 0xFFFF

0xFFFF

Waveform Examples

Counter decremented

by trigger

Counter incremented

by trigger

R

C

R

B

R

A

Advertising