Continue to Site

Looking for a PIC program for battery voltage indicator cum cut off circuit.....

Status
Not open for further replies.
Try this code. You have to make TRISA = 0b00000011;
Which version of micro c you are using?
I try with version 5.30 and build,but no effect of adc on lcd.
 

Attachments

  • 3rd.rar
    61.5 KB · Views: 101

I am using mikroC Pro 5.60

The problem was with your Clock frequency settings in Proteus and ADCON1 settings. You has chosen to use Vref+ and Vref-

If you want your code to work. Connect vref+ pin to 5v and Vref- pin to Ground and try, or you can use my code. I have not used Vref pins.

Try to see the errors and warning messages proteus give.
 

Attachments

  • 3rd.rar
    68.2 KB · Views: 115
  • adc_lcd.jpg
    adc_lcd.jpg
    387.3 KB · Views: 109
Last edited:
  • Like
Reactions: pnjbtr

    pnjbtr

    Points: 2
    Helpful Answer Positive Rating
I am using mikroC Pro 5.60
What do think problem is due to version mismatch?
i attached whole project in previous thread.
Can you build c file and send hex.
 

can we write this code for pic16f72?
PIC16F72 have 8 bit adc module and pic16f877a is with 10bit adc module.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top