Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

LCD for pic 16f872

Status
Not open for further replies.

Lester_Hunter

New Member
I have designed a PCB for a single temperture input to control 3 relay o/ps it works great, but now I want to connect a LCD display to show temp & what zone is active. I am using a single line 1X16 Hitachi LM020L display I put the intial LCD config in front of analog program and nothing works, I add in a new time delay not using my analog ones and still no work, does any body have any code for this.

Thanks
I have attached asm file
 

Attachments

  • piclcd_861.zip
    1.4 KB · Views: 383
  • piclcd_160.zip
    1.4 KB · Views: 460
Make sure your contrast is wired up correctly. Seems like 90% of the people who can't get an LCD to work didn't supply the right contrast voltage.

You're using "double" in your C code for no reason. These take the time of hundreds or thousands of integer ops and should only be used when nothing else will do. You could do the same job with a 32 bit integer, just do some quick calcs while coding to make sure it won't blow your max/min values.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top