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

Haven’t used the TTL port myself, but the Having trouble with TTL port thread from back in February might help.

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