Why not using a simpler way?
CheersCode:for cnt=1 to 70 adcin 3, v_cal v_cal=v_cal * 5000 ' I use VDD as Vref v_cal=div32 1023 If cnt = 1 then vmax = v_cal else If v_cal > vmax then vmax = v_cal endif pause 100 next cnt
Al.
Why not using a simpler way?
CheersCode:for cnt=1 to 70 adcin 3, v_cal v_cal=v_cal * 5000 ' I use VDD as Vref v_cal=div32 1023 If cnt = 1 then vmax = v_cal else If v_cal > vmax then vmax = v_cal endif pause 100 next cnt
Al.
Last edited by aratti; - 12th November 2010 at 14:02.
All progress began with an idea
Bookmarks