View Single Post
  #12   Spotlight this post!  
Unread 02-05-2008, 18:54
DanielR. DanielR. is offline
Registered User
no team
 
Join Date: Apr 2008
Location: SELU
Posts: 6
DanielR. is an unknown quantity at this point
Re: using mplab with vex

Quote:
Originally Posted by Foster
On the serial port question, I've hooked a number of different serial devices to the Vex.

I hope you don't mind if I make you my new best friend then. I have been trying to get to this to work for months.

Quote:
Originally Posted by Foster
1) Are you sure you have the right voltage levels? The serial ports are at a TTL, not RS-232.
Yes both boards operate at TTL levels.

Quote:
Originally Posted by Foster
2) Baud rate - are you sure the baud rates and the bit configurations are set?
That is one area that I might be having trouble with. I can easily control the baud rate and settings for the ABB, but the Vex is a little more confusing to me. I believe I have it set to No parity, 8 bit transmission, at 115200 baud.

I thought I read that the Vex serial is not inverted, but I can't capture anything from it unless I have the serial input (on the ABB) set to inverted.
Also I can't confirm that information as correct.


Quote:
Originally Posted by Foster
3) Are you polling fast enough to get the bits back without a buffer overflow? Do you get framing errors?
I am not exactly sure what you are asking. What do you mean by get the bits back? The atom does not have a buffer. It is, of course, possible to make a software driven buffer, but that has its own issues.
By "get framing errors" are you asking if an error flag is being set? I never thought to check for that. When I started on this task I knew nothing about serial communication, nor even very much about PICs.
I am still trying to assimilate all the necessary data, compile it, and integrate it into my knowledge base. I am not a robot.

Quote:
Originally Posted by Foster
Are you using the base code, WPILib or something else?
By base code do you mean the Vex startup code? If so, then yes. With Kevin Watson's serial_ports stuff involved as well. That was the only way I could find to control the serial comm on the Vex. If there is an easier (or more robust) solution, I would love to hear it.
Reply With Quote