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 />

MASTER<br />

186 Core<br />

Device<br />

TXD<br />

RXD<br />

Master Transmit Line<br />

Master Receive Line<br />

TXD RXD TXD RXD TXD<br />

RXD<br />

Port<br />

Pin<br />

80C51<br />

Port<br />

Pin<br />

80C196<br />

Port<br />

Pin<br />

186 Core<br />

Device<br />

SLAVES<br />

A1273-0A<br />

Figure 11-18. Master/Slave Example<br />

Example 11-3 demonstrates how to implement a master/slave network in a typical system. The<br />

remaining three examples show the routines used in the implementation. Example 11-4 is a master<br />

routine that addresses a slave and waits for it to respond. Example 11-5 is a slave routine that<br />

responds to commands sent by the master. Equation 11-6 is the master routine that sends commands<br />

to the slave.<br />

11-25

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

Saved successfully!

Ooh no, something went wrong!