09.05.2015 Views

Microcomputer Circuits and Processes

Microcomputer Circuits and Processes

Microcomputer Circuits and Processes

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.

the time it takes for the encoder to work (10ns for a 74S148), which<br />

comes to around 35 ns. That is why it is a fast method.<br />

The three conversion techniques described in this section all have their<br />

uses. The SAR method seems about the most widely used today (1985).<br />

If you want to make an A-to-D converter you can build any of the<br />

circuits described here <strong>and</strong> they will work. If you want to work at 8 bits,<br />

do not build, buy as it is cheap. For 10 or 12 bits you should build an<br />

SAR 'converter. Use an LM311 comparator, a 74C905 or DM2504<br />

SAR, <strong>and</strong> a DAC 100 or DAC 10 digital-to-analogue converter for 10<br />

bits. The choice of D-to-A converter is important, but the ones~<br />

suggested (marketed by Precision Monolithics Incorporated) work well<br />

<strong>and</strong> are not that expensive. Then you will have a 15~s A-to-D converter<br />

accurate to 100mV in 10V.<br />

SERIAL<br />

COMMUNICATION<br />

The CPU is often transferring large amounts of data to other devices,<br />

such as printers, disk drives, cassette tape recorders, often down a<br />

telephone line or by a satellite link. You have seen how a CPU can<br />

output data in 'lumps' of 4 or 8 bits to D-to-A converters <strong>and</strong> the like,<br />

<strong>and</strong> this method of communication will also work well for most<br />

printers, where the data bus is carried over by a long stretch of 8-ormore-conductor<br />

'ribbon' cable. But it is no good for cassette recorders,<br />

which only have one wire for 'record' <strong>and</strong> another for 'playback' -<br />

unless they are stereo. So 4 or 8 bits cannot be sent at once.<br />

The serial method of communication sends, for example, 8-bit data<br />

over a single wire, not eight wires. Instead of sending all the bits<br />

simultaneously, they are sent one after the other, in a series, hence the<br />

name. The two modes of communication are shown in figure 4.34',in<br />

which the data byte 01001101 is being sent. There are a few ways in use<br />

to transmit serial data, but in the interests of uniformity, assume the<br />

existence ofjust one, ASCI I (American St<strong>and</strong>ard Code for Information<br />

Interchange). Every key of a typewriter, plus the control keys of a<br />

teletypewriter, have been given a unique 7-bit code which is transmitted<br />

over a serial line. In this code, our data 01001101 is the letter 'D'.<br />

0----<br />

0----<br />

1~<br />

1~<br />

0----<br />

1~<br />

(a)<br />

JLJLJL<br />

01001101<br />

(b)<br />

serial transmission<br />

~ one<br />

wire<br />

Figure 4.34<br />

A comparison of (a) byte <strong>and</strong> (b) serial transmission of the same 8-bit number 01001101.<br />

67

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

Saved successfully!

Ooh no, something went wrong!