Datasheet

Figure 24.TMS320 Assembly Language Program to Control Conversions Using the TMS320 Simple Serial Interface (continued)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Functions;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
LDI 0,ST ; Initialize status register
LDIU 128,DP ; Initialize data page register
LDI 0985CH,SP ; Initialize stack pointer
LDI IOF,R1 ; Read in I/O Flags register to R1
AND @IOF_AMASK,R1 ; Remove current XF1 bits, preserve XF0 settings
OR @IOF_SET_XF1,R1 ; Set XF1 (CONVST*) Inactive (high)
LDI R1, IOF ; Make it so!
LDI @CTRL, AR0 ; Load AR0 w/ptr to control reg base
LDI @HOST_DATA,AR1 ; Load AR1 w/host interface address
LDI @SERTIM1VAL,R0
STI R0, *+AR0(86) ; Setup serial ch1 timer period value
LDI @SERGLOB1,R0
STI R0, *+AR0(80) ; Setup serial ch1 global register
LDI @SERPRTX1,R0
STI R0, *+AR0(82) ; Setup serial ch1 xmt control register
LDI @SERPRTR1,R0
STI R0, *+AR0(83) ; Setup serial ch1 rcv control register
LDI @SERTIM1,R0
STI R0, *+AR0(84) ; Setup serial ch1 timer register
LDI IOF,R1 ; Read in I/O Flags register to R1
AND @IOF_AMASK,R1 ; Remove current XF1 bits, preserve XF0 settings
OR @IOF_SET_XF1,R1 ; Set XF1 (CONVST*) Inactive (high)
LDI R1, IOF ; Make it so!
AND @IOF_AMASK,R1 ; Remove current XF1 bits, preserve XF0
OR @IOF_RESET_XF1,R1 ; Set XF1 (CONVST*) Active (low)
LDI R1, IOF ; Make it so!
.text
maxim
;
; Initialization Code
;
next_sample
;
; Start Conversion -->
;
(CONVST*)
MAX121 308ksps ADC with DSP Interface and 78dB SINAD
www.maximintegrated.com
Maxim Integrated
19