18 IR REMOTE CONTROLLER (REMC3)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
18-3
(Rev. 2.00)
4. Configure the following REMC3DBCTL register bits:
- Set the REMC3DBCTL.MODEN bit to 1.
(Enable count operation clock)
- REMC3DBCTL.TRMD bit
(Select repeat mode/one-shot mode)
- Set the REMC3DBCTL.BUFEN bit to 1.
(Enable compare buffer)
- REMC3DBCTL.REMOINV bit
(Configure inverse logic output signal)
5. Configure the following REMC3CARR register bits:
- REMC3CARR.CRPER[7:0] bit
(Set carrier signal cycle)
- REMC3CARR.CRDTY[7:0] bit
(Set carrier signal duty)
6. Configure the following REMC3CCTL register bits:
- REMC3CCTL.CARREN bit
(Enable/disable carrier modulation)
- REMC3CCTL.OUTINVEN bit
(Configure output signal polarity)
7. Set the following bits when using the interrupt:
- Write 1 to the interrupt flags in the REMC3INTF register.
(Clear interrupt flags)
- Set the interrupt enable bits in the REMC3INTE register to 1. (Enable interrupts)
18.4.2 Data Transmission Procedures
Starting data transmission
The following shows a procedure to start data transmission.
1. Set the REMC3APLEN.APLEN[15:0] bits.
(Set data signal duty)
2. Set the REMC3DBLEN.DBLEN[15:0] bits.
(Set data signal cycle)
3. Set the following REMC3DBCTL register bits:
- Set the REMC3DBCTL.PRESET bit to 1.
(Reset internal counters)
- Set the REMC3DBCTL.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 REMC3APLEN.APLEN[15:0] and REMC3DBLEN.
DBLEN[15:0] bits, respectively, before a compare DB interrupt (REMC3INTF.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 (REMC3INTF.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 (REMC3INTF.DBIF bit = 1).
2. Set the REMC3DBCTL.PRUN bit to 0.
(Stop counting)
3. Set the REMC3DBCTL.MODEN bit to 0.
(Disable count operation clock)
18.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 18.4.3.1 shows an example of the output waveform.