
iVPeRiPheRaLMoDuLes2(tiMeRs):16-bittiMeRs(t16)
iV-1-10
ePson
s1C33L17teChniCaLManuaL
iV.1.6ControllingClockoutput
The timers can generate a TMx signal using the comparison match signals from the counter.
Figure IV.1.6.1 shows the 16-bit timer clock output circuit.
Logic
INITOLx
CompareA
CompareB
Clock
PTMx
TMx
OUTINVx
D Q
Q
MUX
FigureIV.1.6.116-bitTimerClockOutputCircuit
settingtheinitialoutputlevel(advancedmode)
The default output level while the clock output is turned off is 0 (low level). This level can be changed to 1 (high
level) using INITOLx (D8/0x300786 + 8x). However, this function is available only in advanced mode.
initoLx:16-bitTimerxInitialOutputLevelSelectBitinthe16-bitTimerxControlRegister(D8/0x300786+8x)
When INITOLx (D8/0x300786 + 8x) is 0 (default), the initial output level is low. When INITOLx (D8/0x300786
+ 8x) is set to 1, the initial output level is set to high.
The timer output goes to the initial output level when the timer is reset by writing 1 to PRESETx (D1/0x300786
+ 8x) as well as when the timer output is turned off.
settingthesignalactivelevel
By default, an active high signal (normal low) is generated. This logic can be inverted using OUTINVx (D4/
0x300786 + 8x). When 1 is written to OUTINVx, the timer generates an active low (normal high) signal.
outinVx:16-bitTimerxClockOutputInversionBitinthe16-bitTimerxControlRegister(D4/0x300786+8x)
Note that the initial output level set by INITOLx (D8/0x300786 + 8x) is inverted when OUTINVx (D4/0x300786
+ 8x) is set to 1.
See Figure IV.1.6.2 for the waveforms.
settingtheoutputport
The TMx signal generated here can be output from the clock output pins (see Table IV.1.2.1), enabling a
programmable clock to be supplied to external devices.
After a cold start, the output pins are set for the I/O ports and set in input mode. The pins go into high-
impedance status.
When the pin function is switched to the timer output, the pin outputs the level according to the set values of
INITOLx (D8/0x300786 + 8x) and OUTINVx (D4/0x300786 + 8x). The output pin holds this level until the
output level changes due to the counter value after the timer output is enabled.
TableIV.1.6.1InitialOutputLevel
initoLx
1
0
outinVx
1
0
1
0
initialoutputlevel
Low
High
Low