¡ Semiconductor MSM80C154S/83C154S ¡ Semiconductor MSM80C154S/83C154S CMOS 8-bit Microcontroller GENERAL DESCRIPTION The MSM80C154S/MSM83C154S, designed for the high speed version of the existing MSM80C154/MSM83C154, is a higher performance 8-bit microcontroller providing low-power consumption. The MSM80C154S/MSM83C154S covers the functions and operating range of the existing MSM80C154/83C154/80C51F/80C31F.
MSM80C154S/83C154S • Package options 40-pin plastic DIP (DIP40-P-600-2.54) ¡ Semiconductor : 44-pin plastic QFP (QFP44-P-910-0.80-2K) : 44-pin QFJ (QFJ44-P-S650-1.27) : 44-pin TQFP (TQFP44-P-1010-0.
PORT 2 P0.7 PORT 0 P0.0 PCHL XTAL1 PCH ALE PSEN EA PORT 1 PORT 3 P3.7 R/W DPL PLA SP IR SPECIAL FUNCTION REGISTER ADDRESS DECODER 16K WORDS x 8BITS PCL SENSE AMP SIGNAL AIR TH1 TL2 TIMER/ COUNTER 2 RCAP2L TL1 TH0 TH2 R/W AMP RCAP2H RAM 256 WORDS x 8BITS TL0 TIMER/COUNTER 0 & 1 TMOD ACC TR1 TR2 RAMDP BR PSW TCON IE INTERRUPT ALU IP SBUF(T) SBUF(R) SERIAL IO SCON 261 MSM80C154S/83C154S P3.0 SIGNAL ROM PCON T2CON RESET P1.
MSM80C154S/83C154S ¡ Semiconductor PIN CONFIGURATION (TOP VIEW) P1.0/T2 1 40 VCC P1.1/T2EX 2 39 P0.0 P1.2 3 38 P0.1 P1.3 4 37 P0.2 P1.4 5 36 P0.3 P1.5 6 35 P0.4 P1.6 7 34 P0.5 P1.7 8 33 P0.6 RESET 9 32 P0.7 P3.0/RXD 10 P3.1/TXD 11 31 30 EA ALE P3.2/INT0 12 29 PSEN P3.3/INT1 13 28 P2.7 P3.4/T0 14 27 P2.6 P3.5/T1/HPDI 15 26 P2.5 P3.6/WR 16 25 P2.4 P3.7/RD 17 XTAL2 18 24 23 P2.3 P2.2 XTAL1 19 22 P2.1 VSS 20 21 P2.
¡ Semiconductor MSM80C154S/83C154S 34 P0.3 35 P0.2 36 P0.1 37 P0.0 39 NC 40 P1.0 41 P1.1 42 P1.2 43 P1.3 44 P1.4 38 VCC PIN CONFIGURATION (Continued) P1.5 1 33 P0.4 P1.6 2 32 P0.5 P1.7 3 31 P0.6 RESET 4 30 P0.7 P3.0/RXD 5 29 EA NC 6 28 NC P3.1/TXD 7 27 ALE P3.2/INT0 8 26 PSEN P3.3/INT1 P2.4 22 P2.3 21 P2.2 20 P2.1 19 VSS 17 P2.0 18 VSS 16 23 P2.5 XTAL1 15 P3.5/T1/HPDI 11 XTAL2 14 24 P2.6 P3.7/RD 13 25 P2.7 P3.6/WR 12 9 P3.
34 P0.3 P1.5 1 33 P0.4 P1.6 2 32 P0.5 P1.7 3 31 P0.6 RESET 4 30 P0.7 P3.0/RXD 5 29 EA NC 6 28 NC P3.1/TXD 7 27 ALE P3.2/INT0 8 26 PSEN P3.3/INT1 44-Pin Plastic TQFP P2.4 22 P2.3 21 P2.2 20 P2.1 19 VSS 17 P2.0 18 VSS 16 23 P2.5 XTAL1 15 P3.5/T1/HPDI 11 XTAL2 14 24 P2.6 P3.7/RD 13 25 P2.7 P3.6/WR 12 9 P3.4/T0 10 NC : No-connection pin 264 35 P0.2 36 P0.1 39 NC 40 P1.0 41 P1.1 42 P1.2 43 P1.3 44 P1.4 37 P0.
¡ Semiconductor MSM80C154S/83C154S 29 P2.5 30 P2.6 25 P2.1 24 P2.0 23 NC 22 VSS 21 XTAL1 20 XTAL2 19 P3.7/RD 18 P3.6/WR P3.4/T0 16 33 ALE 34 NC 35 EA 36 P0.7 37 P0.6 31 P2.7 26 P2.2 P3.5/T1/HPDI 17 P1.4 6 27 P2.3 P3.3/INT1 15 P1.3 5 28 P2.4 P3.2/INT0 14 P1.2 4 P3.1/TXD 13 P1.1/T2EX 3 NC 12 P1.0/T2 2 P3.0/RXD 11 NC 1 P1.7 9 VCC 44 RESET 10 P0.0 43 38 P0.5 , 39 P0.4 P0.1 42 P1.6 8 P0.2 41 P1.5 7 P0.
MSM80C154S/83C154S ¡ Semiconductor PIN DESCRIPTIONS Symbol Descriptipn P0.0 to P0.7 Bidirectional I/O ports. They are also the data/address bus (input/output of data and output of lower 8-bit address when external memory is accessed). They are open-drain outputs when used as I/O ports, but 3-state outputs when used as data/address bus. P1.0 to P1.7 P1.0 to P1.7 are quasi-bidirectional I/O ports. They are pulled up internally when used as input ports.
¡ Semiconductor MSM80C154S/83C154S PIN Descriptions (Continued) Symbol Descriptipn RESET If this pin remains "H" for at least one machine cycle, the MSM80C154S/MSM83C154S is reset. Since this pin is pulled down internally, a power-on reset is achieved by simply connecting a capacitor between VCC and this pin. XTAL1 Oscillator inverter input pin. External clock is input through XTAL1 pin. XTAL2 Oscillator inverter output pin.
MSM80C154S/83C154S ¡ Semiconductor REGISTERS Diagram of Special Function Registers REGISTER NAME b7 b6 b5 IOCON FF FE FD BIT ADDRESS b4 b3 FC FB b2 b1 b0 DIRECT ADDRESS FA F9 F8 0F8H (248) B F7 F6 F5 F4 F3 F2 F1 F0 0F0H (240) ACC E7 E6 E5 E4 E3 E2 E1 E0 0E0H (224) PSW D7 D6 D5 D4 D3 D2 D1 D0 0CDH (205) TL2 0CCH (204) RCAP2H 0CBH (203) RCAP2L T2CON 0CAH (202) CF CE CD CC CB CA C9 C8 0C8H (200) IP BF BE BD BC BB BA B9 B8 0B8H (184) P3
¡ Semiconductor MSM80C154S/83C154S Special Function Registers Timer mode register (TMOD) NAME ADDRESS TMOD 89H BIT LOCATION FLAG TMOD.0 M0 TMOD.1 M1 TMOD.2 C/T TMOD.3 GATE TMOD.4 M0 TMOD.5 M1 TMOD.6 C/T TMOD.7 GATE MSB LSB 7 6 5 4 3 2 1 0 GATE C/T M1 M0 GATE C/T M1 M0 M1 M0 0 0 8-bit timer/counter with 5-bit prescalar. 0 1 16-bit timer/counter. 1 0 8-bit timer/counter with 8-bit auto reloading.
MSM80C154S/83C154S ¡ Semiconductor Power control register (PCON) NAME ADDRESS MSB LSB 7 6 5 SMOD HPD RPD 4 3 2 1 0 — GF1 GF0 PD IDL PCON 87H BIT LOCATION FLAG FUNCTION PCON.0 IDL IDLE mode is set when this bit is set to "1". CPU operations are stopped when IDLE mode is set, but XTAL1•2, timer/counters 0, 1 and 2, the interrupt circuits, and the serial port remain active. IDLE mode is cancelled when the CPU is reset or when an interrupt is generated. PCON.
¡ Semiconductor MSM80C154S/83C154S Timer control register (TCON) MSB LSB NAME ADDRESS TCON 88H BIT LOCATION FLAG FUNCTION TCON.0 IT0 External interrupt 0 signal is used in level-detect mode when this bit is "0" and in trigger detect mode when "1". TCON.1 IE0 Interrupt request flag for external interrupt 0. The bit is reset automatically when an interrupt is serviced. The bit can be set and reset by software when IT0 = "1". TCON.
MSM80C154S/83C154S ¡ Semiconductor Serial port control register (SCON) MSB LSB NAME ADDRESS SCON 98H BIT LOCATION FLAG SCON.0 RI "End of serial port reception" interrupt request flag. This flag must be reset by software during interrupt service routine. This flag is set after the eighth bit of data has been received when in mode 0, or by the STOP bit when in any other mode. In mode 2 or 3, however, RI is not set if the RB8 data is "0" with SM2 = "1".
¡ Semiconductor MSM80C154S/83C154S Interrupt enable register (IE) MSB LSB NAME ADDRESS IE 0A8H BIT LOCATION FLAG IE.0 EX0 Interrupt control bit for external interrupt 0. Interrupt disabled when bit is "0". Interrupt enabled when bit is "1". IE.1 ET0 Interrupt control bit for timer interrupt 0. Interrupt disabled when bit is "0". Interrupt enabled when bit is "1". IE.2 EX1 Interrupt control bit for external interrupt 1. Interrupt disabled when bit is "0". Interrupt enabled when bit is "1".
MSM80C154S/83C154S ¡ Semiconductor Interrupt priority register (IP) MSB LSB NAME ADDRESS IP 0B8H BIT LOCATION FLAG IP.0 PX0 Interrupt priority bit for external interrupt 0. Priority is assigned when bit is "1". IP.1 PT0 Interrupt priority bit for timer interrupt 0. Priority is assigned when bit is "1". IP.2 PX1 Interrupt priority bit for external interrupt 1. Priority is assigned when bit is "1". IP.3 PT1 Interrupt priority bit for timer interrupt 1.
¡ Semiconductor MSM80C154S/83C154S Program status word register (PSW) NAME ADDRESS MSB LSB 7 6 5 4 3 2 1 0 CY AC F0 RS1 RS0 OV F1 P PSW 0D0H BIT LOCATION FLAG PSW.0 P Accumulator (ACC) parity indicator. This bit is "1" when the "1" bit number in the accumulator is an odd number, and "0" when an even number. PSW.1 F1 User flag which may be set to "0" or "1" as desired by the user. PSW.
MSM80C154S/83C154S ¡ Semiconductor I/O control register (IOCON) MSB LSB NAME ADDRESS IOCON 0F8H BIT LOCATION FLAG IOCON.0 ALF IOCON.1 P1HZ Port 1 becomes a high impedance input port when this bit is "1". IOCON.2 P2HZ Port 2 becomes a high impedance input port when this bit is "1". IOCON.3 P3HZ Port 3 becomes a high impedance input port when this bit is "1". IOCON.
¡ Semiconductor MSM80C154S/83C154S Timer 2 control register (T2CON) NAME ADDRESS T2CON 0C8H MSB LSB 7 6 5 4 3 2 1 0 TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2 CP/RL2 BIT LOCATION FLAG T2CON.0 CP/RL2 FUNCTION T2CON.1 C/T2 Timer/counter 2 count clock designation control bit. The internal clocks (XTAL1•2 ÷ 12, XTAL1•2 ÷ 2) are used when this bit is "0", and the external clock applied to the T2 pin is passed to timer/counter 2 when the bit is "1". T2CON.
MSM80C154S/83C154S ¡ Semiconductor MEMORY MAPS Program Area 44 43 0 278 0FFFFH MSM83C154S EXTERNAL ROM AREA 16384 16383 MSM83C154S INTERNAL ROM AREA MSM80C154S EXTERNAL ROM AREA 65535 Timer interrupt 2 start 43 002BH S I/O interrupt start 35 0023H Timer interrupt 1 start 27 001BH External interrupt 1 start 19 0013H Timer interrupt 0 start 11 000BH External interrupt 0 start 3 0003H 2 0002H 1 0001H 0 0000H 4000H 3FFFH 002CH 002BH 7 6 5 4 3 2 1 0 CPU reset start
¡ Semiconductor MSM80C154S/83C154S Internal Data Memory and Special Function Register Layout Diagram SPECIAL FUNCTION REGISTERS REGISTER INDIRECT ADDRESSING HEX 0FF USER DATA RAM 80 7F IOCON B ACC PSW TH2 TL2 RCAP2H RCAP2L T2CON IP P3 IE P2 SBUF SCON P1 TH1 TH0 TL1 TL0 TMOD TCON PCON DPH DPL SP P0 FFH~F8H F7H~F0H E7H~E0H D7H~D0H CFH~C8H BFH~B8H B7H~B0H AFH~A8H A7H~A0H 9FH~98H 97H~90H 8FH~88H 87H~80H 248(0F8H) 240(0F0H) 224(0E0H) 208(0D0H) 205(0CDH) 204(0CCH) 203(OCBH) 202(0CAH) 200(0C8H) 184(0B
MSM80C154S/83C154S ¡ Semiconductor Diagram of Internal Data Memory (RAM) 0FFH 255 USER DATA RAM 127 USER DATA RAM 2FH 7F 7E 7D 7C 7B 7A 79 78 47 2EH 77 76 75 74 73 72 71 70 46 2DH 6F 6E 6D 6C 6B 6A 69 68 45 2CH 67 66 65 64 63 62 61 60 44 2BH 5F 5E 5D 5C 5B 5A 59 58 43 2AH 57 56 55 54 53 52 51 50 42 29H 4F 4E 4D 4C 4B 4A 49 48 41 28H 47 46 45 44 43 42 41 40 40 27H 3F 3E 3D 3C 3B 3A 39 38 39 26H 37 36 35 34 33
¡ Semiconductor MSM80C154S/83C154S ABSOLUTE MAXIMUM RATINGS Parameter Supply voltage Symbol Condition Rating Unit VCC Ta=25°C –0.5 to 7 V VI Ta=25°C –0.5 to VCC+0.5 V TSTG — –55 to +150 °C Condition Range Unit Input voltage Storage temperature RECOMMENDED OPERATING CONDITIONS Parameter Symbol Power supply voltage VCC See below 2.0 to 6.0 V Memory retension voltage VCC fOSC=0 Hz (Oscillation stop) 2.0 to 6.
MSM80C154S/83C154S ¡ Semiconductor ELECTRICAL CHARACTERISTICS DC Characteristics 1 Parameter Input Low Voltage Symbol VIL Condition — Except XTAL1, EA, (VCC=4.0 to 6.0 V, VSS=0 V, Ta=-40 to +85°C) MeasMin. Typ. Max. Unit uring circuit –0.5 — 0.2 VCC–0.1 V 0.2 VCC+0.9 — VCC+0.5 V Input High Voltage VIH Input High Voltage VIH1 XTAL1, RESET and EA 0.7 VCC — VCC+0.5 V VOL IOL=1.6 mA — — 0.45 V VOL1 IOL=3.2 mA — — 0.
¡ Semiconductor MSM80C154S/83C154S Maximum power supply current normal operation ICC (mA) VCC 4V 5V 6V 1 MHz 2.2 3.1 4.1 3 MHz 3.9 5.2 7.0 12 MHz 12.0 16.0 20.0 16 MHz 16.0 20.0 25.0 20 MHz 19.0 25.0 30.0 VCC 4.5 V 5V 6V 25.0 29.0 35.0 Freq Freq 24 MHz Maximum power supply current idle mode ICC (mA) VCC 4V 5V 6V 1 MHz 0.8 1.2 1.6 3 MHz 1.2 1.7 2.3 12 MHz 3.1 4.4 5.9 16 MHz 3.8 5.5 7.3 20 MHz 4.5 6.4 8.6 VCC 4.5 V 5V 6V 6.4 7.4 9.
MSM80C154S/83C154S ¡ Semiconductor DC Characteristics 2 Parameter Symbol Condition Input Low Voltage VIL — Input High Voltage VIH Input High Voltage VIH1 Output Low Voltage (PORT 1, 2, 3) Output Low Voltage (PORT 0, ALE, PSEN) Output High Voltage Output High Voltage (PORT 1, 2, 3) (PORT 0, ALE, PSEN) Logical 0 Input Current/ Logical 1 Output Current/ (PORT 1, 2, 3) Logical 1 to 0 Transition Output Current (PORT 1, 2, 3) Input Leakage Current (PORT 0 floating, EA) RESET Pull-down Resistance –0.
¡ Semiconductor MSM80C154S/83C154S Maximum power supply current normal operation ICC (mA) VCC 2.2 V 3.0 V 4.0 V 1 MHz 0.9 1.4 2.2 3 MHz 1.8 2.4 4.3 12 MHz — 8.0 12.0 16 MHz — — 16.0 Freq Maximum power supply current idle mode ICC (mA) VCC 2.2 V 3.0 V 4.0 V 1 MHz 0.3 0.5 0.8 Freq 3 MHz 0.5 0.8 1.2 12 MHz — 2.0 3.1 16 MHz — — 3.
MSM80C154S/83C154S ¡ Semiconductor Measuring circuits 1 2 A IO VCC INPUT V (*1) OUTPUT VIL (*2) OUTPUT INPUT VIH (*3) VCC V A VSS VSS 3 4 A *1: Repeated for specified input pins. *2: Repeated for specified output pins. *3: Input logic for specified status.
¡ Semiconductor MSM80C154S/83C154S AC Characteristics (1) External program memory access AC characteristics VCC=2.2 to 6.0V, VSS=0V, Ta=–40°C to +85°C PORT 0, ALE, and PSEN connected with 100pF load, other connected with 80pF load Variable clock from*1 Parameter Symble Unit 1 to 24 MHz Min. Max. XTAL1, XTAL 2 Oscillation Cycle tCLCL 41.
MSM80C154S/83C154S ¡ Semiconductor (2) External program memory read cycle tLHLL ALE tAVLL tLLPL tPLPH tLLIV tPLIV PSEN tPXAV tPXIZ tLLAX tAZPL PORT0 tPXIX INSTR IN A0 to A7 A0 to A7 tAVIV PORT2 288 A8 to A15 A8 to A15 A8 to A15
¡ Semiconductor MSM80C154S/83C154S (3) External data memory access AC characteristics VCC=2.2 to 6.0V, VSS=0V, Ta=–40°C to +85°C PORT 0, ALE, and PSEN connected with 100pF load, other connected with 80pF load Variable clock from*1 Parameter Symbol Unit 1 to 24 MHz Min. Max. XTAL1, XTAL2 Oscillator Cycle tCLCL 41.
MSM80C154S/83C154S ¡ Semiconductor (4) External data memory read cycle tWHLH tLHLL ALE PSEN tLLDV tLLWL tRLRH RD tRHDZ tAVLL tLLAX tRLDV tRHDX tAZRL PORT 0 PORT 2 INSTR IN PCH A0 to A7 PCL A0 to A7 Rr or DPL tAVWL A8 to A15 PCH A0 to A7 PCL DATA IN tAVDV P2.0 to P2.
¡ Semiconductor MSM80C154S/83C154S (6) Serial port (I/O Extension Mode) AC characteristics Parameter Symbol (VCC=2.2 to 6.0V, VSS=0V, Ta=–40°C to +85°C) Min. Max.
MSM80C154S/83C154S 292 MACHINE CYCLE ALE tXLXL SHIFT CLOCK tQVXH tXHQX OUTPUT DATA INPUT DATA VALID VALID VALID VALID VALID VALID VALID VALID ¡ Semiconductor tXHDX tXHDV
¡ Semiconductor MSM80C154S/83C154S (7) AC Characteristics Measuring Conditions 1.Input/output signal VOH VIH VOH VIH TEST POINT VIL VOL * VIL VOL The input signals in AC test mode are either VOH (logic "1") or VOL (logic "0") input signals where logic "1" corresponds to a CPU output signal waveform measuring point in excess of VIH, and logic "0" to a point below VIL. 2.
294 ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, , ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, , ,, ,, ,, ,, ,, instruction execution ,, ,, PCL S6 PCH ,, External data memory instruction execution ,, S1 S2 PCL S3 PC+1 PCH S4 PCH PCL S6 DATA STABLE S5 instruction execution Port output/input TM+1 PC+1 Instruction execution Instruction decoding ,, ,, Port output/input ,, ,, ,, TM+1 ,, ,, TM+1 ,, ,, PORT NEW DATA S5 ,, ,, Instruction execution