
iVPeRiPheRaLMoDuLes2(tiMeRs):16-bittiMeRs(t16)
s1C33L17teChniCaLManuaL
ePson
iV-1-21
IV
T16
D4
outinVx:16-bittimerxoutputinversionbit
Selects a logic of the output signal.
1 (R/W): Inverted (active low)
0 (R/W): Normal (active high) (default)
By writing 1 to OUTINVx, an active-low signal (off level = high) is generated for the TMx output.
When OUTINVx is set to 0, an active-high signal (off level = low) is generated.
Writing 1 to this bit inverts the initial output level set using INITOLx (D8) as well.
D3
CKsLx:16-bittimerxinputClockselectbit
Selects the input clock for each timer.
1 (R/W): External clock
0 (R/W): Internal clock (default)
The internal clock (prescaler output) is selected for the input clock of each timer by writing 0 to
CKSLx. An external clock (one that is fed from the clock input pin) is selected by writing 1, and the
timer functions as an event counter. In this case, the clock input pin must be set using the corresponding
port function select register before an external clock is selected here.
D2
PtMx:16-bittimerxClockoutputControlbit
Controls the output of the TMx signal (timer output clock).
1 (R/W): On
0 (R/W): Off (default)
The TMx signal is output from the clock output pin by writing 1 to PTMx. Clock output is stopped by
writing 0 to PTMx and goes to the off level according to the set values of OUTINVx (D4) and INITOLx
(D8). In this case, the clock output pin must be set using the corresponding port function select register
before outputting the TMx signal here.
D1
PResetx:16-bittimerxResetbit
Preset the reload data in the counter.
1 (W):
Reset
0 (W):
Has no effect
0 (R):
Always 0 when read (default)
The counter of timer x is reset by writing 1 to PRESETx.
D0
PRunx:16-bittimerxRun/stopControlbit
Controls the timer's RUN/STOP state.
1 (R/W): Run
0 (R/W): Stop (default)
Each timer is made to start counting up by writing 1 to PRUNx and made to stop counting by writing 0.
In the STOP state, the counter data is retained until the timer is reset or placed in a RUN state. By
changing states from STOP to RUN, the timer can restart counting beginning at the retained count.