13 PWM Timer (T16E)
S1C17602 TECHNICAL MANUAL
EPSON
13-15
T16E
0x5306: PWM Timer Control Register (T16E_CTL)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
PWM Timer
Control Register
(T16E_CTL)
0x5306
(16 bits)
D15–9
–
reserved
–
0 when being read.
D8
INITOL
Initial output level
1 High
0 Low
0
R/W
D7
–
reserved
–
0 when being read.
D6
SELFM
Fine mode select
1 Fine mode
0 Normal mode
0
R/W
D5
CBUFEN
Comparison buffer enable
1 Enable
0 Disable
0
R/W
D4
INVOUT
Inverse output
1 Invert
0 Normal
0
R/W
D3
CLKSEL
Input clock select
1 External
0 Internal
0
R/W
D2
OUTEN
Clock output enable
1 Enable
0 Disable
0
R/W
D1
T16ERST
Timer reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
T16ERUN
Timer run/stop control
1 Run
0 Stop
0
R/W
D[15:9]
Reserved
D8
INITOL: Initial Output Level Bit
Sets the timer output initial output level.
1 (R/W): TOUT3 = High, TOUTN3 = Low
0 (R/W): TOUT3 = Low, TOUTN3 = High (default)
The timer output pin switches to the initial output level set here when the clock output is switched off
by writing 0 to OUTEN (D2). Note that this level will be inverted when INVOUT (D4) is 1.
D7
Reserved
D6
SELFM: Fine Mode Select Bit
Sets the clock output to Fine mode.
1 (R/W): Fine mode
0 (R/W): Normal output (default)
When SELFM is set to 1, the clock output is set to Fine mode, and the output clock duty becomes
adjustable in input clock half-cycle steps.
When SELFM is set to 0, normal clock output is used.
D5
CBUFEN: Comparison Buffer Enable Bit
Permits and prevents writing to the compare data buffer.
1 (R/W): Permitted
0 (R/W): Prohibited (default)
When CBUFEN is set to 1, compare data is read and written via the compare data buffer. The buffer
contents are loaded into the compare data register when the counter is reset by software or compare B
signal.
When CBUFEN is set to 0, compare data is read and written directly to and from the compare data
register.
D4
INVOUT: Inverse Output Control Bit
Selects the timer output signal polarity.
1 (R/W): Inverted (TOUT3 = active Low, TOUTNx = active High)
0 (R/W): Normal (TOUT3 = active High, TOUTNx = active Low) (default)
Writing 1 to INVOUT generates a TOUTx output active Low signal (Off level = High). When INVOUT
is 0, an active High signal (Off level = Low) is generated.
Writing 1 to this bit also inverts the initial output level set by INITOL (D8). The signal level above is
inverted for TOUTNx output.