21 REMOTE CONTROLLER (REMC)
21-4
EPSON
S1C17704 TECHNICAL MANUAL
21.4 Setting Clock for Data Length Counter
The data length counter is an 8-bit down counter for setting the data length for data transmission.
During data transmission, write a value equivalent to the data pulse width in this counter. The counter starts
counting down from the set value and stops after generating a cause of underflow interrupt when the counter
reaches 0.
The next transmit data can be set using this interrupt.
This counter is also used to measure the receive data length during data reception. When data is received, an
interrupt can be generated at the rising edge and falling edge of the input signal. Use an input transition interrupt to
set the data length counter to 0xff and read the counter value when the next interrupt caused by an input transition
occurs. The input data pulse width can be obtained from the difference between 0xff and the read value.
As in the case of the carrier generator, the data length counter uses a prescaler output clock as the count clock. Use
the LCCLK[3:0] bits (D[3:0]/REMC_PSC register) provided separately with the carrier generator to select one of
the 15 prescaler output clocks.
∗
LCCLK[3:0]
: Length Counter Clock Select Bits in the REMC Prescaler Clock Select (REMC_PSC) Register
(D[3:0]/0x5341)
Table 21.4.1 Selecting a Data Length Counter Clock
LCCLK[3:0]
Prescaler output clock
LCCLK[3:0]
Prescaler output clock
0xf
Reserved
0x7
PCLK•1/128
0xe
PCLK•1/16384
0x6
PCLK•1/64
0xd
PCLK•1/8192
0x5
PCLK•1/32
0xc
PCLK•1/4096
0x4
PCLK•1/16
0xb
PCLK•1/2048
0x3
PCLK•1/8
0xa
PCLK•1/1024
0x2
PCLK•1/4
0x9
PCLK•1/512
0x1
PCLK•1/2
0x8
PCLK•1/256
0x0
PCLK•1/1
(Default: 0x0)
The data length counter can count up to 256. Select a count clock so that the data length can be counted within this
range.
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...