10. Serial communication between two 8085 through RS-232 C port.

Program for the transmitting microprocessor: 


ORG 0000h  ; Starting address of the program       


; Initialize the serial port

MOV A, 80h  ; Load control word for serial port into A

OUT 01h    ; Send control word to serial port


; Send data through serial port

MOV A, data  ; Load data to be sent into A

OUT 02h     ; Send data to serial port


; End of program




Program for the receiving microprocessor:


ORG 0000h  ; Starting address of the program

; Initialize the serial port
MOV A, 80h  ; Load control word for serial port into A
OUT 01h    ; Send control word to serial port

; Receive data from serial port
IN  A, 02h  ; Receive data from serial port into A

; Process received data
; ...

; End of program