Download Print this page

Epson S1C31D50 Technical Instructions page 188

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

14.6. Interrupts
SPIA has a function to generate the interrupts shown in Table 14.6.1.
Interrupt
End of transmission
SPIA_nINTF.TENDIF
Receive buffer full
SPIA_nINTF.RBFIF
Transmit buffer
SPIA_nINTF.TBEIF
empty
Overrun error
SPIA_nINTF.OEIF
SPIA provides interrupt enable bits corresponding to each interrupt flag. An interrupt request is sent
to the CPU core only when the interrupt flag, of which interrupt has been enabled by the interrupt
enable bit, is set. For more information on interrupt control, refer to the "Interrupt" chapter.
The SPIA_nINTF register also contains the BSY bit that indicates the SPIA operating status. Figure 14.6.1
shows the SPIA_nINTF.BSY and SPIA_nINTF.TENDIF bit set timings.
Master mode
SPIA_nMOD register
CPOL bit
CPHA bit
1
0
Slavemode
SPIA_nMOD register
CPOL bit
CPHA bit
1
0
Figure 14.6.1 SPIA_nINTF.BSY and SPIA_nINTF.TENDIF Bit Set Timings (when SPIA_nMOD.CHLN[3:0] bits = 0x7)
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Table 14.6.1 SPIA Interrupt Function
Interrupt flag
When the SPIA_nINTF.TBEIF bit = 1 after data
of the specified bit length (defined by the SPIA_
nMOD.CHLN[3:0] bits) has been sent
When data of the specified bit length is received
and the received data is transferred from the shift
register to the received data buffer
When transmit data written to the transmit
data buffer is transferred to the shift register
When the receive data buffer is full (when the re-
ceived data has not been read) at the point that
receiving data to the shift register has completed
1
SPICLKn
0
SDOn
SPIA_nINTF.BSY
SPIA_nINTF.TENDIF
Writing data to the SPIA_nTXD register
#SPISSn
1
SPIA_nINTF.BSY
0
SPICLKn
SDOn
SPICLKn
SDOn
SPIA_nINTF.TENDIF
Seiko Epson Corporation
Set condition
1
2
3
1
2
3
Writing data to the SPIA_nTXD register
Clear condition
Writing 1
Reading the SPIA_
nRXD register
Writing to the
SPIA_
nTXD register
Writing 1
7
8
7
8
14-13

Advertisement

loading