22 REMOTE CONTROLLER (REMC)
22-8
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
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 (PCLK2/4), REMCH[5:0] = 2, REMCL[5:0] = 1
PCLK2
PSC Ch.1 output 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)
0x301504
(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 REMC_O pin. For data receiving, this bit is set to the value cor-
responding to the signal level of the data pulse input.
REMC Interrupt Control Register (REMC_INT)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
REMC Interrupt
Control Register
(REMC_INT)
0x301506
(16 bits)
D15–11 –
reserved
–
–
–
0 when being read.
D10
REMFIF
Falling edge interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D9
REMRIF
Rising edge interrupt flag
0
R/W
D8
REMUIF
Underflow interrupt flag
0
R/W
D7–3 –
reserved
–
–
–
0 when being read.
D2
REMFIE
Falling edge interrupt enable
1 Enable
0 Disable
0
R/W
D1
REMRIE
Rising edge interrupt enable
1 Enable
0 Disable
0
R/W
D0
REMUIE
Underflow interrupt enable
1 Enable
0 Disable
0
R/W