03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SERIAL COMMUNICATIONS UNIT<br />

cmp al, FlashLEDs ; Flash LEDs command<br />

jne Wait_4_Cmd ; no: then ignore<br />

mov dx, P1LTCH ; yes: then flash LEDs 10 times<br />

mov cx, 20<br />

xor ax, ax<br />

Send: not ax<br />

out dx, ax<br />

mov bx, 0ffffh<br />

Dly1: dec bx<br />

jnz Dly1<br />

dec<br />

jnz<br />

jmp<br />

pop<br />

pop<br />

pop<br />

pop<br />

cx<br />

Send<br />

short Wait_4_Cmd<br />

dx<br />

cx<br />

bx<br />

ax<br />

_slave_1<br />

lib_80186<br />

ret<br />

endp<br />

ends<br />

end<br />

Example 11-5. Master/Slave — The slave_1 Routine (Continued)<br />

11-31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!