sbobowski
- 28th September 2008, 21:40
is there such a a thing as a Pulsin alternative?
i'm using a 12F675
right now i have a chunk of code
radioIn:
PULSIN Radio,1,P
' With 20 meg osc pulse measures at 2 millisecs, With 4 meg osc pulse measures at 10 millisecs
PWM NpN, P, 100
goto radioin
Radio is defined as an input,on GPIO.3 save pulse as "P"
PWM NpN is defined as an output on GPIO.2, use P as the PWM Duty, Cycle = 100 (also tried Cycle = 3, which had a better result)
goto = do it forever
OK, i am driving a 12V LED strip with a NPN Transistor. reading data from an R/C Airplane Receiver, this part works good
the problem is that the pulsin command takes up a LOT of time, enough time that you can see the flicker in the LED's (try it it's enough to give you a seizure).
is there an alternative to Pulsin that maybe can do its job a little faster?
or is this where you are better off to find a chip with HPWM and go that route?
thank you in advance
i'm using a 12F675
right now i have a chunk of code
radioIn:
PULSIN Radio,1,P
' With 20 meg osc pulse measures at 2 millisecs, With 4 meg osc pulse measures at 10 millisecs
PWM NpN, P, 100
goto radioin
Radio is defined as an input,on GPIO.3 save pulse as "P"
PWM NpN is defined as an output on GPIO.2, use P as the PWM Duty, Cycle = 100 (also tried Cycle = 3, which had a better result)
goto = do it forever
OK, i am driving a 12V LED strip with a NPN Transistor. reading data from an R/C Airplane Receiver, this part works good
the problem is that the pulsin command takes up a LOT of time, enough time that you can see the flicker in the LED's (try it it's enough to give you a seizure).
is there an alternative to Pulsin that maybe can do its job a little faster?
or is this where you are better off to find a chip with HPWM and go that route?
thank you in advance