W7500x Reference Manual Version1.1.0
190 / 399
Figure 23 Periodic mode
In one-shot mode, the Timer /Counter reset to the initial value and then stops when the
Timer/Counter reaches the value of limit register. Figure 24 shows one-shot mode timing
diagram.
Figure 24 one-shot mode
Counting mode
The Timer/Counter has two counting mode: Up-count and Down-count mode. In up-count
mode, the Timer/Counter counts up from 0 to the limit register value, then recycles. If
repetition mode is periodic, the Timer/Counter restarts, if repetition mode is one-shot mode,
the Timer/Counter stops. Figure 25 shows up-count mode timing diagram.
Figure 25 Up-count mode
In Down-count mode, the Timer/Counter counts from 0xFFFF_FFFF, then recycles. If repetition
mode is periodic, the Timer/Counter restarts, if repetition mode is one-shot mode, the
Timer/Counter stops. Figure 26 shows down-count mode timing diagram.
Figure 26 Down-count mode
Timer and Counter mode
PWMCLK
Timer/Counter
11
12
0
Overflow
Interrupt
10
Prescale
Counter
0
1
2
0
1
2
0
1
2
PWMCLK
Timer/Counter
11
12
13
14
15
10
Prescale
Counter
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
1
2
PWMCLK
Timer/Counter
14
13
12
11
10
15
Prescale
Counter
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
1
2