PWM typo

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

PWM typo

Post 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).
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post 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.
Last edited by dkinzer on 13 July 2007, 7:10 AM, edited 1 time in total.
- Don Kinzer
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

Post by pjc30943 »

The message is regarding a zx24a--which might allow you a sigh of relief.
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: PWM typo

Post by dkinzer »

pjc30943 wrote:So a 10% duty cycle is expressed as 10.0 [...]
That is correct. The examples in the documentation are incorrect.
- Don Kinzer
Post Reply