Epson S1C17624 Technical Manual page 159

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

13 16-BiT PWM TiMeRS (T16a2)
T16a Comparator/Capture Ch.x Control Registers (T16a_CCCTlx)
Register name address
Bit
T16a
0x5404
D15–14 CaPBTRG
Comparator/
0x5424
Capture Ch.x
(16 bits)
Control Register
(T16a_CCCTlx)
D13–12 TOuTBMD
D11–10 –
D9
D8
D7–6 CaPaTRG
D5–4 TOuTaMD
D3–2 –
D1
D0
D[15:14] CaPBTRG[1:0]: Capture B Trigger Select Bits
Selects the trigger edge(s) of the external signal (CAPBx) at which the counter value is captured in the
capture B register.
CAPBTRG[1:0] are control bits for capture mode and are ineffective in comparator mode.
D[13:12] TOuTBMD[1:0]: TOuT B Mode Select Bits
Configures how the TOUT B signal waveform (TOUTBx output) is changed by the compare A and
compare B signals. These bits are also used to turn the TOUT B output On and Off.
TOUTBMD[1:0] are control bits for comparator mode and are ineffective in capture mode.
D[11:10] Reserved
D9
TOuTBinV: TOuT B invert Bit
Selects the TOUT B signal (TOUTBx output) polarity.
1 (R/W): Inverted (active Low)
0 (R/W): Normal (active High) (default)
Writing 1 to TOUTBINV generates an active Low signal (Off level = High) for the TOUT B output.
When TOUTBINV is 0, an active High signal (Off level = Low) is generated.
TOUTBINV is a control bit for comparator mode and is ineffective in capture mode.
13-16
name
Function
Capture B trigger select
[1:0]
TOUT B mode select
[1:0]
reserved
TOuTBinV TOUT B invert
CCBMD
T16A_CCB register mode select
Capture A trigger select
[1:0]
TOUT A mode select
[1:0]
reserved
TOuTainV TOUT A invert
CCaMD
T16A_CCA register mode select
Table 13.
8.5 Capture B Trigger Edge Selection
CaPBTRG[1:0]
0x3
0x2
0x1
0x0
Table 13.
8.6 TOUT B Generation Mode
TOuTBMD[1:0]
When compare a occurs When compare B occurs
0x3
No change
0x2
0x1
0x0
Seiko epson Corporation
Setting
CAPBTRG[1:0] Trigger edge
0x3
0x2
0x1
0x0
TOUTBMD[1:0]
cmp B: ↑ or ↓
0x3
cmp A: ↑ or ↓
0x2
cmp A: ↑, B: ↓
0x1
0x0
1 Invert
0 Normal
1 Capture
0 Comparator
CAPATRG[1:0] Trigger edge
0x3
0x2
0x1
0x0
TOUTAMD[1:0]
cmp B: ↑ or ↓
0x3
cmp A: ↑ or ↓
0x2
cmp A: ↑, B: ↓
0x1
0x0
1 Invert
0 Normal
1 Capture
0 Comparator
Trigger edge
Falling edge and rising edge
Falling edge
Rising edge
Not triggered
Toggle
Toggle
No change
Rise
Fall
Disable output
S1C17624/604/622/602/621 TeChniCal Manual
init. R/W
Remarks
0x0 R/W
↑ and ↓
None
Mode
0x0 R/W
Off
0 when being read.
0
R/W
0
R/W
0x0 R/W
↑ and ↓
None
Mode
0x0 R/W
Off
0 when being read.
0
R/W
0
R/W
(Default: 0x0)
(Default: 0x0)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents