|
Re: Interfacing with LCD to debug
Quote:
Originally Posted by tseres
i have a more general question...how can i write and send a text command to the built in TTL port on the rc? without going into detail, a GPS reciever using the standard NMEA protocol accepts TTL ASCII text strings as commands, and sends the serial amswers back...how would i go about reading and writing from the TTL port like this, or at least use a digital pin to do this?
|
This depends on your code. If you are using Kevin's serial_port.c/h library, then the instructions are in the file. Basically make sure you have ENABLE_SERIAL_PORT_TWO_TX defined for writing and ENABLE_SERIAL_PORT_TWO_RX defined for reading, and have the appropriate baud rate set. Then you set the global variable "stdout_serial_port" to the value of "SERIAL_PORT_TWO". After that, any printf() will go to the TTL line instead of the debug line. Please note, however, that it's possible I'm getting ports ONE and TWO mixed up.
__________________
2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
|