22 REMOTE CONTROLLER (REMC)
22-6
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
To use this interrupt, set REMFIE/REMC_INT register to 1. If REMFIE is set to 0 (default), the interrupt re-
quest attributable to this cause will not be sent to the ITC.
When REMFIF is set to 1, REMC outputs an interrupt request to the ITC. An interrupt will be generated if the
ITC and C33 PE Core interrupt conditions are met.
REMFIF should be inspected in the REMC interrupt handler routine to determine whether the REMC interrupt
is attributable to input signal falling edge.
The interrupt cause should be cleared in the interrupt handler routine by resetting (writing 1 to) REMFIF.
For more information on interrupt processing, see the “Interrupt Controller (ITC)” chapter.
Control Register Details
22.7
7.1 List of REMC Registers
Table 22.
Address
Register name
Function
0x301500
REMC_CFG
REMC Configuration Register
Controls the clock and data transfer.
0x301502
REMC_CAR
REMC Carrier Length Setup Register
Sets the carrier H/L section lengths.
0x301504
REMC_LCNT REMC Length Counter Register
Sets the transmit/receive data length.
0x301506
REMC_INT
REMC Interrupt Control Register
Controls interrupts.
The REMC registers are described in detail below. These are 16-bit registers.
Note: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
REMC Configuration Register
(REMC_CFG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
REMC
Configuration
Register
(REMC_CFG)
0x301500
(16 bits)
D15–12 CGCLK[3:0] Carrier generator clock division
ratio select
(Prescaler output clock)
CGCLK[3:0]
LCCLK[3:0]
Division ratio
0x0 R/W Source clock =
PCLK2
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
D11–8 LCCLK[3:0] Length counter clock division ratio
select
(Prescaler output clock)
0x0 R/W
D7–2 –
reserved
–
–
–
0 when being read.
D1
REMMD
REMC mode select
1 Receive
0 Transmit
0
R/W
D0
REMEN
REMC enable
1 Enable
0 Disable
0
R/W
D[15:12] CGCLK[3:0]: Carrier Generator Clock Division Ratio Select Bits
Selects a carrier generation clock from the 15 prescaler (PSC Ch.1) output clocks (PCLK2 division ra-
tio).
7.2 Carrier Generation Clock (PCLK2 Division Ratio) Selection
Table 22.
CGCLK[3:0]
Division ratio
CGCLK[3:0]
Division ratio
0xf
Reserved
0x7
1/128
0xe
1/16384
0x6
1/64
0xd
1/8192
0x5
1/32
0xc
1/4096
0x4
1/16
0xb
1/2048
0x3
1/8
0xa
1/1024
0x2
1/4
0x9
1/512
0x1
1/2
0x8
1/256
0x0
1/1
(Default: 0x0)
D[11:8] LCCLK[3:0]: Length Counter Clock Division Ratio Select Bits
Selects a data length counter clock from the 15 prescaler (PSC Ch.1) output clocks (PCLK2 division ra-
tio).