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
Forgot resetting "value" ... Boooo.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
But ... you of course had noticed it !
Alain
PS for Darrel ...
You really sure ??? ... not me, here for R/C Gadgets ...Everything, should be Interrupt driven.




Bookmarks