Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
PWM channels swapped?

 
Post new topic   Reply to topic    Forum Index -> ZX-1281
Author Message
pjc30943



Joined: 02 Dec 2005
Posts: 220

Posted: 17 July 2008, 21:26 PM    Post subject: PWM channels swapped? Reply with quote

On a 1280n, based on the documentation the following should output PWM on L.3, L.4:

Code:

OpenPWM 7, SERVO_REFRESH_RATE, zxCorrectPWM      
PWM 7, SERVO_PWM_CENTER_PERCENT   '0.0625
PWM 8, SERVO_PWM_CENTER_PERCENT



However the outputs are on H.3, H.4.

Perhaps the documentation is incorrect in the pins shown in the system library (pg.191)?


EDIT: the important thing is knowing which timers are used for channels 7,8: is it TMR5 associated with port H, or TMR4 associated with port L?
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 17 July 2008, 22:53 PM    Post subject: Re: PWM channels swapped? Reply with quote

pjc30943 wrote:
the important thing is knowing which timers are used for channels 7,8: is it TMR5 associated with port H, or TMR4 associated with port L?
The ZBasic documentation is incorrect. Channels 7-9 are associated with Timer4 and output on Port H while channels 10-12 are associated with Timer5 and output on Port L. The table should read:
789101112
15, H.316, H.417, H.538, L.339, L.440, L.5
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-1281 Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group