MSM80C154S MSM83C154S
Page
Contents
2.5.4
Reset Schmitt trigger circuit CPU internal status by reset
2.5.2
2.5.3
Special function registers for serial port 101 2.1
Power down mode
3.4.2 T2EXtimer/counter 2 external flag input detector
3.1
142
Multi-processor systems 128
129
140
210
KW Pull-Up Resistance Setting for Quasi-bidirectional Input
207
208
Introduction
Page
MSM80C154S/MSM83C154S/MSM85C154HVS Outline
Introduction
MSM80C154S/83C154S/85C154HVS
MSM80C154S/MSM83C154S Features
MSM80C154S/83C154S/85C154HVS
Additional Features in MSM80C154S/MSM83C154S/MSM85C154HVS
MSM80C154S/83C154S/85C154HVS
System Configuration
Page
MSM80C154S/MSM83C154S/MSM85C154HVS Logic Symbols
MSM80C154SRS/MSM83C154SRS
MSM80C154S/MSM83C154S pin layouts
MSM80C154S/MSM83C154S pin layout top view
Applicable Packages
MSM80C154S/MSM83C154S external dimensions
1 MSM80C154S/MSM83C154S external dimensions
MSM80C154STS/MSM83C154STS
MSM85C154HVS pin layout and external dimensions
2 MSM85C154HVS pin layout and external dimensions
Register Address
Signal
TIMER/COUNTER 0&1 Interrupt Serial IO
Special Function
TH1 TL1 TH0 TL0 Tmod Tcon
ROM Special
DPL PLA Register Address
Sense AMP
TH1 TL1 TH0 TL0
Signal DPH
T2CON TL2 TH2 AMP ACC TR2 TR1
Address Decoder
Outline of MSM80C154S/MSM83C154S timing
Timing and Control
9MSM80C154S/MSM83C154S
Timing
Major synchronizing signals
Movx A, @Rr
External program memory read cycle timing chart
XTAL1 ALE Psen Inst PORT-0 PCL OUT PORT-2 PCH OUT
13 MSM80C154S Movx A, @DPTR execution
12 MSM80C154S Movx @Rr, a execution
XTAL1 ALE Psen
MOV direct, Port 0, 1, 2, 3 execution
PIN Data CPU Data PIN Data Stable Sampled
16 MSM83C154S Movx A, @Rr execution
4 MSM83C154S fundamental operation time charts
19 MSM83C154S Movx @DPTR, a execution
18 MSM83C154S Movx A, @DPTR execution
20 MSM83C154S MOV direct, PORT0, 1, 2, 3 execution
PIN Data PIN Data Stable CPU Data Sampled
PLA WIR
Instruction Register IR and Instruction Decoder PLA
AIR
PLA Wair
PSW0D0H CY AC F0 RS1 RS0 OV F1 P
Arithmetic Operation Section
CPU Internal Data BUS
Program Counter
24 MSM80C154S/MSM83C154S program area
Program Memory and External Data Memory
ALE Latch
System Configuration
Dptr
XTAL1 ALE Psen
Page
By register R0 or R1
MSM80C154S/MSM83C154S
Data
Control
Page
Oscillators XTAL1 XTAL2
Crystal resonator connection diagram
Clock XTAL2
Supply of 50% duty clock
CPU Reset Control
CPU Resetting
Outline
5Resetexecution
ROM mode
Chart
Chart
XTAL1 Psen ALE
Reset Schmitt trigger gate detector time chart
MSM80C154S/83C154S/85C154HVS Reset Schmitt trigger circuit
Denotes direct resetting even if XTAL1·2 has stopped
CPU internal status by reset
MSM80C154S/MSM83C154S reset internal status
EA CPU Memory Separate
Internal Specifications
Page
Internal Data Memory RAM and Special Function Registers
Internal Specifications
Data memory and special function register layout
Internal data memory RAM
Internal Data Memory RAM
RAM layout diagram
User Data RAM
Internal data memory registers R0 thru R7
Program status word PSW
RS0
PC1
MSM80C154S/83C154S/85C154HVS Stack
Stack storage layout
PC5
Internal data memory indirect addressing
Lnternal Data Memory RAM Operating Procedures
DEC Rr bit arrangement Register designation table
CLR bit address bit arrangement
Internal data memory 1-bit data designation
2EH
Bit designation table
Addressing combination table
2AH 2BH
Special Function Registers TCON, SCON,.... ACC, B
List of special function registers
Special function registers 4.4.2.1 Timer mode register Tmod
MSM80C154S/83C154S/85C154HVS Power control register Pcon
Timer control register Tcon
SCON.0
SCON.6 SM1 SM0 Mode
MSB LSB Scon
SM0 SM1 SM2 REN TB8 RB8
ET2
Interrupt enable register IE
MSB LSB
ET2 ET1 EX1 ET0 EX0
PCT PT2 PT1 PX1 PT0 PX0
MSM80C154S/83C154S/85C154HVS Interrupt priority register IP
PCT
Program status word register PSW
MSM80C154S/83C154S/85C154HVS 2.8 I/O control register Iocon
TF2
Timer 2 control register T2CON
TF2 EXF2
EXEN2
Timer control register Tcon 88H
Timer/Counters 0, 1 and 2 4.5.1 Outline
Timer/counters 0 and 1 4.5.2.1 Outline
Timer/counter 0 and 1 counting control
Overall clock input control
Circuit for timer/counters 0
Timer mode register Tmod 89H
Timer
External clock detector circuit for timer/counters 0
PD & HPD
Detector circuit operational time chart
Counting control of timer/counters 0 and 1 by INT pin
Timer Gate TR0 INT0 RUN Stop TR1 INT1
Timer Clock
Detector
Timer Counter
11 Timer mode register Tmod 89H
Mode
Latch Detector TF1 TL1 TH1 5BITS 8BITS O Clock
T0 PIN Detector Port TR0 Gate INT0 PIN Data
Detector TF0 TL0 TH0 5BITS 8BITS
T1 PIN Detector Port TR1 Gate INT1 PIN Data
MSM80C154S/83C154S/85C154HVS Mode
TH1 8BITS O Clock
Detector TF0
TH0 8BITS
Latch Detector TF1
MSM80C154S/83C154S/85C154HVS Mode
Reload Data Xtal
T0 PIN Detector Port TF0
8BITS TR0 Gate
INT0 PIN 8BITS Data
TH0 C 8BITS
Detector TF0 T0 PIN Detector Port TR0 Gate INT0 PIN Data
Latch Xtal
TL0 8BITS Detector TF1
Serr IZC
2.5.6 32-bit timer mode
T0 PIN Detector
Iocon 0F8H
19 T0, T1 external clock detector circuit
Timer Reset
Internal Specifications
12 Timer 2 control register T2CON 0C8H
Mode 1 or 3 has been set
Bit is 0, and valid when
To 0 by software
Must be reset to 0 by software
Timer/counter 2 operation modes
3.3.1 16-bit auto reload mode
TL2 TH2 BIT
3.3.2 16-bit capture mode
TR2 Detector EXEN2 RCAP2L RCAP2H TF2 Timer EXF2 Interrupt
RCLK=0 TCLK=0
21 Timer/counter 2 16-bit capture mode circuit
3.3.3 16-bit baud rate generator mode
Baud
Reset Timer Counter Clock
3.4.2 T2EX timer/counter 2 external flag input detector
Reset Timer Counter T2EX
Detector PD & HPD O Clock
Timer/counter detector circuit
Serial Port
RX Control Input Shift Register
100
Sbuf R
Internal Specifications
15 Scon
102
16 Serial port operation modes
Sbuf serial port buffer register
Tclk
Rclk
MSM80C154S/83C154S/85C154HVS Smod
Serr
Mode 0 transmit operation
Mode 0 baud rate
Mode 0 receive operation
107
Port mode
Timing chart
Serial port mode
108
109
Mode 1 baud rate
MSM80C154S/83C154S/85C154HVS Mode Outline
Mode 1 receive operation
Mode 1 transmit operation
MSM80C154S/83C154S/85C154HVS Mode 1 Uart error detection
113
Internal BUS TIMER/COUNTER1 SMOD=1 Overflow SMOD=0
Start Serr RXD
114
Mode 2 receive operation
Mode Outline
Mode 2 baud rate
Mode 2 transmit operation
Mode 2 Uart error detection
Baud Rate SMOD=1 Clock XTAL1·2 Couter SMOD=0 Serial Port
Internal BUS Write Start TBB Sbuf TXD To Sbuf
118
Mode 3 baud rate
Mode 3 receive operation
Mode 3 transmit operation
Mode 3 Uart error detection
122
123
RX.X TXD
QHSHIFT/ Load Serial Clock
Inhibit F E D C B a Input
RXD PX.X TXD
PX.X RXD TXD
Qhqg QF QE Qdqc QB QA
CLK
RXD TXD PX.X
RXD Input PX.X Control TXD
126
SHIFT/ Load Serial Clock
Output PX.X Control
127
42 lnput/output extension example timing chart
TXD RXD
MSM80C154S/83C154S/85C154HVS Multi-processor systems
Master Slave
18 lnterrupt addresses
Interrupt
Interrupt control
130
Equivalent circuit
ET1
19 lnterrupt enable register IE, 0A8H
20 nterrupt priority register IP, 0B8H
PX1
Priority interrupt routine flow
Clrea
21 Non-priority interrupt order of preference
IE1 IT1 IE0 IT0
External interrupt signal 0 and 1 level detection
22 TCON88H register
TF1 TR1 TF0
BUS Tcon Reset
External interrupt signal 0 and 1 trigger detection
Page
139
Page
141
Page
143
Page
145
Idle mode Idle setting
CPU Power Down
147
Xtal TIMER, S-I/O Interrupt
Xtal Control PCON, 87H Smod HPD RPD GF1 GF0 IDL
148
23 CPU pin details in idle mode
149
Idle
150
55Idlemodesettingtime
Soft power down mode PD setting
Pcon 87H Control Smod HPD RPD GF1
Mode equivalent circuit
152
CPU Clock
153
Pdreset
Reset END
PCON5RPD Pdreset
154
TIMER0
155
24 CPU pin details ALF=0 in soft power down mode PD
Time chart internal ROM mode
Soft power down mode setting
156
Soft
158
25 CPU pin details ALF=1 in soft power down mode PD
159
Down
160
63Softpowerdownmodesetting
Hard power down mode HPD setting
162
Hard power down
Xtal Hpdi Control Pcon 87H Smod HPD RPD GF1 GF0 IDL
163
26 CPU pin details ALF=0 in hard power down mode HPD
Mode
164
165
166
27 CPU pin details ALF=1 in hard power down mode HPD
167
168
68Hardpowerdownmodesetting
Cancellation by CPU resetting Reset pin
170
By reset internal ROM mode
MSM80C154S/83C154S/85C154HVS
171
172
173
By reset external ROM mode
174
Mode by reset internal ROM mode
175
Mode by reset external ROM mode
Smod HPD RPD GF1 GF0 IDL
29 Power control register Pcon 87H
177
IDLE, PD Mode Interrupt Restart
INT
179
180
Internal ROM mode
181
IDLE, PD Mode Restart Mode SET Smod HPD RPD GF1 GF0
OUT Level Sense
Or 1 external ROM mode
Restart from idle mode by
184
185
Or 1 internal ROM mode
186
External ROM mode
Internal Specifications
188
Back up with hard power down mode
Back
189
190
INPUT/OUTPUT Ports
Page
Port
Outline
Port 0 internal equivalent circuit
Internal BUS Read
193
WPO Modify
Port 0 pin table
194
Port
Control Modify Port Read WP1
196
Port 1 internal equivalent circuit
OFF
197
Internal BUS Read OFF
198
On P3 On P2 Internal BUS Readoff N
199
Port 1 CPU control pin table
200
Port 1 pin table
DPH Port Read Modify WP2 Control
PC/DATA
Port 2 internal equivalent circuit
PORT2
202
WP3
Internal BUS Control Modify Read Data
Port 3 CPU control pin function table
204
Port 3 pin table
INPUT/OUTPUT Ports
206
Power Down Iocon 0F8H
Modify Port Read Internal BUS
INPUT/OUTPUT Ports
12 NPN transistor direct connection circuit
CPU 1 OUT
CPU 0 OUT
209
One machine cycle instruction output timing
Port Output Timing
Two machine cycle instruction output timing
16 Two machine cycle instruction port output time chart
Port Data Manipulating Instructions
213
214
MSM80C154/83C154/85C154
Electrical Characteristics
Operational Ranges
Absolute Maximum Ratings
SSV IV CC
DC Characteristics
VCC=4.0 to 6.0V,VSS=0V, Ta=-40C to +85C
Port 0, ALE, Psen
218
219
DC Characteristics
Input logic for specified status
Repeated for specified input pins
Repeated for specified output pins
Measuring circuits
External Program Memory Access AC Characteristics
Instr
222
External program memory read cycle
ALE Psen Port
Output
External Data Memory Access AC Characteristics
External data memory read cycle
224
External data memory write cycle
Output Data Setup to Clock Rising Edge TQVXH
Machine Cycle ALE Shift Clock Output Data Input Data
226
Test Point
AC Characteristics Measuring Conditions
Input/output signal
Floating
XTAL1 External Clock Input Waveform Conditions
Exterminal Oscillator Signal
Description of Instructions
Page
Description of Instructions
Description of Instruction Symbols
MSM80C154S/MSM83C154S
List of Instructions
Instruction table
Address in this description
Simplified Description of Instructions
CLR a CPL a RL a RLC a RR a RRC a Swap a
235
236
MOV
XRL
Setb
238
MOV Dptr
CLR
Movc A, @A+PC
239
240
JMP @A+DPTR
Interrupt Enable Ajmp
Ljmp
Sjmp
Then Else Cjne
242
Then Else Djnz
243
244
NOP
245
External RAM
Movx A, @DPTR
Acall code address Absolute call within 2K bytes
Detailed Description of MSM80C154S/MSM83C154S Instructions
247
ADD A, #data Add immediate data
RS1
248
MSM80C154S/83C154S/85C154HVS ADD A, @Rr Add indirect address
249
ADD A, Rr Add register
250
MSM80C154S/83C154S/85C154HVS ADD A, data address Add memory
251
Addc A, #data Add carry plus immediate data to accumulator
252
253
ADD A, Rr Add carry plus register to accumulator
254
255
Ajmp code address Absolute jump within 2K byte
256
257
ANL A, @Rr Logical and indirect address to accumulator
258
259
ANL A, data address Logical and memory to accumulator
260
261
ANL C,/bit address Logical and complement bit to carry flag
262
263
ANL data address, a Logical and accumulator to memory
264
Compcjne @R1, #05H, Test
265
LOC OBJ Source
Testajmp TEST1
266
Compcjne A, #0AH, SS1
267
Cjne A, #0AH, SS1 LOC OBJ Source
SS1MOV R7, a
268
Callcall Test
269
Cjne A, 50H, Next LOC OBJ Source
Compcjne A, 50H, Next
Compared data is not equal. If the compared data is equal
270
Countinc R4
271
272
MSM80C154S/83C154S/85C154HVS CLR a Clear accumulator
273
CLR C Clear carry flag
274
MSM80C154S/83C154S/85C154HVS CLR bit address Clear bit
275
CPL a Complement accumulator
276
MSM80C154S/83C154S/85C154HVS CPL C Complement carry flag
277
CPL bit address Complement bit
278
MSM80C154S/83C154S/85C154HVS DA a Decimal adjust accumulator
279
280
281
DEC a Decrement accumulator
282
MSM80C154S/83C154S/85C154HVS DEC Rr Decrement register
283
DEC data address Decrement memory
284
MSM80C154S/83C154S/85C154HVS DIV AB Divide accumulator by B
AC F0 RS1 RS0 OV F1
285
Countdjnz R1, Loop
286
Djnz R1, Loop LOC OBJ Source
Loopadd A, R7
287
Djnz 57H, Loop LOC OBJ Source
288
Countdjnz 57H, Loop
289
INC @Rr Increment indirect address
290
MSM80C154S/83C154S/85C154HVS INC a Increment accumulator
DPH DPL
INC Dptr Increment data pointer
291
RS1 RS0 PSW
292
MSM80C154S/83C154S/85C154HVS INC Rr Increment register
293
INC data address Increment memory
294
Bittsjb 34.3, Enter
295
ACA0 Entermov R4, 0A0H
296
297
298
Carryinc @R1
299
Checkacall Addr
Jmpcjc Carry
Byte Description
300
301
JNB bit address, code address Jump if bit is not set
Testjnb 37.3, Exit
302
Exitmov A, @R0
303
JNC code address Jump if carry is not set
Testjnc Exit
304
Exitmov B, ACC
305
JNZ code address Jump if accumulator is not
Testmov R3, a
306
JNZ Test LOC OBJ Source
Checkjnz Test
307
JZ code address Jump if accumulator is not
Checkjz Empty
308
JZ Empty LOC OBJ Source
Emptyinc a
309
Lcall code address Long call
310
MSM80C154S/83C154S/85C154HVS Ljmp code address Long jump
311
MOV @Rr, #data Move immediate data to indirect address
6AH
6CH
312
313
MOV @Rr, data address Move memory to indirect address
314
315
MOV A, @Rr Move indirect address to accumulator
316
317
MOV A, data address Move memory to accumulator
318
319
MOV DPTR, #data Move immediate data to data pointer
DPH·DPL
320
321
MOV Rr, a Move accumulator to register
5AH
322
323
MOV bit address, C Move carry flag to bit
324
325
MOV data address, @Rr Move indirect address to memory
326
327
MOV data address, Rr Move register to memory
6BH
328
Movc A, @A+DPTR
329
330
62CCH
331
332
DPL DPH
333
57AFH
334
335
MUL AB Multiply accumulator by B
336
MSM80C154S/83C154S/85C154HVS NOP No operation
337
ORL A, #data Logical or immediate data to accumulator
338
339
ORL A, Rr Logical or register to accumulator
340
341
ORL C, bit address Logical or bit to carry flag
342
343
ORL data address, #data Logical or immediate data to memory
344
345
POP data address Pop stack to memory
346
347
RET Return from subroutine, non interrupt
348
349
RL a Rotate accumulator left
RS1 RS0 OV F1 P PSW
350
351
RR a Rotate accumulator right
352
353
Setb C Set carry flag
354
MSM80C154S/83C154S/85C154HVS Setb bit address Set bit
355
Sjmp code address Short jump
Sjumpsjmp Check
356
Checkrlc a
357
358
359
Subb A, Rr Substract register from accumulator with borrow
360
361
Swap a Exchange nibble in accumulator
362
363
XCH A, Rr Exchange register with accumulator
7AH
364
365
366
367
368
369
370
371