15 16-BIT PWM TIMER (T16A5)
15-10
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
T16A5 Ch.
x
Counter Control Registers (T16A_CTL
x
)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.0
Counter Control
Register
(T16A_CTL0)
0x301180
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–12 DMASEL
[1:0]
DMAC channel select
DMASEL[1:0] DMAC channel 0x0 R/W
0x3
0x2
0x1
0x0
Ch.4/5
Ch.2/3
Ch.4/5
Ch.2/3
D11–8 CLKS[3:0] Counter clock (division ratio)
select
CLKS[3:0]
Division ratio
0x0 R/W Source clock =
PCLK1
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
External clock
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
D7
BUSY
Register writing status
1 Busy
0 Idle
0
R
D6
–
reserved
–
–
–
0 when being read.
D5–4 T16SEL
[1:0]
Counter select
T16SEL[1:0] Counter channel 0x0 R/W
0x3
0x2
0x1
0x0
Ch.1
Ch.0
Ch.1
Ch.0
D3
CBUFEN
Compare buffer enable
1 Enable
0 Disable
0
R/W
D2
TMMD
Count mode select
1 One-shot
0 Repeat
0
R/W
D1
PRESET
Counter reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
PRUN
Counter run/stop control
1 Run
0 Stop
0
R/W
T16A5 Ch.1
Counter Control
Register
(T16A_CTL1)
0x301190
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–12 DMASEL
[1:0]
DMAC channel select
DMASEL[1:0] DMAC channel 0x1 R/W
0x3
0x2
0x1
0x0
Ch.4/5
Ch.2/3
Ch.4/5
Ch.2/3
D11–8 CLKS[3:0] Counter clock (division ratio)
select
CLKS[3:0]
Division ratio
0x0 R/W Source clock =
PCLK1
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
External clock
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
D7
BUSY
Register writing status
1 Busy
0 Idle
0
R
D6
–
reserved
–
–
–
0 when being read.
D5–4 T16SEL
[1:0]
Counter select
T16SEL[1:0] Counter channel 0x1 R/W
0x3
0x2
0x1
0x0
Ch.1
Ch.0
Ch.1
Ch.0
D3
CBUFEN
Compare buffer enable
1 Enable
0 Disable
0
R/W
D2
TMMD
Count mode select
1 One-shot
0 Repeat
0
R/W
D1
PRESET
Counter reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
PRUN
Counter run/stop control
1 Run
0 Stop
0
R/W
D[15:14] Reserved
D[13:12] DMASEL[1:0]: DMAC Channel Select Bits
Selects the DMAC channels to be used for DMA transfer when a cause of compare A/B or capture A/B
interrupt occurs.