Epson S1C17001 Technical Manual page 283

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

21 REMOTE CONTROLLER (REMC)
Given below are the values to which the data length counter is set:
Setting = Data pulse length (seconds) x prescaler output clock frequency (Hz)
The data length counter begins counting down from the value written using the prescaler output clock selected.
An underflow interrupt factor occurs when the data length counter value reaches 0. If interrupts are permitted,
an REMC interrupt request is output to the interrupt controller (ITC). The data length counter stops counting
when it reaches 0.
(5) Interrupt processing
To transmit the subsequent data, set the subsequent data (step 3) and set the data pulse length (step 4) as part of
the interrupt processing routine generated by the data length counter underflow.
(6) Data transmission end
To end data transmission, set REMEN to 0 after the final data transmission is complete (after underflow inter-
rupt has occurred).
Data receipt control
PCLK
PSC output clock
(data length counter clock)
REMI input
REMDT
(sample waveform)
REMRIF
REMFIF
Interrupt signal
REMLEN[7:0]
(1) Data receipt mode setting
Set REMC to receipt mode by writing 1 to REMMD (D1/REMC_CFG register).
(2) Permit data receipt
Permit REMC operation by setting REMEN (D0/REMC_CFG register) to 1. This initiates REMC transmission
(input edge detection operation).
.
REMC detects input changes (signal rising or falling edges) by sampling the input signal from the REMI pin
using the prescaler output clock selected for carrier generation. If a signal edge is detected, a rising or falling
edge interrupt factor is generated. An REMC interrupt request is output to the ITC if interrupts are permitted.
Rising edge and falling edge interrupts can be individually permitted or blocked.
Note that if the signal level after the input has changed is not detected for at least two continuous sampling
clock cycles, the interrupt factor is interpreted as noise, and no rising or falling edge interrupt is generated.
274
x+2
x+1
x
Figure 21.5.3: Data receipt
EPSON
1 written
0xff
0xfe
0xfd
0xff written
S1C17001 TECHNICAL MANUAL
1 written
0xff
0xff written

Advertisement

Table of Contents
loading

Table of Contents