4-Bit Microcontroller with Built-in RC Oscillation Type A/D Converter and LCD Driver
GENERAL DESCRIPTION
The ML64P168 is a one-time-programmable ROM-version product, which has one-time PROM (OTP)
as internal program memory. On the other hand, the ML64168 is a mask ROM-version product, which
has mask ROM as internal program memory.
Unlike the mask ROM-version product (ML64168), the ML64P168 cannot be supplied in the form of a
chip.
The ML64P168 has two operation modes, microcontroller operation mode and PROM mode. The
microcontroller operation mode is used to operate the ML64P168 like a ML64168 and the PROM
mode is used to program or read the PROM.
The ML64P168 is a low power 4-bit microcontroller incorporating the Oki’s original CPU core nX4/30.
The ML64P168 provides a minimum instruction execution time of 4.3µs (@700kHz).
The ML64P168 contains 8160-byte program memory, 512-nibble data memory, three 4-bit input-output
ports, 4-bit input port, 4-bit output port, 2-channel RC oscillation type A/D converter, LCD driver for
up to 120 segments, and buzzer output port.
APPLICATION
The ML64P168 is best suited for low power, high precision thermometers and hygrometers.
Low-speed clock: 32.768 kHz crystal oscillator
High-speed clock: 700 kHz RC oscillator ( with an external resistor )
CPU clock is selectable as Low-speed clock / High-speed clock by software.
∙ Operating voltage: 1.5 V spec. / 3.0 V spec. ( selectable by mask option )
1.45 to 1.70 V (1.5V spec.)
2.7 to 3.5 V (3.0V spec.)
∙ Operating temperature: 0 to +65°C
The information contained herein can change without notice owing to product and/or technical improvements.
Before using the product, please make sure that the information being referred to is up-to-date.
1/51
FEDL64P168-01
Semiconductor
∙ Memory space
Internal program memory: 8160 bytes
Internal data memory: 512 nibbles
( 8 out of the 34 LCD driver outputs can be used as
output-only ports by mask option. )
∙ LCD driver: 34 outputs
(1) At 1/4 duty and 1/3 bias: 120 segments (max.)
(2) At 1/3 duty and 1/3 bias: 93 segments (max.)
(3) At 1/2 duty and 1/2 bias: 64 segments (max.)
Voltage Regulator for LCD Driver (selectable by mask option)
The LCD panel display is stable regardless of temporary supply voltage drop, because the
voltage generated by the voltage regulator for LCD driver is supplied to the bias voltage
generator as a reference voltage.
LCD Operating Voltage
When the voltage regulator for LCD driver is used
: 3.6 V ( Duty cycle = 1/4 or 1/3 )
: 2.4 V ( Duty cycle = 1/2 )
When the voltage regulator for LCD driver is not used
: 4.5 V ( Duty cycle = 1/4 or 1/3 )
: 3.0 V ( Duty cycle = 1/2 )
∙ Buzzer driver: 1 output ( 4 output modes selectable )
∙ Serial port: Synchronous 8-bit transfer
Selectable as external clock / internal clock
Selectable as MSB first / LSB first
∙ Capture circuit: 2 channels ( 32Hz, 64Hz, 128Hz, 256Hz )
∙ Battery check circuit: 1 ( incorporated into the input-only port )
∙ Watchdog timer
∙ Interrupt
∙ Structured Assembler:SASM64K
∙ In Circuit Emulator:EASE64168
∙ Debugger:DT64K
ML64P168
3/51
FEDL64P168-01
Semiconductor
BLOCK DIAGRAM
BSR
MIEF
HALT
TIMING
CONTROLLER
C
B A
SP
CPU CORE: nX-4/30
DATA BUS ( 8 )
TR0
ALU
DATA BUS ( 8 )
TR1TR2
PCH
PCM PCL
X YH L
IR
DECORDER
IR
ROMR
ML64P168
V
PP
PROM
8160
Bytes
OSC1
OSC2
XT
XT
RST
TST1
TST2
2CLK
RSTC
TST
INT
TBC
BC
RAM
512
Nibbles
5
INT
SIOP
ADDRESS BUS
BIAS
V
V
V
C1
DD1
DD2
DD3
C2
BD
BD
LCD
L0
L1
to
L33
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
INT
INT
CAPR
INTC
WDT
ADC
INT
INT
V
DDI
P2
P3
P4
V
DDI
P2.0
P2.1
to
P4.3
P1.0
P1
P1.1
P1.2
P1.3
V
DDI
P0.0
P0
P0.1
P0.2
P0.3
4/51
FEDL64P168-01
Semiconductor
PIN CONFIGURATION (TOP VIEW)
L0
L1
L2
L3
L4
L5
L6
L7
L8
L9
L10
L11
L12
L13
L14
L15
L16
P2.0
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P0.3
80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
P0.2
79
P0.1
78
P0.0
77
P1.3
76
P1.2
75
P1.1
74
P1.0
73
TST2
72
TST1
71
RESET
XT
70
69
XT
68
DD
V
67
OSC1
OSC2
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
ML64P168
L33 / P6.3
L32 / P6.2
L31 / P6.1
L30 / P6.0
L29 / P5.3
L28 / P5.2
L27 / P5.1
L26 / P5.0
L25
L24
L23
L22
L21
L20
L19
L18
L17
C2
C1
DD3
V
DD2
V
DDI
V
DD1
V
RT1
25
P3.3
26
P4.0
27
28
29
30
31
32
33
34
PPVSS
BD
P4.1
P4.2
P4.3
V
RT0
CRT0
( GP : QFP80-P-1420-0.80-BK )
80-Pin Plastic QFP
35
RS0
36
CS0
37
IN0
38
IN1
39
CS1
40
RS1
5/51
FEDL64P168-01
Semiconductor
PIN CONFIGURATION (TOP VIEW) ( continued )
L1
L0
L2
L3
L4
L5
L6
L7
L8
L9
L10
L11
L12
L13
L14
L15
L16
P2.0
P2.1
P2.2
P2.3
P3.0
10
11
12
13
14
15
16
17
18
19
20
P0.3
80
79
78
1
2
3
4
5
6
7
8
9
P0.2
77
P0.1
76
P0.0
75
P1.3
74
P1.2
73
P1.1
72
P1.0
71
TST2
70
TST1
69
RESET
XT
68
67
XT
66
DD
V
65
OSC1
64
OSC2
63
L33 / P6.3
L32 / P6.2
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
ML64P168
L31 / P6.1
L30 / P6.0
L29 / P5.3
L28 / P5.2
L27 / P5.1
L26 / P5.0
L25
L24
L23
L22
L21
L20
L19
L18
L17
C2
C1
V
DD3
V
DD2
V
DDI
21
P3.1
22
P3.2
23
P3.3
24
P4.0
25
26
27
28
29
30
31
32
PPVSS
BD
P4.1
P4.2
P4.3
V
RT0
CRT0
( GA : QFP80-P-1414-0.65-K )
80-Pin Plastic QFP
33
RS0
34
CS0
35
IN0
36
IN1
37
CS1
38
RS1
39
RT1
40
DD1
V
6/51
FEDL64P168-01
Semiconductor
ML64P168
PIN DESCRIPTIONS
The basic functions of each pin of the ML64P168 is described in Table 1.
A symbol with a slash ( / ) denotes a pin that has a secondary function.
Refer to Table 2 for secondary functions.
For Type, “ - ” denotes a power supply pin, “ I ” an input pin, “O” an output pin, and “I/O” an inputoutput pin.
Table 1 Pin Descriptions ( Basic Functions )
FunctionSymbol
SS
V
DD
V
DD1
V
DD2
V
Power
Supply
DD3
V
DDI
V
Pin No.
GPGA
TypeDescription
3230-0V power supply
6765-Positive power supply
4240-
4442-
4543-
Bias output for driving LCD (+1.5 V, +1.2 V* )
Bias output for driving LCD (+3.0 V, +2.4 V* )
Bias output for driving LCD (+4.5 V, +3.6 V* )
4341-Positive power supply for I/O port interface
PP
V
C14644-
C24745-
XT
XT6866O
3129-Power supply (+12.5 V) for PROM writing
Pins for connecting a capacitor for generating LCD driving
bias
6967I
Low-speed clock oscillation input and output pins.
Connect to a crystal ( 32.768 kHz ).
Oscillation
Test
OSC16664I
OSC26563O
TST1
TST2
7169I
7270I
High-speed clock oscillation input and output pins.
Connect to an external resistor for oscillation ( R
Input pins for testing.
A pull-up resistor is internally connected to these pins.
System reset input pin.
Reset
RESET
7068I
Setting this pin to ″ L ″ level puts this device into a reset state.
Then, setting this pin to ″ H ″ level starts executing an
instruction from address 0000H.
*When the voltage regulator for LCD driver is used.
4-bit input port ( Port 0 )
Selectable as pull-up resistor input, pull-down resistor input,
or high impedance input by the port 01 control register
( P01CON ).
I
4-bit output port ( Port 1 )
Selectable as NMOS open drain output or CMOS output by
O
the port 01 control register ( P01CON ).
P1.0 is a high current drive output port.
ML64P168
Ports
P1.37674
P2.0/
INT0
P2.1/
INT0
P2.2/
INT0
P2.3/
INT0
P3.0/
INT0
P3.1/
INT0
P3.2/
INT0
1816
1917
2018
2119
2220
2321
2422
P3.3/
INT0/
2523
SIN
P4.0/
INT0/
2624
SOUT
P4.1/
INT0/
2725
SPR
P4.2/
INT0/
2826
SCLK
P4.3/
INT0/
2927
MON
I/O
I/O
I/O
4-bit input-output port ( Port 2 )
Fllowing can be specified for each bit by the port 2 control
registers 0 to 3 ( P20CON to P23CON ).
(1) input or output
(2) pull-up/pull-down resistor input or high impedance input
(3) NMOS open drain output or CMOS output
4-bit input-output port ( Port 3 )
Following can be specified for each bit by the port 3 control
registers 0 to 3 ( P30CON to P33CON ).
(1) input or output
(2) pull-up/pull-down resistor input or high impedance input
(3) NMOS open drain output or CMOS output
4-bit input-output port ( Port 4 )
Following can be specified for each bit by the port 4 control
registers 0 to 3 ( P40CON to P43CON ).
(1) input or output
(2) pull-up/pull-down resistor input or high impedance input
(3) NMOS open drain output or CMOS output
LCD segment and common signals output pins.
These pins can be configured to be output ports by a mask
option.
L29 / P5.36058O
L30 / P6.06159O
L31 / P6.16260O
L32 / P6.26361O
L33 / P6.36462O
10/51
FEDL64P168-01
Semiconductor
FunctionSymbol
P2.0/
INT0
P2.1/
INT0
P2.2/
INT0
P2.3/
INT0
P3.0/
INT0
P3.1/
INT0
P3.2/
INT0
P3.3/
External
Interrupt
INT0
P4.0/
INT0
P4.1/
INT0
P4.2/
INT0
P4.3/
INT0
P0.0/
INT1
P0.1/
INT1
P0.2/
INT1
P0.3/
INT1
P0.0/
Capture
trigger
CAPIN0
P0.1/
CAPIN1
P3.3/
SIN
P4.0/
Serial
port
SOUT
P4.1/
SPR
P4.2/
SCLK
Table 2 Pin Descriptions ( Secondary Functions )
Pin No.
GPGA
1816
1917
2018
2119
2220
2321
2422
2523
2624
2725
2826
2927
7775
7876
7977
8078
7775
7876
2523I
2624O
2725O
2826I/O
TypeDescription
Secondary functions of P2.0 to P2.3, P3.0 to P3.3, and P4.0
to P4.3:
Level-triggered external 0 interrupt input pins.
The change of input signal level causes an interrupt to occur.
I
I
I
Secondary functions of P0.0 to P0.3:
Level-triggered external 1 interrupt input pins.
The change of input signal level causes an interrupt to occur.
I
Secondary functions of P0.0:
This pin is assigned the capture circuit trigger input pin of
CAPR0 function .
I
Secondary functions of P0.1:
This pin is assigned the capture circuit trigger input pin of
CAPR1 function .
Secondary functions of P3.3:
This pin is assigned the data input of a serial port.
Secondary functions of P4.0:
This pin is assigned the data output of a serial port.
Secondary functions of P4.1:
This pin is assigned the ready output of a serial port.
Secondary functions of P4.2:
This pin is assigned the clock input-output of a serial port.
Secondary functions of P4.3:
This pin is a monitor output of the RC oscillation clock for an
A/D converter and a 700kHz RC oscillation clock for a system
clock.
Secondary functions of P0.3:
This pin is an analog comparator input pin for battery check
circuit.
12/51
FEDL64P168-01
Semiconductor
MEMORY MAPS
Program Memory ( PROM )
1FFFH
1FE0H
003EH
Interrupt area
0020H
Test program area
8160 bytes
ML64P168
32 bytes
Contents of interrupt area
003BHWatchdog interrupt
0038HExternal 0 interrupt
0035HSerial port interrupt
0032HExternal 1 interrupt
002FHA/D converter interrupt
002CH256Hz interrupt
0029H32Hz interrupt
0026H16Hz interrupt
0023H1Hz interrupt
0020H0.1Hz interrupt
CZP area
0010H
0000H
Start address
8 bits
Program Memory Map
Address 0000H is the instruction execution start address by the system reset.
The CZP area from address 0010H to address 001FH is the start address for the CZP subroutine of 1byte call instruction.
The start address of interrupt subroutine is assigned to the interrupt address from address 0020H to
003DH.
The user area has 8160 bytes of address 0000H to 1FDFH. No program can be stored in the test
program area.
13/51
FEDL64P168-01
Semiconductor
ML64P168
Data Memory
The data memory area consists of 8 banks and each bank has 256 nibbles ( 256 × 4 bits ).
The data RAM is assigned to BANK 6, BANK 7 and peripheral ports are assigned to BANK 0.
7FFH
780H
700H
6FFH
600H
BANK7
Data RAM area
( 256 nibbles )
512 nibbles
BANK6
Data RAM area
( 256 nibbles )
Data / Stack area ( 128 nibbles )
Contents of 000H to 07FH
07FH
Inaccessible area
SFR area
100H
0FFH
080H
07FH
000H
Unused area
BANK0
000H
4 bits
Data Memory Map
Half the BANK 7 of Data RAM area ( 128 nibbles ) is shared by the stack area. The stack is a memory
starting from address 7FFH toward the low-order addresses where 4 nibbles are used by Subroutine
Call Instruction and 8 nibbles are used by an interrupt.
The addresses 080H to 0FFH of BANK 0 are not assigned as the data memory, so access to these
addresses has no effect. Moreover, it is impossible to access BANK 1 to BANK 5.
14/51
FEDL64P168-01
Semiconductor
ABSOLUTE MAXIMUM RATINGS ( 1.5
ParameterSymbolConditionRatingUnit
Power supply voltage 1V
Power supply voltage 2V
Power supply voltage 3V
Power supply voltage 4V
Power supply voltage 5V
Input voltage 1V
Input voltage 2V
Output voltage 1V
Output voltage 2V
Output voltage 3V
Output voltage 4V
Output voltage 5V
Power DissipationPD
Storage temperatureT
DD1
DD2
DD3
DDI
DD
IN1
IN2
OUT1
OUT2
OUT3
OUT4
OUT5
STG
VDD input, Ta = 25°C
DDI
V
DD1
V
DD2
V
DD3
V
VDD output, Ta = 25°C
DDI
V
QFP80-P-1420-0.80-BK
QFP80-P-1414-0.65-K
V Spec. )
(VSS = 0V)
Ta = 25°C-0.3 to + 2.0V
Ta = 25°C-0.3 to + 4.0V
Ta = 25°C
Ta = 25°C
Ta = 25°C
-0.3 to + 5.5V
-0.3 to + 5.5V
-0.3 to + 2.0V
-0.3 to VDD+ 0.3V
input, Ta = 25°C
output, Ta = 25°C
output, Ta = 25°C
output, Ta = 25°C
-0.3 to V
-0.3 to V
-0.3 to V
-0.3 to V
DDI
+ 0.3V
DD1
+ 0.3V
DD2
+ 0.3V
DD3
+ 0.3V
-0.3 to VDD+ 0.3V
output, Ta = 25°C
Ta = 0 to + 65°C
Ta = 0 to + 65°C
-0.3 to VDD+ 0.3V
381mW
334mW
--55 to + 150
ML64P168
°
C
RECOMMENDED OPERATING CONDITIONS ( 1.5V Spec. )
ParameterSymbolConditionRatingUnit
VDD,V
DDI
V
R
XT
op
OS
DD1
-0 to + 65
-1.45 to 1.70V
-2.70 to 5.25V
-60 to 200
-30 to 35kHz
Operating Temperature*T
Operating Voltage*
External 700kHz RC Oscillator
Resistance*
Crystal oscillation frequency*f
* : At Non-regulated LCD driver.
In case of select a voltage regulated LCD driver, see P.37/51.
(VSS = 0V)
°
C
Ω
k
15/51
FEDL64P168-01
Semiconductor
ELECTRICAL CHARACTERISTICS ( 1.5
DC Characteristics ( 1.5 V Spec. )
(VSS=0V, V
ParameterSymbolConditionMin.Typ.Max.Unit
DD2
V
Vo l t a ge *V
DD3
V
Vo l t a ge *V
Crystal Oscillation
Start Voltage
Crystal Oscillation
Hold Voltage
Crystal Oscillation
Stop Detection Time
Internal Crystal
Oscillator Capacitance
External Crystal
Oscillator Capacitance
Internal Crystal
Oscillator Capacitance
Internal 700kHz RC
Oscillator Capacitance
700kHz RC Oscillation
Frequency
POR Generation
Vo l t a g e
POR Non-generation
Vo l t a g e
Battery Check
Reference Voltage
VRB Temperature
Va r ia t i o n
V
V
T
C
V
V
∆
DD2
DD3
STA
HOLD
STOP
C
GEX
C
OS
C
OSC
f
POR1
POR2
RB
V
V
Ca, Cb, C12=0.1µF
Ca, Cb, C12=0.1µF
Oscillation start time:
within 5 seconds
G
When external CG used10-30pF
D
External resistor ROS=160k
VDD = 1.45 to 1.70V
When VDD is between
POR1
V
and 1.5V
No POR when VDD is
between V
Ta = 25°C
RB
DD1=VDD
-
-
-
-101520pF
-81216pF
POR2
and 1.5V
-
V Spec. )
=1.5V, V
+100%
-50%
+100%
-50%
Ω
ML64P168
DDI
=2.7V, Ta=0 to +65°C unless otherwise specified )
Measuring
Circuit
2.83.03.2V
4.34.54.7V
1.47--V
1.40--V
0.1-1000ms
101520pF
80280350kHz
0-0.4V
1.4-1.5V
0.500.600.70V
--2-
mV/°C
1
2
Notes:1.”POR” denotes Power On Reset.
STOP
2.”T
” indicates that if the crystal oscillator stops over the value of T
* : At Non-regulated LCD driver.
In case of select a voltage regulated LCD driver, see P.37/51.
STOP
, the system reset occurs.
16/51
Loading...
+ 35 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.