PWM and RTC DS1307 going haywire????
Posted: Wed Nov 16, 2011 10:08 pm
Hi all,
Im verry close to finishing my project. But now I have some trouble to get things working.
I have made a little board with two transistor that drive a LED and FAN.
LED simulates the night/day cycle and I control it with a PWM signal the same for the FAN.
The PWM signal is:
frequency: 46.875 KHz
and a period time of 21.3 uSec.
The transistor(s) can handle this switching frequency, but thats not my problem.
When I connect this all to port C this is where CCP1/2 is located on my LCD the time shows as follow 45:85 45/25/165
when I enter a new time and date nothing changes.
When I disconect the tranistors on port C the Time shows correct. I dont know if this is a timing issue (sound like it does) I dont know.
Maybe some one can take a look at it for me.
Regards Jordy
Im verry close to finishing my project. But now I have some trouble to get things working.
I have made a little board with two transistor that drive a LED and FAN.
LED simulates the night/day cycle and I control it with a PWM signal the same for the FAN.
The PWM signal is:
frequency: 46.875 KHz
and a period time of 21.3 uSec.
The transistor(s) can handle this switching frequency, but thats not my problem.
When I connect this all to port C this is where CCP1/2 is located on my LCD the time shows as follow 45:85 45/25/165
when I enter a new time and date nothing changes.
When I disconect the tranistors on port C the Time shows correct. I dont know if this is a timing issue (sound like it does) I dont know.
Maybe some one can take a look at it for me.
Regards Jordy