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
Software Uart using interrupts.

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
zbasicandy



Joined: 26 Jan 2006
Posts: 193

Posted: 03 March 2006, 21:56 PM    Post subject: Software Uart using interrupts. Reply with quote

Can I use the same (input rx) pin as an interrupt pin(int0) on a software uart e.g. Comports 3-6?
Will this interrupt disturb the software uart from properly receiving data in the buffer.
What my application is to be made aware of data coming into the receive data buffer and process the data in a task waitforinterrupt.
I do not want to poll a status bits.
Any help? Newb.
Back to top
dkinzer
Site Admin


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

Posted: 03 March 2006, 22:59 PM    Post subject: Reply with quote

Although I have not tried what you suggest, I can't think of any problems that would arise. That said, you should be aware that the received character won't appear in the input queue until about 10 bit times (assuming 8 data bits, 1 stop bit) after the leading edge of the start bit. This means that if you prepare WaitForInterrupt() to trigger on the leading edge of the start bit you'll have to delay a bit before you can retrieve the character.
Back to top
DrBASICStamp



Joined: 07 Mar 2006
Posts: 8
Location: London

Posted: 09 March 2006, 6:49 AM    Post subject: i think i am having trouble here... Reply with quote

i am missing a lot of data,
i am tryin to talk to my RS232 devices which
are continuously sending me field data,
but missing a LOT of my data..
HELP!!!
Am i doing something wrong? Crying or Very sad
Back to top
stevech



Joined: 23 Feb 2006
Posts: 657

Posted: 09 March 2006, 21:29 PM    Post subject: Reply with quote

To help you, you'll need to provide more information than just "it doesn't work!"

how many serial streams and at what rates would be a good start.
Are these bi-directional or receive-only?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language 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