Hi, I want to make a circuit that charge a lead acid battery in the day with solar cell and in the night it turning on and off some LED's. This pulse should work all the night when my program measure the battery voltage so i have to use the PWM mode. if the battery voltage is getting low i should decrease the duty cycle to 45,40 or 30% for battery saving. I want to turning on the LED's every one second (one second on and one second off), so i need a 0.5Hz frequency with 50% duty cycle. How can i use the PWM to make this pulse? can i use HPWM instruction in pisbasic pro? ( i want to write my program in picbasic pro). i read in the help of the picbasic pro that the lowest frequency at 4MHz is 245Hz so how can i make 0.5Hz pulse? (you can see this: http://www.electro-tech-online.com/m...ic16f873a.html)
Bookmarks