[sdiy] DsPIC timer issue when used as DCO!

karl dalen dalenkarl at yahoo.se
Thu Dec 10 22:00:56 CET 2009


> > According to timer manual that seams to be the cause
> of the problem,
> > i.e no absolute jump to new timer count value as the
> old 8253 could do?
> 
> No, you can do that on dsPIC too. There's TMRx registers
> that store the current timer count. You can set those to
> whatever you like.
> The tricky bit is the working out *what* the correct value
> should be.

? So what is the real problem then? If you can set TMRx, OCx R/RS 
as you say i dont see why these wouldn't be used to avoid the glitch?

How do we know that the OC registers emideately update timer count?
We dont because they dont, becuse they are in toggle mode, OC registers are usually used in PWM generation. Where in the timer manual does it 
say timer count gets updated on a new reload of TMRx register?
I cant find it!?

Whats the difference between PRx and TMRx in comparator toggle mode?




      __________________________________________________________
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014




More information about the Synth-diy mailing list