i've just developed a dimmer for the internal light of the car using pic12f629 but i've a problem:
when gpio.1 goes low, gpio.0 goes high (turning the lamp on) (gpio.0 = 1)
just after that, when gpio.1 goes high, gpio.0 goes low with PWM. (pwm gpio.0,duty,cycle)
at the first execution, it works fine. But if gpio.1 goes low again, gpio.0 DOESNT go high and when gpio.1 goes high, the PWM works...
the code is attached.
thanks, Sylvio
Bookmarks