Datasheet
Figure 24.TMS320 Assembly Language Program to Control Conversions Using the TMS320 Simple Serial Interface (continued)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
LDI *+AR0 (80), R2 ; Read in Serial Ch 1 global register
AND 01H, R2 ; Check for RRDY Active (1)
; RRDY goes active when 16-bits have been rcvd
BZ wait_sample ; Keep waiting if not ready
LDI *+AR0 (92), R3 ; Ready, read value from Data Receive register
STI R3, *+AR1 (0) ; Send out value to host
LDI 100, R0
SUB1 1, R0
BNZ wait_loop ; Keep waiting until R0 decremented to zero
BR @next_sample ; Go start next convert
wait_sample
;
; wait for completion of conversion
; MAX121 SFRM Active signals TMS320 FSR1 that data transfer
; is ready to start.
;
; Arbitrary wait time until start of next convert.
;
wait_loop:
.end
MAX121 308ksps ADC with DSP Interface and 78dB SINAD
www.maximintegrated.com
Maxim Integrated
│
20