Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Technical Manual page 367

Cmos 32-bit single chip microcomputer
Table of Contents

Advertisement

The interrupt priority register sets the interrupt priority level of each interrupt source in a range between 0 and
7. An interrupt request to the CPU is accepted only when no other interrupt request of a higher priority has
been generated.
In addition, only when the PSR's IE bit = "1" (interrupts enabled) and the set value of the IL is smaller than
the input interrupt level set by the interrupt priority register, will the input interrupt request actually be
accepted by the CPU.
For details on these interrupt control registers, as well as the device operation when an interrupt has occurred,
refer to "ITC (Interrupt Controller)".
• Ch.2 and Ch.3
Ch.2 and Ch.3 do not have dedicated interrupt signals. Either a port input interrupt or 16-bit timer interrupt is
selected, and interrupt handling is performed accordingly.
The correspondence between port input interrupt factors and 16-bit timer interrupt factors is shown in
Table.8.10.
Serial I/F Ch.2, Ch.3/
T8-Ch.4, Ch.5 interrupt factor
T8 Ch.5 UF
T8 Ch.4 UF
SIO Ch.3 TXD Emp.
SIO Ch.3 RXD Full
SIO Ch.3 RXD Err.
SIO Ch.2 TXD Emp.
SIO Ch.2 RXD Full
SIO Ch.2 RXD Err.
Switching between the above interrupt factors is performed by means of the interrupt factor FP function
switching register (0x402C5) and the interrupt factor TM16 function switching register (0x402CB).
For the setting of the interrupt controller in the CPU-core, the setting for the selected interrupt factor is used.
Refer to "ITC (Interrupt Controller)" in the Core Block section for details of interrupts, and "Input/Output
Ports" and "16-Bit Programmable Timers" in the Peripheral Block section for details of port input interrupt
factor and 16-bit timer interrupt factor settings.
Intelligent DMA
• Ch.0 and Ch.1
The receive-buffer full interrupt and transmit-buffer empty interrupt factors can be used to invoke intelligent
DMA (IDMA). This enables successive transmit/receive operations between memory and the
transmit/receive-buffer to be performed by means of a DAM transfer.
The following shows the IDMA channel numbers set for each interrupt factor:
Ch.0 receive-buffer full interrupt:
Ch.0 transmit-buffer empty interrupt: 0x18
Ch.1 receive-buffer full interrupt:
Ch.1 transmit-buffer empty interrupt: 0x1A
The IDMA request and enable bits shown in Table 8.11 must be set to "1" for IDMA to be invoked. Transfer
conditions, etc. on the IDMA side must also be set in advance.
Channel
Ch.0
Receive-buffer full
Transmit-buffer empty
Ch.1
Receive-buffer full
Transmit-buffer empty
S1C33L03 FUNCTION PART
Table 8.10 Correspondence between Interrupt Factors
Port input interrupt
IDMA Ch.
0x17
0x19
Table 8.11 Control Bits for IDMA Transfer
Interrupt factor
IDMA request bit
RSRX0(D6/0x40292)
RSTX0(D7/0x40292)
RSRX1(D0/0x40293)
RSTX1(D1/0x40293)
EPSON
III PERIPHERAL BLOCK: SERIAL INTERFACE
16-bit timer interrupt
factor
factor
FPT7
Timer 2 compare A
FPT5
Timer 2 compare B
FPT6
Timer 4 compare A
FPT4
Timer 4 compare B
FPT2
Timer 3 compare A
FPT3
Timer 5 compare A
FPT1
Timer 5 compare B
FPT0
Timer 3 compare B
IDMA enable bit
DESRX0(D6/0x40296)
DESTX0(D7/0x40296)
DESRX1(D0/0x40297)
DESTX1(D1/0x40297)
A-1
B-III
SIF
B-III-8-25

Advertisement

Table of Contents
loading

Table of Contents