Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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: 82

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: 91
  • adc_lcd.jpg
    adc_lcd.jpg
    387.3 KB · Views: 94
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