Fujitsu FR81S User Manual
FUJITSU SEMICONDUCTOR LIMITED
CONTENTS
FUJITSU SEMICONDUCTOR CONFIDENTIAL
5.2.2.
Activation .................................................................................................................................................. 632
5.2.3.
Operation .................................................................................................................................................. 633
6.
U
SAGE
E
XAMPLE
......................................................................................................................... 634
CHAPTER 19: BASE TIMER .............................................................................................................. 635
1.
O
VERVIEW
.................................................................................................................................. 636
2.
F
EATURES
................................................................................................................................... 637
2.1.
16/32-bit Reload Timer .................................................................................................. 638
2.2.
16-bit PWM Timer .......................................................................................................... 639
2.3.
16/32-bit PWC Timer ..................................................................................................... 640
2.4.
16-bit PPG Timer ........................................................................................................... 641
3.
C
ONFIGURATION
.......................................................................................................................... 642
4.
R
EGISTERS
................................................................................................................................. 643
4.1.
Common Registers ........................................................................................................ 645
4.1.1.
Timer Registers 0, 1 : BTxTMR (Base Timer 0/1 TiMer Register) .................................................... 646
4.1.2.
Timer Control Registers 0, 1 : BTxTMCR (Base Timer 0/1 TiMer Control Register) ...................... 647
4.1.3.
I/O Selection Register : BTSEL01 (Base Timer SElect register ch.0 and ch.1) .............................. 653
4.1.4.
Simultaneous Software Activation Register : BTSSSR (Base Timer Software Synchronous Start
Register) ................................................................................................................................................... 654
4.2.
Registers for 16/32-bit Reload Timer ............................................................................. 655
4.2.1.
Status Control Registers 0, 1 : BTxSTC (Base Timer 0/1 STatus Control) ...................................... 656
4.2.2.
Cycle Setting Registers 0, 1 : BTxPCSR (Base Timer 0/1 Pulse Counter Start Register) ............ 657
4.3.
Registers for 16-bit PWM Timer..................................................................................... 658
4.3.1.
Status Control Registers 0, 1 : BTxSTC (Base Timer 0/1 STatus Control) ...................................... 659
4.3.2.
Cycle Setting Registers 0, 1 : BTxPCSR (Base Timer 0/1 Pulse Counter Start Register) ............ 661
4.3.3.
Duty Setting Registers 0, 1 : BTxPDUT (Base Timer 0/1 Pulse DuTy register) .............................. 662
4.4.
Registers for 16-bit PPG Timer ...................................................................................... 663
4.4.1.
Status Control Registers 0, 1 : BTxSTC (Base Timer 0/1 STatus Control) ...................................... 664
4.4.2.
L Width Setting Registers 0, 1 : BTxPRLL (Base Timer 0/1 Pulse Length of "L" register) ............ 665
4.4.3.
H Width Setting Registers 0, 1 : BTxPRLH (Base Timer 0/1 Pulse Length of "H" register) .......... 666
4.5.
16/32-bit PWC Timer Register ....................................................................................... 667
4.5.1.
Status Control Registers 0, 1 : BTxSTC (Base Timer 0/1 STatus Control) ...................................... 668
4.5.2.
Data Buffer Registers 0, 1 : BTxDTBF (Base Timer 0/1 DaTa BuFfer register) .............................. 670
5.
O
PERATION
................................................................................................................................. 671
5.1.
Selection of Timer Function ........................................................................................... 672
5.2.
I/O Allocation .................................................................................................................. 673
5.3.
32-bit Mode Operation ................................................................................................... 676
5.3.1.
32-bit Mode Function .............................................................................................................................. 677
5.3.2.
32-bit Mode Setting ................................................................................................................................. 678
5.3.3.
32-bit Mode Operation ............................................................................................................................ 679
5.4.
16/32-bit Reload Timer Operation.................................................................................. 680
5.4.1.
Overview ................................................................................................................................................... 682
5.4.2.
Operation in Reload Mode ..................................................................................................................... 683
5.4.3.
Operation in One-Shot Mode ................................................................................................................. 686
5.4.4.
32-bit Timer Mode Operation ................................................................................................................. 688
5.4.5.
Interrupts ................................................................................................................................................... 690
5.4.6.
Precautions for Using this Device ......................................................................................................... 691
5.5.
16-bit PWM Timer Operation ......................................................................................... 692
5.5.1.
Overview ................................................................................................................................................... 693
5.5.2.
Operation in Reload Mode ..................................................................................................................... 694
5.5.3.
Operation in One-Shot Mode ................................................................................................................. 698
5.5.4.
Interrupt ..................................................................................................................................................... 700
5.5.5.
Precautions for Using this Device ......................................................................................................... 701
5.6.
16-bit PPG Timer Operation .......................................................................................... 702
5.6.1.
Overview ................................................................................................................................................... 703
5.6.2.
Pulse Width Calculation Method............................................................................................................ 704
5.6.3.
Operation in Reload Mode ..................................................................................................................... 705
5.6.4.
Operation in One-Shot Mode ................................................................................................................. 709
5.6.5.
Interrupts ................................................................................................................................................... 712
MB91520 Series
MN705-00010-1v0-E
(18)