22 iR ReMOTe COnTROlleR (ReMC)
22-8
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
REMCH + 1
Carrier H section length = —————— [s]
cg_clk
REMCH: REMCH[5:0] setting
cg_clk: Carrier generation clock frequency
The L section length is specified by REMCL[5:0]. The carrier signal is generated from these settings as
shown in Figure 22.7.1.
Example: CGCLK[3:0] = 0x2 (PCLK/4), REMCH[5:0] = 2, REMCL[5:0] = 1
PCLK
Carrier generation clock
Count
Carrier
0
1
2
0
1
0
Carrier H section length
Carrier L section length
7.1 Carrier Signal Generation
Figure 22.
ReMC length Counter Register (ReMC_lCnT)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
ReMC length
Counter Register
(ReMC_lCnT)
0x5344
(16 bits)
D15–8 ReMlen[7:0] Transmit/receive data length count
(down counter)
0x0 to 0xff
0x0 R/W
D7–1 –
reserved
–
–
–
0 when being read.
D0
ReMDT
Transmit/receive data
1 1 (H)
0 0 (L)
0
R/W
D[15:8] ReMlen[7:0]: Transmit/Receive Data length Count Bits
Sets the data length counter value and starts counting. (Default: 0x0)
The counter stops when it reaches 0 and generates a cause of underflow interrupt.
For data transmission
Set the transmit data length for data transmission.
When a value corresponding to the data pulse width is written, the data length counter starts counting
down from that value. The counter stops counting and generates a cause of underflow interrupt when it
reaches 0. Set the subsequent transmit data using this interrupt.
For data receiving
Interrupts can be generated at the input signal rising or falling edges when receiving data. The data
pulse length can be obtained from the difference between 0xff set to the data length counter using the
interrupt when the input changes and the count value read out when the next interrupt occurs due to an
input change.
D[7:1]
Reserved
D0
ReMDT: Transmit/Receive Data Bit
Sets the transmit data for data transmission. Receive data can be read when receiving data.
1 (R/W): 1 (H)
0 (R/W): 0 (L) (default)
If REMEN/REMC_CFG register is set to 1, the REMDT setting is modulated by the carrier signal for
data transmission and output from the REMO pin. For data receiving, this bit is set to the value corre-
sponding to the signal level of the data pulse input.