Home 8051 STUDIO byelectronicprojectmaking -July 12, 2026 8051 STUDIO Assembler, Intel HEX Generator, & Hardware Simulator Source Assembly (ASM51) ; --- 8051 Hardware Test --- ; 1. Turn on Relay 1 & 3 (P1 = 0x05) MOV P1, #05 ; 2. Send 'O', 'K' to Serial Monitor (SBUF = 0x99) MOV SBUF, #4F MOV SBUF, #4B ; 3. Write '1', '6', 'x', '4' to HD44780 LCD (Simulated at 0x8C) MOV 0x8C, #31 MOV 0x8C, #36 MOV 0x8C, #78 MOV 0x8C, #34 ; 4. Display '5.' on 7-Segment (P2 = 0xED - 6D + 80 for DP) MOV P2, #ED Compile & Run Reset Compiled Intel HEX ROM Serial Monitor SBUF (0x99) Hardware Pins: TX (P3.1), RX (P3.0) @ 9600 Baud 16x4 LCD (HD44780) ADDR (0x8C) 4-Bit Pins: RS(P1.2), EN(P1.3), D4-D7(P1.4-P1.7) | RW=GND _ 20x4 LCD (I2C) & DS3231 RTC I2C BUS Hardware Pins: SDA (P2.0), SCL (P2.1) | DS3231 (0xD0), LCD (0x9A) _ 12:00:00 7 SEG P2.0-P2.7 Pins: a-g & dp 4x Relays & LEDs P1.0-P1.3 Bypassed to view status RY1 RY2 RY3 RY4 4x Push Buttons P3.2-P3.5 B1 B2 B3 B4 4x4 Keypad P0.0-P0.7 123A 456B 789C *0#D System Logs System Ready... Facebook Twitter