Epson S1C17624 Technical Manual page 241

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

22 iR ReMOTe COnTROlleR (ReMC)
Carrier H section length = —————— [s]
REMCH: REMCH[5:0] setting
cg_clk:
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
Carrier generation clock
ReMC length Counter Register (ReMC_lCnT)
Register name address
Bit
ReMC length
0x5344
D15–8 ReMlen[7:0] Transmit/receive data length count
Counter Register
(16 bits)
(ReMC_lCnT)
D7–1 –
D0
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.
22-8
REMCH + 1
cg_clk
Carrier generation clock frequency
PCLK
0
Count
Carrier
Carrier H section length
Figure 22.
7.1 Carrier Signal Generation
name
Function
(down counter)
reserved
ReMDT
Transmit/receive data
Seiko epson Corporation
1
2
0
Carrier L section length
Setting
0x0 to 0xff
1 1 (H)
0 0 (L)
S1C17624/604/622/602/621 TeChniCal Manual
1
0
init. R/W
Remarks
0x0 R/W
0 when being read.
0
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents