Selection Of Count Clock And Operation Mode - Fujitsu MB90480 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

25.5.3 Selection of Count Clock and Operation Mode

This section describes the selection of the count clock and the operation mode.
Count clock selection
A timer count clock can be selected from among three types of internal clocks by setting
PWCSR: bit7 (CKS1) and bit6 (CKS0).
Table 25.5-1 shows how to select the count clock.
Table 25.5-1 Count clock selection
PWCSR/bit7, bit6: CKS1, CKS0
After reset, the divide-by-4 clock of the machine clock is initially selected.
Note:
Select the count clock before timer start.
Selection of operation mode
The operation mode or measurement mode is selected by setting the PWCSR bits.
Selection of the operation mode: PWCSR: bit2, bit1, bit0 (MOD2, MOD1, MOD0 bits)
Selecting the timer mode/pulse width measurement mode and specifying the measurement
edge.
Setting the measurement mode: PWCSR: bit3 (S/C bit)
Selecting between one-shot measurement/repeated measurement or reload/one-shot
CHAPTER 25 PWC TIMER (ONLY MB90485 SERIES)
1/4 of machine clock
00
B
(0.25 μs for 16 MHz machine clock) [initial value]
1/16 of machine clock
01
B
(1.0 μs for 16 MHz machine clock)
1/32 of machine clock
10
B
(2.0 μs for 16 MHz machine clock)
Internal count clock selected
533

Advertisement

Table of Contents
loading

Table of Contents