Go to Post Remember everyone, during build season, if you mess something up..... In the words of Adam Savage... Failure is always an option! (and so is blowing stuff up) - J.Warsoff [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

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:25.

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