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
Matrix Keypad Interfacing
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Forum Index -> ZX-24
Author Message
sselver



Joined: 27 Apr 2010
Posts: 14

Posted: 21 September 2010, 22:05 PM    Post subject: zxfastPWM Reply with quote

Don,

Indeed, I was using zxfastpwm simply because that setting was used in the tutorial. I'll give the zxcorrectpwm setting a try this evening. Thanks again for the kind (and timely) help!

Sincerely,

Steve Selverston
Back to top
spamiam



Joined: 13 Nov 2005
Posts: 689

Posted: 22 September 2010, 11:59 AM    Post subject: Reply with quote

check out the appnote I wrote a few years ago about PWM and related topics. It is a little outdated because ZBasic now will do PWM through its own built-in functions. This appnote tells how to do it manually, but it also details some of the theory and practical aspects of using PWM. For instance, under what circumstances you might not be able to get to 100.00% or 0.00%.

-Tony
Back to top
sselver



Joined: 27 Apr 2010
Posts: 14

Posted: 24 September 2010, 0:54 AM    Post subject: Reply with quote

Hi Don,

I'm still seeing the same issue with the zxcorrectpwm. I was able to get it working by looping the putdac command, but I'd still prefer to go with the pwm command if possible. Any other tips or suggestions? Thanks again,

Steve
Back to top
dkinzer
Site Admin


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

Posted: 24 September 2010, 6:32 AM    Post subject: Reply with quote

sselver wrote:
Any other tips or suggestions?
You might look at the output with an oscilloscope, if you have one, to see if there is actually a pulse generated when the value passed calls for zero duty cycle. You could also add code to output the timer register values and check them against what they should be. Tony's application note will be helpful for this purpose.

I'll be able to look into the issue myself early next week.
Back to top
sselver



Joined: 27 Apr 2010
Posts: 14

Posted: 26 October 2010, 20:33 PM    Post subject: 3.0 Versus 3.0.1 Reply with quote

Hello,

I've got a nice working project using the zx24 with a keypad and an lcd. Here's on question though: are there any changes between zbasic 3.0 and zbasic 3.0.1 that involve serial communications? For some reason, the program works fine with a newer chip (3.0.1), but when I try to compile it on a slighly older chip (with 3.0) it won't work. Any ideas?

Thanks

Steve
Back to top
dkinzer
Site Admin


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

Posted: 26 October 2010, 21:11 PM    Post subject: Re: 3.0 Versus 3.0.1 Reply with quote

sselver wrote:
For some reason, the program works fine with a newer chip (3.0.1), but when I try to compile it on a slighly older chip (with 3.0) it won't work.
The compiler has a version number that is different from but similar to the ZX Library version number (used on native mode devices) and the Virtual Machine version number (used on VM mode devices). I suspect that you're referring to either ZX Library version numbers or VM version numbers. Where do you see the version numbers to which you referred? Also, it may be helpful if you indicate precisely which specific chip you're using (e.g. ZX-24, ZX-24p, ZX-24n, etc.).

The Downloads Page has links to the "recent changes" files for the various components.
Back to top
sselver



Joined: 27 Apr 2010
Posts: 14

Posted: 26 October 2010, 21:34 PM    Post subject: Reply with quote

Hey Don,

Sorry- both are zx-24p chips. The version number I'm referring to is the one that appears in the debug window immediately after compiling (ex: ZBasic 3.0 and Zbasic 3.0.1. Thanks for the info

Steve
Back to top
dkinzer
Site Admin


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

Posted: 26 October 2010, 21:57 PM    Post subject: Reply with quote

sselver wrote:
The version number I'm referring to is the one that appears in the debug window immediately after compiling
OK. That is the version number of the VM. In the recent changes, you'll see that there was a problem introduced in v3.0.0 related to the "software UARTs", i.e. channels 3-6. However, I believe that it wasn't fixed until v3.0.4 (the current release).

You can update the VM firmware in the older chip by downloading the .zvm file (see the downloads page) and then using the ZX Firmware Update on the Device Options dialog (accessible via the Options menu). The process is fairly simple but you must be certain that you don't accidentally de-power the device while it is updating or reset it or do anything else that interferes with the communication process. If that does happen, you'll have to perform the emergency update procedure (described in the documentation).
Back to top
sselver



Joined: 27 Apr 2010
Posts: 14

Posted: 29 October 2010, 23:13 PM    Post subject: Reply with quote

Perfect! That did the trick. Thanks

Steve
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-24 Time synchro. with the server - Timezone/DST with your computer
Goto page Previous  1, 2
Page 2 of 2

 


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