English
Language : 

M38002M4 Datasheet, PDF (120/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPENDIX
3.3 Notes on use
3.3 Notes on use
3.3.1 Notes on interrupts
(1) Sequence for switching an external interrupt
detection edge
When the external interrupt detection edge must be
switched, make sure the following sequence.
Clear an interrupt enable bit to “0” (interrupt disabled)
Switch the detection edge
Reason
The interrupt circuit recognizes the switching of the
detection edge as the change of external input
signals. This may cause an unnecessary interrupt.
Clear an interrupt request bit to “0” (no interrupt requ-
est issued)
Set the interrupt enable bit to “1” ( interrupt enabled )
(2) Bits 7 and 6 of the interrupt control register 2
Fix the bits 7 and 6 of the interrupt control register 2
(Address:003F16) to “0”.
Figure 3.3.1 shows the structure of the interrupt
control register 2.
b7
00
b0
Interrupt control register 2
Address 003F16
Interrupt enable bits
Not used
Fix these bits to “0”.
Fig. 3.3.1 Structure of interrupt control register 2
3.3.2 Notes on the serial I/O
(1) Stop of data transmission
As for the serial I/O that can be used as either a clock synchronous or an asynchronous (UART) serial I/O, clear
the transmit enable bit to “0” (transmit disabled), and clear the serial I/O enable bit to “0” (serial I/O disabled)in the
following cases :
q when stopping data transmission during transmitting data in the clock synchronous serial I/O mode
q when stopping data transmission during transmitting data in the UART mode
q when stopping only data transmission during transmitting and receiving data in the UART mode
Reason
Since transmission is not stopped and the transmission circuit is not initialized even if the serial I/O enable bit is
cleared to “0” (serial I/O disabled), the internal transmission is running (in this case, since pins TxD, RxD, SCLK,
and SRDY function as I/O ports, the transmission data is not output). When data is written to the transmit buffer
register in this state, the data is transferred to the transmit shift register and start tp be sjifted. When the serial
I/O enable bit is set to “1” at this time, the data during internally shifting is output to the TxD pin and ti may cause
an operation failure to a microcomputer.
(2) Stop of data reception
As for the serial I/O that can be used as either a clock synchronous or an asynchronous (UART) serial I/O, clear
the receive enable bit to “0” (receive disabled), or clear the serial I/O enable bit to “0” (serial I/O disabled) in the
following case :
q when stopping data reception during receiving data in the clock synchronous serial I/O mode
Clear the receive enable bit to “0” (receive disabled) in the following cases :
q when stopping data reception during receiving data in the UART mode
q when stopping only data reception during transmitting and receiving data in the UART mode
3-18
3800 GROUP USER’S MANUAL