21 REMOTE CONTROLLER (REMC)
S1C17704 TECHNICAL MANUAL
EPSON
21-3
21.3 Carrier Generator
The REMC module contains a carrier generator that generates a transmit carrier signal according to the clock, H
carrier length, and L carrier length set with software.
A prescaler output clock is used to generate the carrier signal. Use the CGCLK[3:0] bits (D[7:4]/REMC_PSC
register) to select one from the 15 clocks, PCLK divided by 1 to PCLK divided by 16K, generated by the prescaler.
∗
CGCLK[3:0]
: Carrier Generator Clock Select Bits in the REMC Prescaler Clock Select (REMC_PSC) Register
(D[7:4]/0x5341)
Table 21.3.1 Selecting a Clock for Carrier Generator
CGCLK[3:0]
Prescaler output clock
CGCLK[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)
For controlling the prescaler, see Chapter 9, “Prescaler (PSC).”
Note
: Before the REMC module can be used, the prescaler must be run.
The lengths of H period and L period of the carrier signal can be set using REMCH[5:0] (D[5:0]/REMC_CARH
register) and REMCL[5:0] (D[5:0]/REMC_CARL register). The H/L period lengths should be set as the number of
clock (selected as above) 1.
∗
REMCH[5:0]
: H Carrier Length Setup Bits in the REMC H Carrier Length Setup (REMC_CARH) Register
(D[5:0]/0x5342)
∗
REMCL[5:0]
: L Carrier Length Setup Bits in the REMC L Carrier Length Setup (REMC_CARL) Register
(D[5:0]/0x5343)
The H and L carrier lengths are calculated by the expressions below.
REMCH + 1
H carrier length = —————— [s]
clk_in
REMCL
+
1
L carrier length = —————— [s]
clk_in
REMCH: H carrier length register data
REMCL: L carrier length register data
clk_in:
Prescaler output clock frequency
The carrier signal is generated according to these settings as shown in Figure 21.3.1.
Example: CGCLK[3:0] = 0x2 (PCLK•1/4), REMCH[5:0] = 2, REMCL[5:0] = 1
PCLK
PSC output clock
Count
Carrier
0
1
2
0
1
0
H carrier length
L carrier length
Figure 21.3.1 Carrier Signal Generation
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 ...