Rev.3.01
REJ03B0158-0301
Aug 08, 2007
Page 130 of 134
38D5 Group
3. Executing STP Instruction
Executing the STP instruction sets the LCD enable bit (bit 4 of
LCD mode register1 (address 0013
16
)) to “0” and the LCD panel
turns off. To turn the LCD panel on after returning from stop
mode, set the LCD enable bit to “1”.
4. V
L3
Pin
To use the LCD drive control circuit while V
L3
is set to the
voltage equal to V
CC
, apply the V
CC
voltage to the V
L3
pin and
write “1” to the V
L3
connection bit (bit 1 of LCD mode register 2
(address 0014
16
)).
5. LCD Drive Power Supply
Power supply capacitor may be insufficient with the division
resistance for LCD power supply, and the characteristic of the
LCD panel. In this case, there is the method of connecting the
bypass capacitor about 0.1 -0.33
μ
F to VL1 -VL3 pins. The
example of a strengthening measure of the LCD drive power
supply is shown below.
Fig. 106 Strengthening measure example of LCD drive
power supply
Notes on ROM Correction Function
1. Returning to Main Program
To return to the main program from the correction program, use
the JMP instruction (3-byte instruction).
2. Using ROM Correction Function
If the ROM correction function is used, be sure to enable the
ROM correction enable bit after setting the ROM correction
register.
3. Address
Do not set addresses other than the ROM area in the ROM
correction address registers. Also, do not set the same address in
the ROM correction address 1 register and the ROM correction
address 2 register.
4. ROM Correction Process
Include the ROM correction process in the program beforehand.
5. Using No ROM Correction Function
If the ROM correction function is not used, the ROM correction
vector can be used as normal RAM/ROM. When using as normal
RAM/ROM, be sure to set bits 1 and 0 of the ROM correction
enable register to “0” (disabled).
Notes on Clock Generating Circuit
1. Oscillation Circuit Constants
The oscillation circuit constants vary depending on the resonator.
Use values recommended by the oscillator manufacturer.
A feed-back resistor is implemented between the X
IN
and X
OUT
pins (an external feed-back resistor may be required depending
on conditions). As no feed-back resistor is implemented between
X
CIN
and X
COUT
, add a feedback resistor of about 10 M
.
2. Transition between Modes
When the MCU transits between on-chip oscillator mode, X
IN
mode, or low-speed mode, both the X
IN
and X
CIN
oscillations
must be stabilized. Be especially careful when turning the power
on and returning from stop mode. Refer to the clock state
transition diagram for a transition between each mode. Also, set
the frequency in the condition that f(X
IN
)
≥
3
×
(X
CIN
).
When X
IN
mode is not used (the X
IN
-X
OUT
oscillation or
external clock input to X
IN
is not performed), connect X
IN
to
V
CC
through a resistor.
3. Oscillation Stabilization
Before executing the STP instruction, set the values * to generate
the wait time required for oscillation stabilization to timer 1 latch
and timer 2 latch (low-order 8 bits of timer 1 and high-order 8
bits of timer 2).
*Referential values
(Set values according to your oscillator and system)
OSCSEL = “L” in the flash memory and QzROM versions:
.....................................................................0005
16
or more
OSCSEL = “H” in the QzROM version:
.....................................................................01FF
16
or more
4. Low-Speed Mode, X
IN
Mode
To use low-speed mode or X
IN
mode, wait until oscillation
stabilizes after enabling the X
IN
-X
OUT
and X
CIN
-X
COUT
oscillation, then switch to the mode.
Connect by the shortest
possible wiring.
Connect the bypass capacitor
to the V
V
L3
pins as short
as possible.
(Referential value:0.1
0.33
μ
F)
V
L3
V
L2
V
L1