Hi, Alex ...
just two little "bugs" of mine ...
Code:
'---------------------------------------------------------------------------
pause 3000
for x=1 to 4
high led
pause 200
low led
pause 100
next x
... I only forgot to clear the comments for shortening delays when using MPSIM ...
Here is the good sequence ...
AND
Code:
Average:' -=-=-=-=-=-= Average 16 X Analog values -=-=-=-=-=-=-=-=-=-=
Value = 0
For x = 0 to 15 ' 16 Samples MAXI !!!
shiftin ADC_DATA,ADC_SCLK,msbpost,[advalue\12] '337 µs
value = value + advalue
Forgot resetting "value" ... Boooo.
But ... you of course had noticed it !
Alain
PS for Darrel ...
Everything, should be Interrupt driven.
You really sure ??? ... not me, here for R/C Gadgets ...
Bookmarks