[sdiy] DsPIC timer issue when used as DCO!

Dave Manley dlmanley at sonic.net
Tue Dec 15 05:07:45 CET 2009


Tom Wiltshire wrote:
> 
> On 12 Dec 2009, at 00:18, Neil Johnson wrote:
> 
>> Hi,
>>
>> Dave Manley wrote:
>>> 5. I'm guessing they are using the output compare logic to generate 
>>> the reset pulse.  There's no reason not to, and it removes the need 
>>> for the ISR.
>>
>> Sorry if this is a dumb question (I'm new to the dsPIC range) ... but 
>> from what I can see the output compare logic only works on 16-bit 
>> timers, not on 32-bit timers.  So if, as we suspect, two 16-bit timers 
>> are running in tandem to make a 32-bit timer, how would the output 
>> compare work then?
> 
> Not so dumb. I was wondering the same thing.

Good point - I didn't look closely enough at the output compare circuit 
to notice they were 16-bit only.  If you were only trying to generate 
the standard note frequencies then a 16-bit timer is enough, but that 
won't handle smooth modulation/portamento/etc.

-Dave




More information about the Synth-diy mailing list