Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - denard

Pages: [1]
1
Website Questions / setPWMPrescale() not quite as implied in reference?
« on: August 21, 2012, 12:36:19 PM »
I'm new to the Wiring S board and this forum.  I'm not sure if this is a h/w problem or the reference(?). 
When I use pins 4 or 5 for PWM output (Wiring S board), I can only use the default pre scale number (64, and possibly _NO_PRESCALE I think), which results in an output  frequency of ~122Hz (or ~7.8kHz).  If I try another prescale, it seems to compile and load OK, but there is no output (this is with resolution at default 8-bit).  If I use pin 6 or 7, I can successfully use other pre scale numbers, but get a different output frequency.  E.g. I need a prescale of 256 to get ~122Hz out, implying a derived clock frequency of ~31kHz.
This is not what I expected given the reference description for this method.  Has any one else observed this with the Wring S board and Wiring 1.0?

Denard
ps. The Wiring S board seems very versatile, and the Wiring s/w is GREAT - very intuitive, forgiving and flexible.  My experience so far has exceeded my expectations!  Thanks to the team for all the work!!
Pages: [1]