Epson S1C33210 Technical Manual page 342

Cmos 32-bit single chip microcomputer
Table of Contents

Advertisement

III PERIPHERAL BLOCK: SERIAL INTERFACE
If an interrupt factor occurs when the IDMA request and enable bits are set to "1", IDMA is invoked. No
interrupt request is generated at that point. An interrupt request is generated upon completion of the DMA
transfer. The bits can also be set so as not to generate an interrupt, with only a DAM transfer performed.
For details on DMA transfer and how to control interrupts upon completion of DMA transfer, refer to "IDMA
(Intelligent DMA)".
• Ch.2 and Ch.3
For Ch.2 and Ch.3, either a port input interrupt or 16-bit timer interrupt is selected, and IDMA is initialed by
means of that interrupt factor.
The correspondence between IDMA channels and Serial I/F Ch.2 and Ch 3 is shown in Table 8.12.
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.
For example, when port input interrupts are selected, Serial I/F Ch.2 transmit buffer empty corresponds to port
3, and to IDMA Ch.4. Therefore, IDMA can be invoked by setting both IDMA request bit RP3 (D3/0x40290)
and IDMA enable bit DEP3 (D3/0x40294) to "1".
High-speed DMA
• Ch.0 and Ch.1
The receive-buffer full interrupt and transmit-buffer empty interrupt factors can also invoke high-speed DMA
(HSDMA).
The following shows the HSDMA channel number and trigger set-up bit corresponding to each channel:
SIF
Ch.
HSDMA Ch.
0
1
0
1
For HSDMA to be invoked by the receive-buffer full interrupt factor, the trigger set-up bits should be set to
"1010". For HSDMA to be invoked by the transmit-buffer empty interrupt factor, the trigger set-up bits should
be set to "1011". Transfer conditions, etc. must also be set on the HSDMA side.
The HSDMA channel is invoked through generation of the interrupt factor.
For details on HSDMA transfer, refer to "HSDMA (High-Speed DMA)".
B-III-8-26
Table 8.12 Correspondence to IDMA Channels
Port input / 16-bit timer
Table 8.13 HSDMA Trigger Set-up Bits
0
HSD0S[3:0] (D[3:0]) / HSDMA Ch.0/1 trigger set-up register (0x40298)
1
HSD1S[3:0] (D[7:4]) / HSDMA Ch.0/1 trigger set-up register (0x40298)
2
HSD2S[3:0] (D[3:0]) / HSDMA Ch.2/3 trigger set-up register (0x40299)
3
HSD3S[3:0] (D[7:4]) / HSDMA Ch.2/3 trigger set-up register (0x40299)
interrupt 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
Trigger set-up bits
EPSON
IDMA Ch.
31
12
29
11
30
16
28
15
3
14
4
18
2
17
1
13
S1C33210 FUNCTION PART

Advertisement

Table of Contents
loading

Table of Contents