Go to Post Sorry, solenoids don't speak English. You can talk at them, but they won't answer except maybe to sigh... - Mark McLeod [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2013, 23:14
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Bit Banging SPI Slave on CRIO

Our team is currently in the process of trying to bit bang out a SPI slave client so we can talk to our co-processor (raspberry pi)that we want to have running our image processing. Since the co-processor does not have a SPI slave client built in I have decided to explore writing our own software based(Bit Banged) SPI slave client to accomplish this.

We are currently working with Java and Command Based robot

My initial idea going forward is to have an interrupt 'listening' for both rising and falling edged of the master's clock signal, then based on the edge, write out or read in off of the MISO/MOSI pins.

Now back in Pre Crio days we were working directly with the micro-controller to do something like this. However with command based robot, the FPGA, Squawk, etc etc are all in the way of real time responses, there have to be some caveats I don't know about.

My question is has any one gone and created a synchronous interrupt inside of command based robot? What did you learn? Can you even get to that level to be able to do this at all in Java?

In the spirit of sharing we will start posting our findings here and our code, when we have something meaningful finished.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2013, 21:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Bit Banging SPI Slave on CRIO

I haven't tried to bit bang SPI on the cRIO, but it does seem like it would difficult in Java. In college I did it on a microcontroller, and it wasn't too bad with easy access to interrupts.

I've been playing with the SPI library posted here: http://www.chiefdelphi.com/forums/sh...ad.php?t=99803 It might be easier to use that, and bit bang an SPI slave on the Raspberry Pi.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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