18-5
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
The data signal is generated by comparing the values of the 16-bit counter for data signal
generation (REMC3DBCNT.DBCNT[15:0] bits) that runs with CLK_REMC3 and the setting values of the
REMC3A- PLEN.APLEN[15:0] and REMC3DBLEN.DBLEN[15:0] bits. Figure 18.4.3.3 shows an example of
the data signal generated.
Example) REMC3APLEN.APLEN[15:0] bits = 0x0bd0, REMC3DBLEN.DBLEN[15:0] bits = 0x11b8,
REMC3DBCTL.TRMD bit = 0 (repeat mode), REMC3DBCTL.REMOINV bit = 0 (signal logic non-inverted)
Figure 18.4.3.3 Example of Data Signal Generated
The data length and duty ratio of the pulse-width-modulated data signal can be calculated with the
equations shown below.
Data length =
𝐷𝐵𝐿𝐸𝑁 + 1
𝑓
𝐶𝐿𝐾_REMC3
Duty ratio =
𝐴𝑃𝐿𝐸𝑁 + 1
𝐷𝐵𝐿𝐸𝑁 + 1
(𝐸𝑞. 18.2)
Where
f
CLK_REMC3
:
CLK_REMC3 frequency [Hz]
DBLEN:
REMC3DBLEN.DBLEN[15:0] bit-setting value (1
–
65,535)
APLEN:
REMC3APLEN.APLEN[15:0] bit-setting value (0
–
65,534)
* REMC3APLEN.APLEN[15:0] bits < REMC3DBLEN.DBLEN[15:0] bits
The 16-bit counter for data signal generation is reset by the REMC3DBCTL.PRESET bit and is started/
stopped by the REMC3DBCTL.PRUN bit. When the counter value is matched with the REMC3APLEN.
APLEN[15:0] bits (compare AP), the data signal waveform is inverted. When the counter value is matched
with the REMC3DBLEN.DBLEN[15:0] bits (compare DB), the data signal waveform is inverted and the
counter is reset to 0x0000.
A different interrupt can be generated when the counter value is matched with the
REMC3DBLEN. DBLEN[15:0] and REMC3APLEN.APLEN[15:0] bits, respectively.
Repeat mode and one-shot mode
When the 16-bit counter for data signal generation is set to repeat mode (REMC3DBCTL.TRMD bit = 0),
the counter keeps operating until it is stopped using the REMC3DBCTL.PRUN bit. When the counter is
set to one-shot mode (REMC3DBCTL.TRMD bit = 1), the counter stops automatically when the counter
value is matched with the REMC3DBLEN.DBLEN[15:0] bit-setting value.
1
2
3
4
0
1
0
2
3
4
REMC3DBCTL.PRUN
16-bit counter for
data signal generation
(DBCNT[15:0])
REMC3INTF.APIF
Compare AP interrupt
REMC3INTF.DBIF
Compare DB interrupt
Data signal
(Modulated data)
A
B
A: REMC3APLEN.APLEN[15:0] bits + 1 [clock]
B: REMC3DBLEN.DBLEN[15:0] bits + 1 [clock]
0x0bd0
0x0bd1
0x0bd0
0x0bd1
0x11b8
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...