22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DIGITAL-TO-ANALOG AND ANALOG-TO-DIGITAL CONVERSION 415<br />

2 MHz CLOCK<br />

JlIlJlSLJlrulJlnIIJlJUlllllJUlJUlrLnIlJUlJ<br />

COUNTE R STATE 123~239F1241 ~421243124412451246~47124~24~125112521253125412551176117711781179118°11811<br />

SAMPLE 8 HOLO HOLD i -I<br />

SAMP ----l<br />

'-------<br />

START TO SAR<br />

1'--__-'<br />

SAR DATA BIT<br />

_"""WiUf\:::A=.;L1:o...0 ....1-__-'~O VALID<br />

END OF CONV<br />

Fig. 12-33. Timing diagram for 12-bit audio ADC<br />

approximation register operation. Total parts costs should be under $30. Of<br />

course, a suitable filter must be added to these two circuits.<br />

A timing diagram <strong>of</strong> the unit is shown in Fig. 12-33. A sampling<br />

cycle starts with the 8-bit counter teaching the 240 (11110000) state, which<br />

switches the SMP-11 into its hold mold and resets the successive approximation<br />

register. Four counts later at 244 (11110100), the SAR is allowed to run.<br />

Conversion is complete after 12 additional counts and the counter reloads for<br />

the next cycle. The SAH is also switched back to sample mode to reacquire<br />

the input signal. The host system can look at the end <strong>of</strong> conversion output<br />

signal, which holds for the sample period minus 8 f-Lsec, to determine when<br />

valid data is present. By inserting a l2-bit latch between the SAR and host,<br />

the data valid time is extended to a full sample period. The counter inputs are<br />

shown connected for a 25-ks/s sample rate (40 f-Lsec, 80 counts) but can be<br />

reconnected for any rate from 7.8 to 80 ks/s. If both the DAC from Fig.<br />

12-28 and this ADC are being constructed, the sample rate counter can be<br />

shared between the two.

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

Saved successfully!

Ooh no, something went wrong!