21 REMOTE CONTROLLER (REMC)284 EPSON S1C17001 TECHNICAL MANUAL0x5345: REMC Length Counter Register (REMC_LCNT)Register name Address Bit Name Function Setting Init. R/W RemarksREMC LengthCounter Register(REMC_LCNT)0x5345(8 bits)D7–0 REMLEN[7:0] Transmit/receive data length count(down counter)0x0 to 0xff 0x0 R/WD[7:0] REMLEN[7:0]: Transmit/Receive Data Length Count BitsSets the data length counter value and begins counting. (Default: 0x0)The counter stops when it reaches 0 and generates an underflow interrupt factor.For data transmissionSets the transmit data length for data transmission.When a value corresponding to the data pulse width is written, the data length counter begins countingdown from that value, generating an underflow interrupt and halting when the counter reaches 0.The subsequent transmit data is set using this interrupt.For data receivingInterrupts can be generated at the input signal rising or falling edges when receiving data. The datapulse length can be obtained from the difference by setting the data length counter to 0xff using the in-terrupt when the input changes and reading out the count value when the next interrupt occurs due to aninput change.