Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   EDU-RC, USART2 (TTL), CMUCAM (http://www.chiefdelphi.com/forums/showthread.php?t=28315)

ChrisHomer44 30-04-2004 15:31

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

Greg Ross 30-04-2004 16:20

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.

Kevin Watson 30-04-2004 21:38

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


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

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