Fujitsu MB90480 Series Hardware Manual page 274

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 12 16-BIT INPUT/OUTPUT TIMER
● Method to set compare pin OUT0-OUT5 to output
Set by port function register (OCS01.OTE[1:0], OCS23.OTE[1:0], OCS45.OTE[1:0]).
To set compare 0 pin (OUT0) to output
To set compare 1 pin (OUT1) to output
To set compare 2 pin (OUT2) to output
To set compare 3 pin (OUT3) to output
To set compare 4 pin (OUT4) to output
To set compare 5 pin (OUT5) to output
● Method to clear free-running timer
Set by clear bit (TCCS.SCLR).
For other methods, see "12.3.1 Free-running timer".
● Method to enable compare operation
Set by the compare operation enable bit (OCS01.CST[1:0], OCS23.CST[1:0], OCS45.CST[1:0]).
● Method to clear the free-run timer when the free-run timer value matches with the compare register
value
Set by timer initialization condition bit (TCCS.MODE).
To clear free-running timer 0 by match of compare 0
252
Operation
Operation
To clear free-running timer
Operation
Port function bit
Set (OCS01.OTE0) to "1"
Set (OCS01.OTE1) to "1"
Set (OCS23.OTE0) to "1"
Set (OCS23.OTE1) to "1"
Set (OCS45.OTE0) to "1"
Set (OCS45.OTE0) to "1"
Clear bit (SCLR)
Write "1"
Timer initialization condition bit (MODE)
Set (TCCS.MODE) to "1"

Advertisement

Table of Contents
loading

Table of Contents