RadikalQ3,
Thanks for the Mirror Image idea!
It has completely removed the blinking problem.
Unfortunately the higher frequency and extra code to reverse things has created some new ones, but I think I can work through them.
For your first post here, it was an awesome one.
Thanks again,
Also, thanks anonymouse,
But with multiple channels at different dutycycles all using the same timer, changing the interrupt sequence at 127 isn't possible.
I hadn't mentioned the multi-channel part yet ... oops.
DT
Oh, it's nothing... just was an idea.
I have spent the last days reading all I found in internet about PWM, BAM, Frecuency Modulation, etc.
I have a project to do and I am gathering all the information about this topic.
Simply... I found your topic (and this forum) and I thought that was a nice challenge solve your blinking problem O
I am waiting the recepcion of some hardware and in a few days I can do test with this for my own.
Later, I realized that this is a forum on basic! (and I just use assembler)
Videos of oscilloscopes never seem to work very well.
But it's interesting to watch the way the mirror image works.
Let's call it BAM-BAM.
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4eZho2fN3r8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4eZho2fN3r8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
It's going through a ramp from 0-255 and back down.
DT
I'd run in to the exact same issues between 127 and 128. Never had time to investigate it further.
My implementation just used a state machine in the interrupt routine - 1 state for each bit.
Each state sets TMR1 to a different level, then sets / clears the appropriate pins.
I assume that you're implementing the 2xF 'mirror' method in a similar way? Very clever.
Last edited by JEC; - 19th January 2009 at 17:24.
Bookmarks