Hi
I would like to do a few ADC conversions, poke the values into memory and then use them for averaging.
Unfortunately the @bptinc is not doing what I expect (It does auto increment, but where does the value go?).
What am I doing wrong?
Thanks for any pointer...
b40=0
let bptr = 40
let @bptr = 40 ;at this time bptr is pointing to b40 and the value of 40 is loaded correctly
;do
;readadc A.0, b0 ; read value into b0
;poke @bptrinc, b0 ; for future use -> this was supposed to fill a buffer region
;loop while....
; Test code for "poke @bptrinc "
poke @bptrinc, 55 ; at this time b40 is populated with 55 correctly
poke @bptrinc, 65 ; b41 is supposed to by filled with 65 but I can't find what is happening here anymore, since I do not
; get any errors I assume that another register is written, but which one?
poke @bptrinc, 75 ; b42 ... same
poke @bptrinc, 85
I would like to do a few ADC conversions, poke the values into memory and then use them for averaging.
Unfortunately the @bptinc is not doing what I expect (It does auto increment, but where does the value go?).
What am I doing wrong?
Thanks for any pointer...
b40=0
let bptr = 40
let @bptr = 40 ;at this time bptr is pointing to b40 and the value of 40 is loaded correctly
;do
;readadc A.0, b0 ; read value into b0
;poke @bptrinc, b0 ; for future use -> this was supposed to fill a buffer region
;loop while....
; Test code for "poke @bptrinc "
poke @bptrinc, 55 ; at this time b40 is populated with 55 correctly
poke @bptrinc, 65 ; b41 is supposed to by filled with 65 but I can't find what is happening here anymore, since I do not
; get any errors I assume that another register is written, but which one?
poke @bptrinc, 75 ; b42 ... same
poke @bptrinc, 85