Powered by Invision Power Board


Forum Rules Forum Rules (Please read before posting)
  Reply to this topicStart new topicStart Poll

> Coading Help Required For Pic16c54c.
Qaisar Azeemi
  Posted: February 13, 2012 09:40 am
Reply to this postQuote Post


Newbie
**

Group: Members+
Posts: 46
Member No.: 36,124
Joined: November 17, 2011




hi;
i wana display battery charging level on a bargraph LCD using pic16c54c. Data is on four input pins of pic from circuit. normally there are simple dc inputs on all pins, but when battery is 20% charged then all inputs contains DC. when it is 40%Charged then one of the 4 pins contain 100hz frequency with 70%duty cycle. when it is 60% charged then two inputs have 100hz frequency. when it is 80% charged then 3 inputs have 100hz signal. and when it is 100% charged finally then all the pins have 100hz signal...
Now accordingly 1,2,3,4,5 bars should be displayed on the LCD , and for this just 60hz square wave is sent on LCD...
how should i code the logic in C.
1) To generate 60hz signal at the output.
2) To detect Rising or falling edge at the input.

Regards
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


:: support us ::




ElectronicsSkin by DutchDork & The-Force