Fujitsu FR81S 用户手册
FUJITSU SEMICONDUCTOR LIMITED
CONTENTS
FUJITSU SEMICONDUCTOR CONFIDENTIAL
4.1.2.
Timer Control Register (Lower Bit) : TCCSL ....................................................................................... 809
4.1.3.
Compare Clear Register : CPCLR ........................................................................................................ 811
4.1.4.
Timer Data Register : TCDT ................................................................................................................... 812
4.2.
Registers of the free-run timer selector ......................................................................... 813
4.2.1.
Free-run timer selection register : FRS ................................................................................................ 814
5.
O
PERATION
................................................................................................................................. 820
5.1.
Operation of the 32-bit free-run timer ............................................................................ 821
5.1.1.
Count Operation ...................................................................................................................................... 822
5.1.2.
Counting Up ............................................................................................................................................. 823
5.1.3.
Timer Clear ............................................................................................................................................... 824
5.1.4.
Each Clear Operations of the Free-run Timer ..................................................................................... 825
5.1.5.
Timer Interrupt .......................................................................................................................................... 826
5.2.
Operation of the 32-bit free-run timer selector ............................................................... 827
6.
S
ETTING
...................................................................................................................................... 828
7.
Q&A ........................................................................................................................................... 829
7.1.
How to Select Internal Clock Dividers? ......................................................................... 830
7.2.
How to Select the External Clock? ................................................................................ 831
7.3.
How to Enable/Disable the Count Operation of the Free-run Timer? ............................ 832
7.4.
How to Clear the Free-run Timer? ................................................................................. 833
7.5.
About Interrupt Related Registers? ............................................................................... 834
7.6.
How to Enable Compare Clear Interrupt? ..................................................................... 835
7.7.
How to Stop the Free-run Timer Operation? .................................................................. 836
8.
S
AMPLE
P
ROGRAM
...................................................................................................................... 837
9.
N
OTES
........................................................................................................................................ 838
CHAPTER 22: 32-BIT OUTPUT COMPARE ...................................................................................... 839
1.
O
VERVIEW
.................................................................................................................................. 840
2.
F
EATURES
................................................................................................................................... 841
3.
C
ONFIGURATION
D
IAGRAM
........................................................................................................... 843
4.
R
EGISTERS
................................................................................................................................. 844
4.1.
Output Control Register (Upper Bit) : OCSH ................................................................. 845
4.2.
Output Control Register (Lower Bit) : OCSL .................................................................. 847
4.3.
Compare Register : OCCP ............................................................................................ 849
4.4.
Output Level Control Register : OCLS .......................................................................... 850
5.
O
PERATION
................................................................................................................................. 851
5.1.
Output Compare Output (Independent Invert) CMOD = "0" .......................................... 852
5.2.
Output Compare Output (Coordinated Invert) CMOD = "1" .......................................... 853
5.3.
Output Compare Operation Timing ................................................................................ 854
5.3.1.
Compare Register Write ......................................................................................................................... 855
5.3.2.
Compare match, Interrupt ...................................................................................................................... 856
5.3.3.
Pin Output ................................................................................................................................................. 857
6.
S
ETTING
...................................................................................................................................... 858
7.
Q&A ........................................................................................................................................... 859
7.1.
How Can I Set the Compare Value? .............................................................................. 860
7.2.
How Can I Set the Compare Mode? (Example with OCU7) .......................................... 861
7.3.
How Can I Enable/Disable the Compare Operation? (Example with OCU6,7) ............. 862
7.4.
How Can I Set the Compare Pin Output Initial Level? (Example with OCU6,7) ........... 863
7.5.
How Can I Set the Compare Pin OCU6-OCU7 for Output? .......................................... 864
7.6.
How Can I Clear the Free-run Timer? ........................................................................... 865
7.7.
How Can I Enable the Compare Operation? (Example with OCU6,7) .......................... 866
7.8.
Interrupt Related Register? ............................................................................................ 867
7.9.
Interrupt Type? ............................................................................................................... 868
7.10.
How Can I Enable the Interrupt? ................................................................................... 869
7.11.
Calculation Method for the Compare Value? ................................................................. 870
7.11.1.
Toggle Output Pulse ................................................................................................................................ 871
7.11.2.
PWM Output ............................................................................................................................................. 872
7.12.
To Set the Operation Mode? .......................................................................................... 873
8.
S
AMPLE
P
ROGRAM
...................................................................................................................... 874
9.
N
OTES
........................................................................................................................................ 876
MB91520 Series
MN705-00010-1v0-E
(20)