1 / 9

DAC Interfacing

DAC Interfacing. V ref. CPU. D Q. DAC. D Q. V out. Clock. Address bus. Address decoder. IOW. AEN. Data bus. Address bus. IBM – PC Ports. MEMR MEMW IOR IOW. R/W IO/M DEN. DEN. ALE. OUT DX,AL OUT DX,AX. 300H - 31FH For prototype Cards.

questa
Download Presentation

DAC Interfacing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DAC Interfacing V ref CPU D Q DAC D Q V out Clock Address bus Address decoder IOW AEN

  2. Databus Address bus IBM – PC Ports MEMR MEMW IOR IOW R/W IO/M DEN DEN ALE OUT DX,AL OUT DX,AX 300H - 31FH For prototype Cards AEN=0 For I/ O ports A9 A5 A4 A1 A0 AEN=1 For DMA For Card For Port For Byte Selection Selection Selection

  3. Address Decoder 300 – 31 FH decoder IOR decoder IN 300H A1 A2 A3 A4 A5 A6 A7 IN 302H IN 304H OUT 300H A1 A2 A3 A4 OUT 302H OUT 304H A9 A8 AEN IOW

  4. Mov Cx, count * OUT Dx, AL Mov AL, SI INC SI ”LODSB“ “OUT DX,AX” For 10- bit or 12- bit DAC Or “LODSW” DEC CX JNZ * ” * LOOP“ Mov BL , M **DEC BL JNZ ** Delay to adjust “ Ts”

  5. D0 10 – bit DAC D0 D1 D1 D2 D2 D7 D7 D0 D0 D1 A0 CE D1 A0 OUT 300H Vout

  6. V ref ADC VIN CPU data bus Start IN 300H END DO OUT 302H IN 302H

  7. ** OUT 302H, AL * IN AL, 302 H AND AL, 1 JNZ * IN AL, 300H STOSB LOOP ** Delay to adjust Ts

  8. Start End interrupt CPU V cc INTR D Q Elk clr End Int. service routin OUT 304H, AL IN AL, 300H STOSB OUT 302H, AL IRET Out 304 H

  9. IN AX, 300H STOSW 10-bit ADC B0 B1 D0 D1 V in B7 B0 B1 D7 D0 D1 A0 OE A0 IN 300H

More Related