Maximum value of ADCIN


Results 1 to 21 of 21

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Why not using a simpler way?

    Code:
    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
    Cheers

    Al.
    Last edited by aratti; - 12th November 2010 at 14:02.
    All progress began with an idea

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts