User ManualTable of ContentsCONTENTS3INTRODUCTION8MSM80C154S/MSM83C154S/MSM85C154HVS Outline10MSM80C154S/MSM83C154S Features12Additional Features in MSM80C154S/MSM83C154S/MSM85C154HVS14SYSTEM CONFIGURATION16MSM80C154S/MSM83C154S/MSM85C154HVS Logic Symbols18MSM80C154S/MSM83C154S Pin Layout19MSM80C154S/MSM83C154S external dimensions22MSM85C154HVS pin layout and external dimensions24MSM80C154S Block Diagram25MSM83C154S Block Diagram26MSM85C154HVS Block Diagram27Timing and Control28Outline of MSM80C154S/MSM83C154S timing28Major synchronizing signals30ALE30PSEN30WR30RD30MSM80C154S fundamental operation time charts31External program memory read cycle timing chart31MOVX A, @Rr31MOVX @Rr, A32MOVX A, @DPTR32MOVX @DPTR, A33MOV direct, PORT[0, 1, 2, 3] execution33MSM83C154S fundamental operation time charts34MOVX A, @Rr34MOVX @Rr, A34MOVX A, @DPTR35MOVX @DPTR, A35MOV direct, PORT[0, 1, 2, 3] execution36Instruction Register (IR) and Instruction Decoder (PLA)37Arithmetic Operation Section38Outline38Arithmetic operation instruction decoder38Arithmetic and logic unit (ALU)38Program Counter39Program Memory and External Data Memory40MSM80C154S/MSM83C154S program area and external ROM connections40Procedures and circuit connections used when external data memory (RAM) is accessed by data pointer (DPTR)42Procedures and circuit connections used when external data memory (RAM) is accessed by registers R0 and R145CONTROL48Oscillators [XTAL1 .2]50CPU Resetting52Outline52Reset Schmitt trigger circuit57CPU internal status by reset58EA(CPU Memory Separate)59Outline59Internal ROM mode59External ROM mode59INTERNAL SPECIFICATIONS60Internal Data Memory (RAM) and Special Function Registers62Outline62Internal Data Memory (RAM)64Internal data memory (RAM)64Internal data memory registers R0 thru R766Stack67Internal Data Memory (RAM) Operating Procedures68Internal data memory indirect addressing68Internal data memory register R0 thru R7 designation69Internal data memory 1-bit data designation70Special Function Registers(TCON, SCON,...ACC, B)72Outline72Special function registers74Timer mode register (TMOD)74Power control register (PCON)75Timer control register (TCON)76Serial port control register (SCON)77Interrupt enable register (IE)78Interrupt priority register (IP)79Program status word register (PSW)80I/O control register (IOCON)81Timer 2 control register (T2CON)82Timer/Counters 0, 1, and 283Outline83Timer/counters 0 and 183Outline83Timer/counter 0 and 1 counting control83Timer/counter 0 and 1 count clock designation85External clock detector circuit for timer/counters 0 and 186Counting control of timer/counters 0 and 1 by INT pin87Timer/counters 0/1 timer modes89Outline89Mode 089Mode 191Mode 293Mode 39532-bit timer mode96Caution about use of timer counters 0 and 197Caution about use of timer counters 0 and 1 when setting software power down mode98Timer/counter 299Outline99Timer 2 control register (T2CON)99Timer/counter 2 operation modes10016-bit auto reload mode10016-bit capture mode10116-bit baud rate generator mode102Timer/counter 2 detector circuit104T2(timer/counter 2 external clock detector)104T2EX(timer/counter 2 external flag input detector)104Timer/counter carry signal detector circuit105Serial Port106Outline106Special function registers for serial port108SCON108SBUF110TCLK110RCLK110SMOD111SERR112Operating modes113Mode 0113Outline113Mode 0 baud rate113Mode 0 transmit operation113Mode 0 receive operation113Mode 1117Outline117Mode 1 baud rate117Mode 1 transmit operation118Mode 1 receive operation118Mode 1 UART error detection119Mode 2122Outline122Mode 2 baud rate122Mode 2 transmit operation122Mode 2 receive operation122Mode 2 UART error detection123Mode 3126Outline126Mode 3 baud rate126Mode 3 transmit operation127Mode 3 receive operation.127Mode 3 UART error detection128Serial port application examples131I/O extension131Multi-processor systems135Interrupt136Outline136Interrupt enable register (IE)138Interrupt priority register (IP)139Priority interrupt routine flow140Interrupt routine flow when priority circuit is stopped141Interrupt priority when priority register (IP) contents are all "0"142Detection of external interrupt signals INT0 and INT1143Outline of INT signal detection143External interrupt signal 0 and 1 level detection143External interrupt signal 0 and 1 trigger detection144MSM80C154S/MSM83C154S interrupt response time charts145Interrupt response time chart-1145Interrupt response time chart-2147Interrupt response time chart-3149Interrupt response time chart-4151CPU "Power Down"153Outline153Idle mode (IDLE) setting153Soft power down mode (PD) setting158Caution about software power down mode setting158Hard power down mode (HPD) setting168CPU Power Down Mode (IDLE, PD, and HPD) Cancellation (CPU Activation)176Outline176Cancellation by CPU resetting (RESET pin)176Cancellation of CPU power down mode(IDLE, PD)by interrupt signal183Cancellation of CPU power down mode (IDLE, PD) from interrupt address183Cancellation of CPU power down mode (IDLE, PD) by interrupt request signal and restart from next address of stop address189MSM80C154S/83C154S Battery Backup with Hard Power Down Mode194INPUT/OUTPUT PORTS197Outline199Port 0199Port 1202Port 2208Port 3210Port 0, 1, 2, and 3 Output and Floating Status Settings in CPU Power Down Mode (PD, HPD)212High Impedance Input Port Setting of Each Quasi-bidirectional Port 1, 2, and 3214100 kW Pull-Up Resistance Setting for Quasi-bidirectional Input Ports 1, 2, and 3214Precautions When Driving External Transistors by Quasi-bidirectional Port Output Signals215Port Output Timing217One machine cycle instruction output timing217Two machine cycle instruction output timing218Port Data Manipulating Instructions219ELECTRICAL CHARACTERISTICS221Absolute Maximum Ratings223Operational Ranges.223DC Characteristics224External Program Memory Access AC Characteristics228External Data Memory Access AC Characteristics230Serial Port (I/O Extension Mode) AC Characteristics232AC Characteristics Measuring Conditions234XTAL1 External Clock Input Waveform Conditions235DESCRIPTION OF INSTRUCTIONS236Outline238Description of Instruction Symbols239List of Instructions.240Simplified Description of Instructions241Detailed Description of MSM80C154S/MSM83C154S Instructions253Size: 1.9 MBPages: 378Language: EnglishOpen manual