Copyright 1988, OKI ELECTRIC INDUSTRY COMPANY, LTD.
OKI makes no warranty for the use of its products and assumes no
responsibility for any errors which may appear in this document nor
does it make a commitment to update the information contained
herein.
OKI retains the right to make changes to these specifications at
any time, without notice.
7.2 Description of Instruction Symbols .................................................................232
7.3 List of Instructions...........................................................................................233
7.4 Simplified Description of Instructions..............................................................234
7.5 Detailed Description of MSM80C154S/MSM83C154S Instructions ...............246
1. INTRODUCTION
MSM80C154S/83C154S/85C154HVS
2
INTRODUCTION
1. INTRODUCTION
1.1 MSM80C154S/MSM83C154S/MSM85C154HVS Outline
MSM80C154S/MSM83C154S/MSM85C154HVS are single-chip 8-bit fully static microcontrollers featuring high performance and low power consumption. All MSM80C31F /MSM80C51F
instructions and functions have been retained.
Apart from being without the internal program memory (ROM), MSM80C154S is identical to
MSM83C154S. And the difference between MSM85C154HVS and MSM83C154S is that the
internal program memory (ROM) in MSM83C154S is replaced by an external ROM
connected to MSM85C154HVS by using a piggy-back package.
While the MSM83C154S microcontroller integrates a 16384-word × 8-bit program memory
(ROM) in a single chip, MSM80C154S/MSM83C154S/MSM85C154HVS all feature computer functions including a 256-word × 8-bit data memory (RAM), 32 input/ output ports, three
16-bit timer/counters, six interrupts, serial I/O, an 8-bit parallel processing circuit, and a clock
generator.
The internal operation in these CPUs is based on an instruction code address method for
greater efficiency. In this method, operations are specified in the instruction code (OP)
section, and the objective registers are specified by part of that instruction code and the
second or third byte following the code. A feature of this method is the ability to achieve
several operations by simply changing the manipulation register designation in a single
instruction code.
Inclusion of 8-bit multiplication and division instructions further increases the processing
capacity of these CPUs.
In addition to expansion of the bit processing area, a comprehensive range of bit processing
instructions has also been included. Processing operations include logical processing of the
carry flag and specified bit within each register, transfer between the carry flag and specified
bit in certain registers, transfer of specified bits between different registers, setting, resetting,
and complement of the specified bit in each register, and execution of various bit tests within
a wide area.
To make a relative jump after the execution of a bit test instruction, jumps can be made within
a wide address range between –128 and +127 relative to the address of the instruction and
there is no page field restriction.
The contents of specified registers can be saved in stack by using the PUSH instruction, and
the saved contents can be returned from stack to a specified register by the POP instruction.
Absolute interrupt priority can be allocated to any interrupt when in priority circuit operation
mode. And by controlling only the interrupt enable register (IE) when in priority circuit stop
mode, multi-level interrupt processing can be executed to make interrupt processing much
easier than in conventional CPUs.
Employing the low-power consumption feature of C-MOS devices, these CPUs are designed
to operate in a number of “CPU power down” modes. In idle mode the IDL bit in the power
control register (PCON) is set to “1” to halt CPU operations while the oscillator continues to
run. In soft power down mode the PD bit in the power control register is set to “1” to halt CPU
operations as well as the oscillator. And in hard power down mode where the HPD bit in the
power control register is set in advance to “1”, CPU operations and the oscillator are stopped
if the HPDI pin (P3.5) power failure detect signal level is changed from “1” to “0”. CPU power
down modes can be cancelled by resetting the CPU via reset pin and restarting execution
from address 0, by restarting execution from the relevant interrupt address, or by resuming
3
MSM80C154S/83C154S/85C154HVS
execution from the next address after the stop address where CPU power down mode was
activated.
Each of the quasi-bidirectional ports 1, 2, and 3 can be set independently as high impedance
input ports. And the 10 kW pull-up resistance for these input ports can be isolated from the
power supply (VCC), leaving only the 100 kW pull-up resistance and thereby enabling the
quasi-bidirectional ports to be driven by devices with low drive capacity. Furthermore, the
outputs of ports, 0, 1, 2, and 3 can be switched to floating status during CPU power down
modes (PD, HPD).
Three built-in 16-bit timer/counters capable of operating in a wide range of modes enable the
CPUs to be used in many different ways. And since timer/counters 0 and 1 can be operated
by external clock during CPU power down modes (PD, HPD) where the oscillator is stopped,
these two counters can also be used in cancelling CPU power down modes.
UART based serial communication can be executed at any baud rate by carry signal from
timer/counter 1 or timer/counter 2.
If an overrun or framing error is generated during data reception, the SERR bit in the I/O
control register is set. And by testing this SERR bit, the accuracy of the data can be checked
quite easily to ensure correct serial communication.
As can be seen, these CPUs are equipped with a very comprehensive range of functions. Also
note that EASE80C51mkII is available for use as the program development support system
for these CPUs.
Equipped with the MSM85C154E dedicated evachip, EASE80C51mkII is capable of program area mapping, realtime tracing, generating breaks according to accumulator contents,
and various other functions designed for accurate and efficient support of program development of these CPUs.
With this great line-up of functions and with EASE80C51mkII capable of developing
programs in a very short time, MSM80C154S/MSM83C154S/MSM85C154HVS give a highly
integrated high performance solution.
4
INTRODUCTION
1.2 MSM80C154S/MSM83C154S Features
• Full static circuitry
• Internal program memory (ROM)
16384 words × 8 bits (MSM83C154S)
• External program memory (ROM)
Connectable up to 64K bytes
• Internal data memory (RAM)
256 words × 8 bits
• External data memory (RAM)
Connectable up to 64K bytes
• Four sets of working registers (R0 thru R7 × 4)
• Stack
Free use of 256-word × 8-bit internal data memory area
• Four input/output ports (8-bit × 4)
• Serial ports (UART operation)
• Six types of interrupts
(1) Two external interrupts
(2) Three timer interrupts
(3) One serial port interrupt
• CPU power down function
(1) Idle mode: CPU stopped while oscillation continued.
(Software setting)
(2) PD mode:CPU and oscillation all stopped.
(Software setting)
(Setting I/O ports to floating status possible)
(3) HPD mode: CPU and oscillation all stopped.
(Hardware setting)
(Setting I/O ports to floating status possible)
• CPU power down mode cancellation
(1) Execution commenced from address 0 by CPU resetting.
(IDLE, PD, and HPD mode cancellation)
* RESET pin is used
(2) Execution from interrupt address by interrupt request, or execution resumed from next
address after the stop address. (IDLE and PD mode cancellation)
* External, timer, and serial port interrupts
• I/O control registers (0F8H)
b0: Port 0, 1, 2, and 3 floating setting (PD, HPD)
b1: Port 1 high impedance input port setting
b2: Port 2 high impedance input port setting
b3: Port 3 high impedance input port setting
b4: Port 1, 2, and 3 pull-up resistance switching (10 kW pull-up resistance switch off to
leave only 100 kW)
b5: Serial port reception error detector bit
b6: 32-bit timer mode setting (TL0+TH0+TL1+TH1)
2.2.2 MSM85C154HVS pin layout and external dimensions
M85C154H
2764/27128
Pin 1 for 2764, 27128
* The MSM85C154HVS pin layout of bottom side is the same as the pin layout for
MSM83C154SRS.
OKI
JAPAN XXXX
* The 27C64/128 device should be used for EPROM.
40-Pin Ceramic Piggy Back (ADIP40-C-600-2.54)
Figure 2-4 MSM85C154HVS pin layout and external dimensions
17
MSM80C154S/83C154S/85C154HVS
2.3 MSM80C154S Block Diagram
18
P2.0
PORT 2
P2.7
P0.0
PORT 0
Figure 2-5 MSM80C154S block diagram
P0.7
OSC AND TIMING
XTAL1
PCONIOCON
PCHLPCLL
XTAL2
ALE
PSEN
EA
RESET
T2CONTL2
P1.0
PORT 1
P1.7
P3.0
PORT 3
TH1
P3.7
DPH
CONTROL SIGNALSIGNALR/W
SPECIAL
FUNCTION
DPL
PLA
REGISTER
ADDRESS
DECODER
SP
PCH
PCL
IRAIR
C-ROM
2H
R/W AMP
256WORD
×8bit
ACCTR2TR1
RAMDP
PSW
INTERRUPT
SBUF
(T)
ALU
SBUF
(R)
SERIAL IO
BR
TH2
TIMER/
COUNTER 2
RCAP
RCAP
2L
TL1TH0TL0TMODTCONIEIPSCON
TIMER/COUNTER 0&1
2.4 MSM83C154S Block Diagram
19
P2.0
PORT 2PORT 0PCONIOCON
P2.7
P0.0
Figure 2-6 MSM83C154S block diagram
P0.7
XTAL1
OSC AND TIMING
PCHLPCLL
XTAL2
ALE
PSEN
EA
RESET
T2CONTL2
P1.0
PORT 1PORT 3
P1.7
P3.0
TH1
P3.7
DPH
CONTROL SIGNALSIGNALR/W
SPECIAL
ROM
16KWORD
×8bit
DPL
PLA
FUNCTION
REGISTER
ADDRESS
DECODER
SP
IRAIR
PCH
SENSE AMP
PCL
C-ROM
2H
R/W AMP
256WORD
×8bit
ACCTR2TR1
RAMDP
PSW
INTERRUPT
SBUF
(T)
ALU
SBUF
(R)
SERIAL IO
BR
TH2
TIMER/
COUNTER 2
RCAP
RCAP
2L
TL1TH0TL0TMODTCONIEIPSCON
TIMER/COUNTER 0&1
SYSTEM CONFIGURATION
MSM80C154S/83C154S/85C154HVS
2.5 MSM85C154HVS Block Diagram
20
P2.0
PORT 2PORT 0PCONIOCON
P2.7
P0.0
Figure 2-7 MSM85C154HVS block diagram
P0.7
XTAL1
OSC AND TIMING
PCHLPCLL
XTAL2
ALE
PSEN
EA
RESET
T2CONTL2
P1.0
PORT 1PORT 3
P1.7
P3.0
TH1
TL1TH0TL0TMODTCONIEIPSCON
P3.7
PCH
PCL
TIMER/
COUNTER 2
RCAP
2L
TIMER/COUNTER 0&1
SOCKET
A0
EXTERNAL
A13
16KWORD
×8bit
D0 ... D7
TH2
RCAP
2H
ROM
R/W AMP
256WORD
×8bit
DPH
DPL
SP
RAMDP
INTERRUPT
CONTROL SIGNALSIGNALR/W
SPECIAL
FUNCTION
PLA
REGISTER
ADDRESS
DECODER
IRAIR
ACCTR2TR1
PSW
SBUF
(T)
ALU
SBUF
(R)
SERIAL IO
C-ROM
BR
SYSTEM CONFIGURATION
2.6 Timing and Control
2.6.1 Outline of MSM80C154S/MSM83C154S timing
The MSM80C154S/MSM83C154S devices are both equipped with a built-in oscillation
inverter (see Figure 2-8) for use in the generation of clock pulses by external crystal or ceramic
resonator. These clock pulses are passed to the timing counter and control circuits where the
basic timing and control signals required for internal control purposes are generated.
The basic timing consists of state 1 (S1) thru state 6 (S6) (see Figure 2-9) where each state
cycle is based on two XTAL1·2 fundamental clock pulses. The interval from S1 thru S6 forms
a single machine cycle with a total of 12 fundamental clock pulses. 1-byte 1-machine cycle
and 2-byte 1-machine cycle instructions are fetched into the instruction register during
M1·S1, decoded during M1·S2, and executed during M1·S3 thru M1·S6. The second byte is
fetched during M1·S4. 1-byte 2-machine cycle, 2-byte 2-machine cycle, and 3-byte 2machine cycle instructions are also fetched during M1·S1, decoded during M1·S2, and
executed during M1·S3 thru M2·S6. The second and third bytes are fetched during M1·S4,
M2·S1, or M2·S4. The number of clocks used is 24. 1-byte 4-machine cycle instructions are
involved in multiplication and division operations where 48 clocks are used.
S1S2S3S4S5S6
XTAL2
XTAL1
RESET
INT
DQ
Figure 2-8 Oscillator, timing counter, and control stage block diagram
DQDQDQDQDQ
S I/O & TIMER CONTROL
CPU CONTROL
1/2
1/2
POWER DOWN
IDLE
S I/O
TIMER & INTERRUPT
CPU
PLA
PLA OUT
21
MSM80C154S/83C154S/85C154HVS
M1
Instruction excecution
TM+1
M2
M1
M1
S1 S2 S3 S4 S5 S6
S1 S2 S3 S4 S5 S6
S1 S2 S3 S4 S5 S6
DPL & Rr
PCLPCLPCLPCLPCLPCLACC & RAM
PORT NEW DATA
DATA STABLEDATA STABLE
PORT OLD DATA
Instruction decoding
Instruction decoding
PC+1PC+1
Instruction excecution
PC+1
Instruction excecution
TM+1TM+1
TM+1
CYCLE
S1 S2 S3 S4 S5 S6
STEP
1
XTAL1
PCHPCHPCHPCHDPH & PORT DATAPCHPCHPCH
0
1
0
1
0
1
0
1
0
1
0
1
0
ALE
PSEN
RD/WR
PORT–0
PORT–2
CPU←PORT
Instruction decoding
1
0
PORT←CPU
Figure 2-9 MSM80C154S/MSM83C154S fundamental timing
22
PC+1PC+1
SYSTEM CONFIGURATION
2.6.2 Major synchronizing signals
(1) ALE (Address Latch Enable)
The ALE signal is used as a clock signal where the address signals 0 thru 7 output from
CPU port 0 can be latched externally when external program or external data memory
(RAM) is used.
Although two ALE signal outputs are obtained in a single machine cycle during normal
operations, no output is obtained during output of the RD/WR signal when an external
memory instruction (MOVX...... ) is executed.
(2) PSEN (Program Store Enable)
The PSEN output signal is generated during execution of an external program. The
output is obtained when an instruction or data is fetched.
The PSEN signal is valid when at “0” level, and external program data is enabled when
in this valid state.
Although two PSEN signal outputs are obtained in a single machine cycle during
normal operations, no output is obtained during output of the RD/WR signal when an
external data memory instruction (MOVX...... ) is executed.
(3) WR (Write Strobe)
The WR output signal is obtained when an external data memory instruction (MOVX
@Rr, A or MOVX @ DPTR, A) is executed.
CPU port 0 output data is written in the external RAM when the WR signal is at “0” level.
(4) RD (Read Strobe)
The RD output signal is obtained when an external data memory instruction (MOVX
A, @ Rr or MOVX A, @ DPTR) is executed.
The external RAM is enabled and output data is passed to CPU port 0 when the RD
signal is at “0” level.
23
Loading...
+ 348 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.