Fujitsu MB90480 Series Hardware Manual page 290

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 13 8/16-BIT UP/DOWN COUNTER/TIMER
[bit12] CLKS (built-in prescaler selection)
This bit is used to select the frequency of built-in prescaler when the timer mode is selected.
This is only valid in the timer mode, where only decrementing is permitted.
CLKS
0
1
If this bit is rewritten after its start, the count value is not assured.
[bit11, bit10] CMS1, CMS0 (count mode selection)
These bits are used to select the count mode.
CMS1
0
0
1
1
If this bit is rewritten after its start, the count value is not assured.
[bit9, bit8] CES1, CES0 (count clock edge selection)
These bits are used in the up/down count mode to select a detection edge for external pins
AIN and BIN.
This setting is invalid in modes other than up/down count.
CES1
0
0
1
1
If this bit is rewritten after its start, the count value is not assured.
268
2 machine cycles (initial value)
8 machine cycles
CMS0
0
Timer mode [decremented] (initial value)
1
Up/down count mode
0
Phase difference count mode: frequency multiplied by 2
1
Phase difference count mode: frequency multiplied by 4
CES0
0
Edge detect prohibit (initial value)
1
Falling edge detect
0
Rising edge detect
1
Both rising and falling edges detected
Selection internal clock
Count mode
Selected edge

Advertisement

Table of Contents
loading

Table of Contents