[sdiy] DsPIC timer issue when used as DCO!

Eric Brombaugh ebrombaugh1 at cox.net
Thu Dec 10 18:26:06 CET 2009


On 12/10/2009 09:52 AM, Colin f wrote:
> But that picture looks to me like the change of pitch applies immediately to
> the CV for the waveshaper (the timing cap charges at the correct new rate
> causing the triangle wave to complete its full cycle in the correct time),
> but the timer generated reset of the cap doesn't happen until the end of the
> period for the old pitch.
> Superimpose another cycle of the lower pitch triangle wave in your head as
> it continues - the switch to the higher pitch occurs after that cycle
> completes.
> This says to me that the new pitch period is being put into a reload
> register in the timer, when it should be written to the current timer value.

I was thinking the same thing. Setting the current timer value to the 
new period (or some 'penultimate' value slightly lower than the period) 
to force it to issue a pulse and reload ASAP may be the solution.

Resetting the timer value to 0 probably wouldn't work because then it 
wouldn't issue a pulse and the PA397 integrator wouldn't be reset.

Eric



More information about the Synth-diy mailing list