17 IR REMOTE CONTROLLER (REMC3)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
17-3
TECHNICAL MANUAL (Rev. 1.0)
4. Configure the following REMDBCTL register bits:
- Set the REMDBCTL.MODEN bit to 1.
(Enable count operation clock)
- REMDBCTL.TRMD bit
(Select repeat mode/one-shot mode)
- Set the REMDBCTL.BUFEN bit to 1.
(Enable compare buffer)
- REMDBCTL.REMOINV bit
(Configure inverse logic output signal)
5. Configure the following REMCARR register bits:
- REMCARR.CRPER[7:0] bit
(Set carrier signal cycle)
- REMCARR.CRDTY[7:0] bit
(Set carrier signal duty)
6. Configure the following REMCCTL register bits:
- REMCCTL.CARREN bit
(Enable/disable carrier modulation)
- REMCCTL.OUTINVEN bit
(Configure output signal polarity)
7. Set the following bits when using the interrupt:
- Write 1 to the interrupt flags in the REMINTF register.
(Clear interrupt flags)
- Set the interrupt enable bits in the REMINTE register to 1. (Enable interrupts)
17.4.2 Data Transmission Procedures
Starting data transmission
The following shows a procedure to start data transmission.
1. Set the REMAPLEN.APLEN[15:0] bits.
(Set data signal duty)
2. Set the REMDBLEN.DBLEN[15:0] bits.
(Set data signal cycle)
3. Set the following REMDBCTL register bits:
- Set the REMDBCTL.PRESET bit to 1.
(Reset internal counters)
- Set the REMDBCTL.PRUN bit to 1.
(Start counting)
Continuous data transmission control
The following shows a procedure to send data continuously after starting data transmission (after Step 3 above).
1. Set the duty and cycle for the subsequent data to the REMAPLEN.APLEN[15:0] and REMDBLEN.
DBLEN[15:0] bits, respectively, before a compare DB interrupt (REMINTF.DBIF bit = 1) occurs. (It is not
necessary to rewrite settings when sending the same data with the current settings.)
2. Wait for a compare DB interrupt (REMINTF.DBIF bit = 1).
3. Repeat Steps 1 and 2 until the end of data.
Terminating data transmission
The following shows a procedure to terminate data transmission.
1. Wait for a compare DB interrupt (REMINTF.DBIF bit = 1).
2. Set the REMDBCTL.PRUN bit to 0.
(Stop counting)
3. Set the REMDBCTL.MODEN bit to 0.
(Disable count operation clock)
17.4.3 REMO Output Waveform
Carrier refers to infrared frequency in infrared remote control communication. Note, however, that carrier in this
manual refers to sub-carrier used in infrared remote control communication, as REMC3 does not control infrared
rays directly.
The REMC3 outputs the logical AND between the carrier signal output from the carrier generator and the data sig-
nal output from the data signal generator. Figure 17.4.3.1 shows an example of the output waveform.