Thanks Darrel,
That worked, I think I need to learn that register, TIME TO HIT THE DATA SHEET...
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
Hay Darrel,
In the DT_INTS-14 (SPWM_INT - Multiple Software PWM) It says:
I do not know how to use arrays or how it can benefit in loops. The way I am doing it now is very cumbersome and code intensive. I have searched the forum and RTFM but I can't get my head around how this concept. Can anyone point me in the correct direction.Code:DutyVars VAR BYTE[3] ; DutyCycle Variables DutyVar1 VAR DutyVars[0] ; group them in an array for easy access DutyVar2 VAR DutyVars[1] ; with FOR loops etc. DutyVar3 VAR DutyVars[2]
Best Regards,
Kurt A. Kroh
KrohTech
“Goodbye and thanks for all the fish”
Bookmarks