ML610Q111/ML610Q112 User’s Manual
Chapter 8 Timers
FEUL610Q111
8-28
8.2.24 Timer E Control Register 1 (TMECON1)
Address: 0F363H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
TMECON1
TESTAT
TETGEN
TERUN
R/W
R
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
TMECON1 is a special function register (SFR) to control the Timer E.
[Description of Bits]
•
TERUN
(bit 0)
The TERUN bit is used to control count stop/start of Timer E.
TERUN
Description
0
Stops counting.
1
Starts counting.
•
TETGEN
(bit 1)
The TETGEN bit is enable flag of timer E count stop/start by the external trigger input.
TETGEN
Description
0
Disables the count stop/start by the external trigger. (Initial value)
1
Enables the count stop/start by the external trigger.
•
TESTAT
(bit 7)
The TESTAT bit indicates “counting stopped” or ”counting in progress” of Timer E.
TESTAT
Description
0
Counting stopped.
1
Counting in progress.
Note
:
For the continuous mode, when the timer count is stopped by the external trigger input and the interrupt is generated,
TERUN bit shows “0” as is controlled to stop counting. When the timer count register coincides with the timer data
register and the interrupt is generated, TERUN bit shows “1” as is controlled to start (keep) counting. Therefore, reading
TERUN bit can be used for recognizing which interrupt occurred.
For one shot mode, when the timer count is stopped by the external trigger input and the interrupt is generated, TERUN
bit shows “0” as is controlled to stop counting. When the timer count register coincides with the timer data register and
the interrupt is generated, TERUN bit also shows “0” as is controlled to stop counting. To recognizing which interrupt
occurred, read timer count register and timer data register and check if the timer count register value is consistent timer
data register value.
When the timer count is stopped by the external trigger and TERUN bit shows “0”, make sure to start the next operation
after TESTAT bit shows “0” as the timer count is halted.
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...