|
38K0 Datasheet, PDF (64/133 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER | |||
|
◁ |
38K0 Group
(2) CPU Channel Transmitting Operation
CPU channel transmitting operation is shown bellow.
â
Address ExA0
Chip select ExCS
Read ExRD
Write ExWR
Data DQ0 to DQ7
â
â
A0 = â1â
CS = â0â
â
#0
ââ
A0 = â1â
CS = â0â
#1
Internal clock Ï
Interrupt request ExINT
[TxB_RDY]
Transmit buffer empty bit
TXB_EMPTY
Receive buffer RXBUF
Transmit buffer TXBUF
â
CPU channel transmit enable bit
TXB_ENB
Transmit data write
TxB_RDY
#0
â
TxB_RDY
#1
ââ
<Initial setting>
External I/O configuration register
INT_CTR[3:1] (P33/ExINT pin control) = 0102 (TxB_RDY interrupt)
<Operation start>
EXB interrupt source enable register
TXB_ENB (CPU channel transmit enable) = â1â (Transmit buffer empty interrupt enabled)
â Writing the command for enabling operation generates TXB_EMPTY interrupt.
If the CPU channel transmit enable bit (TXB_ENB) is â0â, both the transmit buffer empty bit (TXB_EMPTY) and the transmit buffer ready signal (TxB_RDY) to
an external are inactive.
â When the CPU writes the data into the transmit buffer (TXBUF) with an interrupt processing program, the transmit buffer empty bit (TXB_EMPTY) is cleared
to â0â and assertion of the transmit buffer ready signal (TxB_RDY) to an external is made.
â When a read operation is performed from an external MCU bus in the condition of ExCS = âLâ and ExA0 = âHâ, it will result in as follows:
⢠The contents of the transmit buffer (TXBUF) is read out
⢠The transmit buffer empty bit (TXB_EMPTY) is set to â1â
⢠Negation of the transmit buffer ready signal (TxB_RDY) to an external is made.
Fig. 93 CPU channel tranmitting operation
Rev.3.00 Oct 05, 2006 page 64 of 129
REJ03B0192-0300
|
▷ |