Page 1 of 1

PWM typo

Posted: 12 July 2007, 13:42 PM
by pjc30943
Not sure if this has been covered (didn't see this issue in the search), but the single-version of the PWM function appears to take percent literally, versus as 0 --> 1.0.

So a 10% duty cycle is expressed as 10.0, not 0.1 as the manual would states. Thus the integral and single versions are coded the same (10 or 10.0, vs. 10 or 0.1 as stated currently).

Posted: 12 July 2007, 20:08 PM
by dkinzer
We'll have to look into this. Did you see the problem on the ZX-24 or the ZX-24a? This is significant because the PWM functions are implemented differently on the mega32-based ZX devices as compared to all other models.

Posted: 13 July 2007, 0:04 AM
by pjc30943
The message is regarding a zx24a--which might allow you a sigh of relief.

Re: PWM typo

Posted: 13 July 2007, 8:32 AM
by dkinzer
pjc30943 wrote:So a 10% duty cycle is expressed as 10.0 [...]
That is correct. The examples in the documentation are incorrect.