Selection Of Count Clock And Operation Mode - Fujitsu F2MC-16LX Hardware Manual

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 14 PWC TIMER

14.3.3 Selection of Count Clock and Operation Mode

This section describes the selection of the count clock and the operation mode.
I Count clock selection
A timer count clock can be selected form among three types of internal clocks by setting
PWCSR: bit 7 (CKS1) and bit 6 (CKS0).
Table 14.3-1 "Count clock selection" shows how to select the count clock.
Table 14.3-1 Count clock selection
PWCSR/bits 7, 6: CKS1, 0
After reset, the divide-by-4 clock of the machine clock is initially selected.
Note:
Select the count clock before timer start.
I Selection of operation mode
The operation mode or measurement mode is selected by setting the PWCSR bits.
Selection of the operation mode: PWCSR: bits 2, 1, 0 (MOD2, MOD1, MOD0 bits)
Selecting the timer mode/pulse width measurement mode and specifying the measurement
edge.
Setting the measurement mode: PWCSR: bit 3 (S/C bit)
Selecting between one-shot measurement/repeated measurement or reload/one-shot
Table 14.3-2 "Settings of operation mode/measurement mode" shows the settings for selection
of the operation mode/measurement mode.
288
1/4 of machine clock
00
(0.25 µs for 16 MHz machine clock) [initial value]
B
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

Advertisement

Table of Contents
loading

Table of Contents