English
Language : 

M3850 Datasheet, PDF (83/88 Pages) Renesas Technology Corp – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3850 Group (Spec.A)
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Notes on Interrupts
1. Change of relevant register settings
When the setting of the following registers or bits is changed, the
interrupt request bit may be set to “1”. When not requiring the in-
terrupt occurrence synchronized with these setting, take the
following sequence.
• Interrupt edge selection register (address 3A16)
• Timer XY mode register (address 2316)
Set the above listed registers or bits as the following sequence.
Notes on timer
• If a value n (between 0 and 255) is written to a timer latch, the
frequency division ratio is 1/(n+1).
• When switching the count source by the timer 12, X and Y count
source selection bits, the value of timer count is altered in
unconsiderable amount owing to generating of thin pulses in the
count input signals.
Therefore, select the timer count source before set the value to
the prescaler and the timer.
Set the corresponding interrupt enable bit to “0” (disabled) .
↓
Set the interrupt edge select bit (active edge switch bit) or
the interrupt (source) select bit to “1”.
↓
NOP (one or more instructions)
↓
Set the corresponding interrupt request bit to “0”
(no interrupt request issued).
↓
Set the corresponding interrupt enable bit to “1” (enabled).
Fig. 4 Sequence of changing relevant register
<Reason>
When setting the followings, the interrupt request bit may be set to “1”.
• When setting external interrupt active edge
Concerned register: Interrupt edge selection register (address 3A16)
Timer XY mode register (address 2316)
• When switching interrupt sources of an interrupt vector address
where two or more interrupt sources are allocated.
Concerned register: Interrupt edge selection register (address 3A16)
2. Check of interrupt request bit
When executing the BBC or BBS instruction to an interrupt re-
quest bit of an interrupt request register immediately after this bit
is set to “0” by using a data transfer instruction, execute one or
more instructions before executing the BBC or BBS instruction.
Clear the interrupt request bit to “0” (no interrupt issued)
↓
NOP (one or more instructions)
↓
Execute the BBC or BBS instruction
*Data transfer instruction:
LDM, LDA, STA, STX, and STY instructions
Fig. 5 Sequence of check of interrupt request bit
<Reason>
If the BBC or BBS instruction is executed immediately after an in-
terrupt request bit of an interrupt request register is cleared to “0”,
the value of the interrupt request bit before being cleared to “0” is
read.
Notes on serial interface
1. Notes when selecting clock synchronous serial I/O (Serial I/O1)
(1) Stop of transmission operation
Clear the serial I/O1 enable bit and the transmit enable bit to “0”
(Serial I/O1 and transmit disabled).
<Reason>
Since transmission is not stopped and the transmission circuit is
not initialized even if only the serial I/O1 enable bit is cleared to “0”
(Serial I/O1 disabled), the internal transmission is running (in this
case, since pins TxD, RxD, SCLK1, and SRDY1 function as I/O
ports, the transmission data is not output). When data is written to
the transmit buffer register in this state, data starts to be shifted to
the transmit shift register. When the serial I/O1 enable bit is set to
“1” at this time, the data during internally shifting is output to the
TxD pin and an operation failure occurs.
(2) Stop of receive operation
Clear the receive enable bit to “0” (receive disabled), or clear the
serial I/O1 enable bit to “0” (Serial I/O1 disabled).
(3) Stop of transmit/receive operation
Clear the transmit enable bit and receive enable bit to “0” simulta-
neously (transmit and receive disabled).
(when data is transmitted and received in the clock synchronous
serial I/O mode, any one of data transmission and reception can-
not be stopped.)
<Reason>
In the clock synchronous serial I/O mode, the same clock is used
for transmission and reception. If any one of transmission and re-
ception is disabled, a bit error occurs because transmission and
reception cannot be synchronized.
In this mode, the clock circuit of the transmission circuit also oper-
ates for data reception. Accordingly, the transmission circuit does
not stop by clearing only the transmit enable bit to “0” (transmit
disabled). Also, the transmission circuit is not initialized by clear-
ing the serial I/O1 enable bit to “0” (Serial I/O1 disabled) (refer to
(1) in 1).
(4) SRDY1 output of reception side (Serial I/O1)
When signals are output from the SRDY1 pin on the reception side
by using an external clock in the clock synchronous serial I/O
mode, set all of the receive enable bit, the SRDY1 output enable
bit, and the transmit enable bit to “1” (transmit enabled).
Rev.2.10 2005.11.14 page 83 of 86
REJ03B0093-0210