16F876A Pulsin issues


Results 1 to 16 of 16

Threaded View

  1. #11
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Ah, ok, finally, im a git, :-)

    Im now reading a 520 adc value with the battery on and the DMM measuring 2.54 (Needs to be multiplied by 2 to reverse the voltage divider effect).

    Err, something not right, im missing something with the math:

    Code:
        ADCIN 4, volt                  ' Read AN4 into temp variable
        Vin = (5*volt/1024)       ' Convert to voltage assuming 5.00 = 1024
    
    lcdout $FE, $C0+8, dec Vin,".",dec2 Vin,"V"
    pulling out many hairs, :-( my biggest issue is that even in school my maths was not great, spose thats why Excel was invented, for people like me, :-)
    Last edited by Bobbo_ZA; - 30th March 2010 at 21:56.

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