ML620Q503/Q504 User’s Manual
Contents
FEUL620Q504 contents–4
Chapter 8
8. Timers ............................................................................................................................................... 8-1
8.1
Overview
...................................................................................................................................... 8-1
8.1.1 Features ...................................................................................................................... 8-1
8.1.2 Configuration ............................................................................................................... 8-1
8.2
Description of Registers
............................................................................................................. 8-3
8.2.1 List of Registers .......................................................................................................... 8-3
8.2.2 Timer n Data Register (TMnmD : {n,m}={0,1}, {2,3}, {4,5}, {6,7}) .............................. 8-4
8.2.3 Timer n Counter Register (TMnmC : {n,m}={0,1}, {2,3}, {4,5}, {6,7}) ......................... 8-5
8.2.4 Timer n Control Register (TMnmCON : {n,m}={0,1}, {2,3}, {4,5}, {6,7}) ..................... 8-6
8.2.5 Timer Start Register 0 (TMSTR0) ............................................................................... 8-8
8.2.6 Timer Stop Register 0 (TMSTP0) ............................................................................... 8-9
8.2.7 Timer Status Register 0 (TMSTAT0) ........................................................................ 8-10
8.3
Description of operation
............................................................................................................ 8-11
8.3.1 Normal timer mode operation ................................................................................... 8-11
8.3.2 One shot timer mode operation ................................................................................ 8-12
8.3.3
16bit timer mode ........................................................................................................ 8-12
Chapter 9
9. Function Timer (FTM) ....................................................................................................................... 9-1
9.1
General Description
.................................................................................................................... 9-1
9.1.1 Features ...................................................................................................................... 9-1
9.1.2 Configuration ............................................................................................................... 9-2
9.1.3 List of Pins .................................................................................................................. 9-3
9.2
Description of Registers
............................................................................................................. 9-4
9.2.1 List of Registers .......................................................................................................... 9-4
9.2.2 FTMn Period Register (FTnP : n=0,1,2,3) .................................................................. 9-7
9.2.3 FTMn Event Register A (FTnEA : n=0,1,2,3) ............................................................. 9-8
9.2.4 FTMn Event Register B (FTnEB : n=0,1,2,3) ............................................................. 9-9
9.2.5 FTMn DeadTime Register (FTnDT : n=0,1,2,3) ....................................................... 9-10
9.2.6 FTMn Counter Register (FTnC : n=0,1,2,3) ............................................................. 9-11
9.2.7 FTMn Control Register 0 (FTnCON0 : n=0,1,2,3) .................................................... 9-12
9.2.8 FTMn Control Register 1 (FTnCON1 : n=0,1,2,3) .................................................... 9-13
9.2.9 FTMn Mode Register (FTnMOD : n=0,1,2,3) ........................................................... 9-15
9.2.10 FTMn Clock Register (FTnCLK : n=0,1,2,3) ........................................................... 9-17
9.2.11 FTMn Trigger Register 0 (FTnTRG0 : n=0,1,2,3) ................................................... 9-19
9.2.12 FTMn Trigger Register 1 (FTnTRG1 : n=0,1,2,3) ................................................... 9-21
9.2.13 FTMn Interrupt Enable Register (FTnINTE: n = 0,1,2,3) ........................................ 9-22
9.2.14 FTMn Interrupt Status Register (FTnINTS : n=0,1,2,3) .......................................... 9-24
9.2.15 FTMn Interrupt Clear Register (FTnINTC : n=0,1,2,3) ........................................... 9-26
9.2.16 FTM Output nm Select Register (FTOnmSL : n = 0,2,4,6,8,A,C,E, m=n+1) ......... 9-27
9.3
Description of Operation
........................................................................................................... 9-29
9.3.1 Common Sequence .................................................................................................. 9-29
9.3.2 Counter Operation .................................................................................................... 9-31
9.3.2.1 Starting/Stopping Counting by Software
.......................................................... 9-31
9.3.2.2 Starting/Stopping Counting by TriggerEvent
................................................... 9-31
9.3.3 TIMER Mode Operation ............................................................................................ 9-32
9.3.3.1 Output Waveform in TIMER Mode
................................................................... 9-32
9.3.4 PWM1 Mode Operation ............................................................................................ 9-35
9.3.4.1 Output Waveform in PWM1 Mode
................................................................... 9-35
9.3.5 PWM2 Mode Operation ............................................................................................ 9-37
9.3.5.1 OutputWaveform in PWM2 Mode
..................................................................... 9-37
9.3.6 CAPTURE Mode Operation ...................................................................................... 9-40
9.3.6.1 Measurement Example in the CAPTUREMode
.............................................. 9-40
Summary of Contents for LAPIS SEMICONDUCTOR ML620Q503
Page 2: ...ML620Q503 Q504 User s Manual Issue Date Apr 16 2015 FEUL620Q504 01...
Page 18: ...Chapter 1 Overview...
Page 32: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 50: ...Chapter 4 Power Management...
Page 70: ...Chapter 5 Interrupts...
Page 134: ...Chapter 6 Clock Generation Circuit...
Page 161: ...Chapter 7 Time Base Counter...
Page 170: ...Chapter 8 Timers...
Page 183: ...Chapter 9 Function Timer FTM...
Page 231: ...Chapter 10 Watchdog Timer...
Page 239: ...Chapter 11 Synchronous Serial Port SSIO...
Page 251: ...Chapter 12 Synchronous Serial Port with FIFO SSIOF...
Page 283: ...Chapter 13 UART...
Page 303: ...Chapter 14 UART with FIFO UARTF...
Page 327: ...Chapter 15 I2 C Bus Interface...
Page 344: ...Chapter 16 Port XT...
Page 350: ...Chapter 17 Port 0...
Page 361: ...Chapter 18 Port 1...
Page 368: ...Chapter 19 Port2...
Page 379: ...Chapter 20 Port 3...
Page 395: ...Chapter 21 Port 4...
Page 410: ...Chapter 22 Port 5...
Page 426: ...Chapter 23 Melody Driver...
Page 439: ...Chapter 24 RC Oscillation type A D Converter RC ADC...
Page 462: ...Chapter 25 Successive Approximation Type A D Converter SA ADC...
Page 479: ...Chapter 26 Analog Comparator...
Page 489: ...Chapter 27 Flash Memory Control...
Page 505: ...Chapter 28 Voltage Level Supervisor VLS...
Page 517: ...Chapter 29 LLD circuit...
Page 519: ...Chapter 30 On Chip Debug Function...
Page 522: ...Appendixes...
Page 552: ...Revision History...