Go to Post The solution to that "problem" is obvious: practice driving. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-04-2004, 15:31
ChrisHomer44 ChrisHomer44 is offline
Registered User
#0612
 
Join Date: Apr 2004
Location: Princeton, New Jersey (Originally From Toronto, Ontario)
Posts: 1
ChrisHomer44 is an unknown quantity at this point
EDU-RC, USART2 (TTL), CMUCAM

Hi, I am currently trying to interface the CMUCAM with the EDU-RC Controller via TTL. Basically, what I need to do is read in a string of characters. I have been trying to use the gets2USART command but it requires a string of known length. Instead I have been trying to read the characters individually but the buffer appears to be getting jammed. Does anyone know how to clear the data buffer for the TTL port?

Alternatively, does anyone know a good what to read in multiple characters. Single characters I have working but when I move to strings of chracters, it jams.

Hope someone can help.

- Chris
  #2   Spotlight this post!  
Unread 30-04-2004, 16:20
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: EDU-RC, USART2 (TTL), CMUCAM

Haven't used the TTL port myself, but the Having trouble with TTL port thread from back in February might help.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #3   Spotlight this post!  
Unread 30-04-2004, 21:38
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: EDU-RC, USART2 (TTL), CMUCAM

Quote:
Originally Posted by ChrisHomer44
Alternatively, does anyone know a good what to read in multiple characters. Single characters I have working but when I move to strings of chracters, it jams.
Yeah, not having a real 16550-style UART on-board is the pits because you have to read one character at a time. If I were you, I'd learn how to implement an interrupt-based serial rx handler with a circular buffer. If you get stuck, leave a message here and you'll get help.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TTL Ports bludstayne Programming 3 02-03-2004 16:41
Having trouble with TTL port Gene F Programming 12 10-02-2004 15:23
TTL pins Dave... Control System 3 07-02-2004 23:59


All times are GMT -5. The time now is 08:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi