500-003111-000
4-12
LEA
LEA
LEA
LEA
MOVE.W
MOVE.W
MOVE.W
MOVE.W
MOVE.W
BTST
BEQ.S
MOVE.W
CMP.W
BEQ.S
ADDQ.W
BRA
END
STRTSEQ
RDSTATUS
ENDSEQ
#$FBFF000E, A1
#$FBFF0002, A2
#$FBFF000C, A3
#$FB000000, A4
#$7240, D1
#$725F, D2
#$0000, (A1)
D1, (A2)
(A2), D3
#15, D3
RDSTATUS
(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
SELECT GAIN = X1
WRITE CONTROL WORD
READ STATUS REG
IS NEW DATA READY?
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-2
Figure 4.6.2-2. Program Example - Basic ADC Control Sequence
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com