MB91350A Series
DS07-16503-5E
25
Pull-up Control
If a pull-up resistor is provided to a pin that is used as an external bus pin, there is no guarantee that the pin will
conform to the specifications given in “
■ ELECTRICAL CHARACTERISTICS 4. AC Characteristics (4) Normal
Bus Access Read/Write Operation, (5) Multiplex Bus Access Read/Write operation and (7) Hold Timing”.
Furthermore, even if a port has been configured to use a pull-up resistance, this setting is invalid during stop
mode with HIZ=1 and during hardware standby mode.
Sub Clock Select
At least one NOP instruction needs to be executed immediately after switching the clock source from main clock
mode to sub clock mode.
Bit Search Module
The BSD0, BSD1, and BDSC registers can only be accessed in words.
D-bus Memory
Do not set the code area to memory on the D-bus because instructions cannot be fetched from the D-bus.
Executing an instruction fetch to the D-bus area will cause incorrect data to be interpreted as code, possibly
causing the device to run out of control.
Low Power Consumption Mode
When entering sleep or stop mode, be sure to read the standby control register (STCR) immediately after writing
to it.
More specifically, use the following sequence.
Furthermore, after recovering from standby mode, set the I flag, ILM, and ICR registers such that the CPU
branches to the interrupt handler for the interrupt that triggered the controller to recover from standby mode.
Switching the Function of Shared Ports
Use the Port Function Register (PFR) to switch between using an external pin as a port or a shared pin. Note,
however, that bus pins are switched depending on the external bus settings.
(Idi
#0x0b, r0)
(Idi
#_CLKR, r12)
stb
r0, @r12
// sub-clock mode
nop
// Must insert NOP instruction
(Idi
#value_of_standby, r0)
(Idi
#_STCR, r12)
stb
r0, @r12
// set STOP/SLEEP bit
Idub @r12, r0
// Must read STCR
Idub @r12, r0
// after reading, go into standby mode
NOP
// Must insert NOP
× 5
NOP