View Single Post
  #2   Spotlight this post!  
Unread 03-01-2007, 23:07
JimGRobot JimGRobot is offline
Registered User
AKA: Jim
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2005
Location: Arroyo Grande, CA
Posts: 29
JimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really nice
Re: File System for the RC

Quote:
Originally Posted by EHaskins View Post
Did you get the SPI working or are you just using an rs232-TTL converter?
My testing has been solely with the SPI port. I built an RS-232 to SPI bridge using an SX-48 microcontroller development board that echos input from the serial port out to the SPI port, and the reverse as well.

Doing this makes for some funky operation from the terminal, but it really boils down to typing an extra space character to get the DOS prompt back from the module. It ignores the extra spaces, so no harm done... I also wrote some testing code that talks SPI directly to the thing.

I have some more information and a link to the test program here, http://www.techranch.com/blog/, and will be posting more info soon...

One thing about SPI on the RC. There is a built-in SPI port on the PIC chip, but I think it is used to talk to the master processor. The test code I wrote just bit-twiddles some port pins to generate the clock signals. SPI can use as few as 3 pins, but this one uses 5; data out, data in, clock, chip select, and busy. There are 2 others available, data direction and reset. I am currently resetting the chip from a port pin, but I doubt that I really need to do this. The data direction signal would make communication with the module more predictable, but I probably won't use it.

I will be posting some more sample code on the blog...

I hope this helps.

Thanks,
Jim