***Input Address Buffer*** |--------------------Sample 1-------------------|--------------------Sample 2-------------------| ------------------------------------------------------------------------------------------------- | Analog | Digital | Analog | Digital | Analog | Digital | Analog | Digital | | | | | | | | | | .... this goes on | Channel 1 | Channel 1 | Channel 2 | Channel 2 | Channel 1 | Channel 1 | Channel 2 | Channel 2 | for 64 samples ------------------------------------------------------------------------------------------------- ***Code segement to access the Inputs*** ld *AR6, 16. A ;Receive Sample 1 analog ch1 mar *+AR6(1) ;moves the pointer to Sample 1 digital ch1. ld *AR6, 16. B ;Receive Sample 1 digital ch1 mar *+AR6(1) ;moves the pointer to Sample 1 analog ch2. ld *AR6, 16. A ;Receive Sample 1 analog ch2 mar *+AR6(1) ;moves the pointer to Sample 1 digital ch2. ld *AR6, 16. B ;Receive Sample 1 digital ch2 mar *+AR6(1) ;moves the pointer to Sample 2 analog ch1. ***Output Address Buffer*** |--------------Sample 1-------------|--------------Sample 2-------------| ------------------------------------------------------------------------- | Ch1 | Ch2 | Ch3 | Ch4 | Ch5 | Ch6 | Ch1 | Ch2 | Ch3 | Ch4 | Ch5 | Ch6 | ... this goes on for 64 samples ------------------------------------------------------------------------- ***Code segment to access the Outputs*** sth a, *AR7+ ;Stores into output buffer, ch1 sth a, *AR7+ ;ch2 sth a, *AR7+ ;ch3 sth a, *AR7+ ;ch4 sth a, *AR7+ ;ch5 sth a, *AR7+ ;ch6 sth a, *AR7+ ;ch7