Fujitsu MB90480 Series Hardware Manual page 308

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 13 8/16-BIT UP/DOWN COUNTER/TIMER
Setting method other than program example
● Method to select 8-bit or 16-bit operation
Set by the 16-bit mode enable setting bit (CCR0.M16E).
Bit length of up/down counter
● Type of count mode and setting method
There are four count modes.
The count mode is set by the count mode selection bits (CCR0.CMS[1:0], CCR1.CMS[1:0]).
To set to phase difference count mode (2 multiplication)
To set to phase difference count mode (4 multiplication)
● Method to select count source at timer mode operation
Set by built-in prescaler selection bit (CCR0.CLKS, CCR1.CLKS).
Count source at timer mode operation
To set clock that is frequency of φ divided by 2
To set clock that is frequency of φ divided by 8
● Method to select edge when input signals (AIN, BIN) are detected at up/down counter operation
Set by the count clock edge selection bits (CCR0.CES[1:0], CCR1.CES[1:0]).
Count detection edge
To set detection prohibition
To set falling detection
To set falling detection
To set both-edge detection
286
To set to 8-bit
To set to 16-bit
Count mode
To set to timer mode
To set to up/down count mode
16-bit mode enable setting bit (M16E)
Set to "0"
Set to "1"
Count mode selection bit
Built-in prescaler selection bit (CLKS)
Count clock edge selection bit (CES[1:0])
Set to "00
B
Set to "01
B
Set to "10
B
Set to "11
B
(CMS[1:0])
Set to "00
"
B
Set to "01
"
B
Set to "10
"
B
Set to "11
"
B
Set to "0"
Set to "1"
"
"
"
"

Advertisement

Table of Contents
loading

Table of Contents