500-003111-000
4-14
LEA
LEA
LEA
LEA
MOVE.W
MOVE.W
MOVE.W
MOVE.W
MOVE.W
MOVE.W
BTST
BNE.S
MOVE.W
ADD.W
ADD.W
MOVE.W
MOVE.W
BTST
BEQ.S
MOVE.W
CMP.W
BEQ.S
ADDQ.W
BRA
END
STRTSEQ
RDSTAT1
RDSTAT2
ENDSEQ
#$FBFF000E, A1
#$FBFF0002, A2
#$FBFF000C, A3
#$FB000000, A4
#$5240, D1
#$525F, D2
#$7200,D4
#$0000, (A1)
D1, (A2)
(A2), D3
#6, D3
RDSTAT1
D4, (A2)
#$1, D1
#$1, D4
D1, (A2)
(A2), D3
#15, D3
RDSTAT2
(A3), (A4)+
D1, D2
ENDSEQ
#$1, D1
STRTSEQ
PGA GAIN SELECTION REG
CONTROL/STATUS REG
A/D CONVERTER DATA REG
DATA STORAGE ADDRESS
CONTROL WORD CH.00
CONTROL WORD CH.31
CONTROL WORD CONVERT
SELECT GAIN = X1
WRITE CONTROL WORD
READ STATUS REG
IS SETTLING BUSY?
IF SO CHECK AGAIN
START CONVERSION
SELECT NEXT CHANNEL
SELECT NEXT CHANNEL
START SETTLING THAT CHANNEL
READ STATUS REG
IS NEW DATA READY HIGH?
IF NOT CHECK AGAIN
READ AND STORE DATA
LAST CHANNEL READ?
IF SO END SEQUENCE
GET NEXT CONTROL WORD
DO NEXT CHANNEL
M3111/F4.6.2-4
Figure 4.6.2-4. Program Example - Pipelined ADC Control Sequence
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com