Search the web
Sign In
New User? Sign Up
basicx · Discussion list for the BasicX family of microcontroller chips
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Serial in?   Message List  
Reply | Forward Message #23102 of 23222 |
Re: Serial in?

--- In basicx@yahoogroups.com, Tom Becker <gtbecker@...> wrote:
>
> > ... after I call clearqueue, the queue is 21. Always. Why?
>
> Is there a data source on the port? If yes, is the queue simply
> filling? Do you see the same thing if the input pin is held high?
>
> Tom
>
.............................................
LADY is a powerfull person. who alwayes doing for over feamily and group mamber





Fri Jul 3, 2009 8:17 am

randhir_4466
Offline Offline
Send Email Send Email

Forward
Message #23102 of 23222 |
Expand Messages Author Sort by Date

I'm trying to read seven bytes from a Picaxe 08M...here's the code I have so far, which doesn't work. Also, it seems to keep restarting... Option Explicit ...
Chris
hiflyer2112
Offline Send Email
Jun 14, 2009
5:13 pm

... Well, your input queue only has room for two bytes after overhead, but you wait for seven bytes to be queued before reading it. That overrun will do...
Tom Becker
b19063
Online Now Send Email
Jun 14, 2009
8:17 pm

That WAS set to 30, must have been written over somehow...still it doesn't work, though. I keep getting a queue count of 21, though no data is being sent yet....
Chris
hiflyer2112
Offline Send Email
Jun 14, 2009
11:59 pm

... Try if count >= 7 then Tom...
Tom Becker
b19063
Online Now Send Email
Jun 15, 2009
12:07 am

And a parallel question: Can we create 2 input/output ports like the one you are creating on your program? Did anyone already try? Suggestions? Thanx David...
David Sousa Mendes
davidsousame...
Offline Send Email
Jun 15, 2009
10:05 pm

Tom, What do you mean by: "your input queue only has room for two bytes after overhead"? What do you mean by overhead? Which overhead? David Sousa Mendes, ...
David Sousa Mendes
davidsousame...
Offline Send Email
Jun 15, 2009
10:10 pm

... Each queue needs nine bytes to store working variables, so a queue that can hold 20 bytes must be 29 bytes long; a single-byte queue must be 10 bytes long,...
Tom Becker
b19063
Online Now Send Email
Jun 15, 2009
10:31 pm

hello group there is some mistery (at least for me) on how much bytes you should reserve on the commands: dim com3_out (1 to 30) as byte and dim com3_in (1 to...
David Sousa Mendes
davidsousame...
Offline Send Email
Jun 15, 2009
10:31 pm

I can troubleshoot myself, I'm just mystified here...I'll break it down so I can explain better... The Picaxe isn't even hooked up right now. I've tied the pin...
Chris
hiflyer2112
Offline Send Email
Jun 16, 2009
12:31 am

Try this, Chris. Set the monitor com rate to 19200 since you use Debug Print. The input pin is pulled high here and I see no serial activity as a result. If...
Tom Becker
b19063
Online Now Send Email
Jun 16, 2009
2:34 am

Ok, I'm still trying to figure out what I'm doing wrong here...after I call clearqueue, the queue is 21. Always. Why?...
Chris
hiflyer2112
Offline Send Email
Jun 22, 2009
9:00 pm

... Is there a data source on the port? If yes, is the queue simply filling? Do you see the same thing if the input pin is held high? Tom...
Tom Becker
b19063
Online Now Send Email
Jun 22, 2009
9:06 pm

I've got the code working somewhat, enough for my purposes...when nothing is connected to the port, I get zero for a queuecount. However, when I connect the...
Chris
hiflyer2112
Offline Send Email
Jun 23, 2009
1:08 pm

... ............................................. LADY is a powerfull person. who alwayes doing for over feamily and...
randhir_4466
Offline Send Email
Jul 3, 2009
11:32 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help