Charger battery with pic12f675


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Something like this ?
    Main :
    ......
    goto check
    ......
    goto main


    CHECK : ; verify for voltage
    ADCIN 2, ADVAL
    VT = ADVAL * 5000 ; 5V with 3 decimals
    VT = DIV32 1023 ; / maximum A/D reading

    IF VT > 6000 THEN
    GPIO.0 = 0
    ENDIF
    RETURN

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hello Fratello,

    Exactly what is needed for the battery charger when the voltage divider delivers eg 60mV to the GP2 pin 7 is low and cut the load to the battery.

    greetings


    Quote Originally Posted by fratello View Post
    Something like this ?
    Main :
    ......
    goto check
    ......
    goto main


    CHECK : ; verify for voltage
    ADCIN 2, ADVAL
    VT = ADVAL * 5000 ; 5V with 3 decimals
    VT = DIV32 1023 ; / maximum A/D reading

    IF VT > 6000 THEN
    GPIO.0 = 0
    ENDIF
    RETURN

Similar Threads

  1. Pic Battery Charger
    By Squibcakes in forum Off Topic
    Replies: 7
    Last Post: - 22nd January 2012, 05:56
  2. Replies: 14
    Last Post: - 6th March 2011, 05:08
  3. Pic 16Fxx Battery Charger Help
    By wbjunkie in forum Schematics
    Replies: 6
    Last Post: - 15th December 2008, 19:34
  4. Battery charger - power supply issue affecting ADC
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 14th December 2008, 00:12
  5. Li-Ion battery charger
    By Nicmus in forum Off Topic
    Replies: 6
    Last Post: - 21st May 2008, 00:28

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