OH!, nevermind!
ADCON1 = $0F
![]()
Thanks Darrel,
That worked, I think I need to learn that register, TIME TO HIT THE DATA SHEET...
Best Regards,
Kurt A. Kroh
KrohTech
“Goodbye and thanks for all the fish”
That's a good one to learn.
You'll need some variation of it in almost every program you write.
Also, Since the TMR0_INT handler is only toggling a pin, it's not using any PBP system variables.
You can change the TMR0_INT's "Type" to ASM.
Then it won't be saving all the system variables when it doesn't need to. Time is critical with that many simultaneous PWM's.
Then you can remove the ReEnterPBP-18.bas include file, which will save some RAM and Code space.
DT
Thanks again Darrel,
I just fully tested the SPWM_INT running 16 channels @ 100Hz 0-100 resolution. I tested each channel with a 7 amp led cluster (Agilight Brightstrip see below) of typical sign led strips powered through a MOSFET. This worked great. I am able to dim all the way down to 1% without any flicker and smoothly fade up to 100% with no flicker or noticeable stair stepping effect. This is smoother than when I used the older multi SPWM program.
I really appreciate you help
http://www.agilight.com/brightstrip/index.htm
Best Regards,
Kurt A. Kroh
KrohTech
“Goodbye and thanks for all the fish”
Thanks Kurt!
Ioannis,
I've mentioned it a couple times here in the forum, but I just spent about an hour trying to find them, and failed.
I really should write some more pages for the website.
Anyone got a Cloning Machine? I need another Me.![]()
DT
Bookmarks