Continuous Data Transmission And Compare Buffers - Epson S1C17M20 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Example) REMAPLEN.APLEN[15:0] bits = 0x0bd0, REMDBLEN.DBLEN[15:0] bits = 0x11b8,
REMDBCTL.TRMD bit = 0 (repeat mode), REMDBCTL.REMOINV bit = 0 (signal logic non-inverted)
REMDBCTL.PRUN
16-bit counter for
data signal generation
0
(DBCNT[15:0])
REMINTF.APIF
Compare AP interrupt
REMINTF.DBIF
Compare DB interrupt
Data signal
(Modulated data)
The data length and duty ratio of the pulse-width-modulated data signal can be calculated with the equations
shown below.
DBLEN + 1
Data length = ——————
f
CLK_REMC3
Where
f
: CLK_REMC3 frequency [Hz]
CLK_REMC3
DBLEN:
REMDBLEN.DBLEN[15:0] bit-setting value (1–65,535)
APLEN:
REMAPLEN.APLEN[15:0] bit-setting value (0–65,534)
* REMAPLEN.APLEN[15:0] bits < REMDBLEN.DBLEN[15:0] bits
The 16-bit counter for data signal generation is reset by the REMDBCTL.PRESET bit and is started/stopped
by the REMDBCTL.PRUN bit. When the counter value is matched with the REMAPLEN.APLEN[15:0] bits
(compare AP), the data signal waveform is inverted. When the counter value is matched with the REMDBLEN.
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 REMDBLEN.DBLEN[15:0]
and REMAPLEN.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 (REMDBCTL.TRMD bit = 0), the
counter keeps operating until it is stopped using the REMDBCTL.PRUN bit. When the counter is set to one-
shot mode (REMDBCTL.TRMD bit = 1), the counter stops automatically when the counter value is matched
with the REMDBLEN.DBLEN[15:0] bit-setting value.

17.4.4 Continuous Data Transmission and Compare Buffers

Figure 17.4.4.1 shows an operation example of continuous data transmission with the compare buffer enabled.
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
0x0bd0
1 2 3 4
A
B
Figure 17.4.3.3 Example of Data Signal Generated
Seiko Epson Corporation
17 IR REMOTE CONTROLLER (REMC3)
0x0bd1
0x11b8
0
1
2 3 4
A: REMAPLEN.APLEN[15:0] bits + 1 [clock]
B: REMDBLEN.DBLEN[15:0] bits + 1 [clock]
APLEN + 1
Duty ratio = ——————
DBLEN + 1
0x0bd0
0x0bd1
(Eq. 17.2)
17-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents