📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 3 Day orders by 11am ET Friday December 13 📬❄️📦
0

Need help with special serial protocol
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Need help with special serial protocol

by duckythescientist on Sat Nov 15, 2008 3:59 pm

I am trying to interface with a Nintendo Gamecube controller. Serial is bi-directional over one wire with a pullup, no clock. A '1' is sent by pulling the line low for 1us then leaving the line high for 3us. A '0' is sent by pulling the line low for 3us then leaving the line high for 1us. There is no delay between bits. More details are here http://www.int03.co.uk/crema/hardware/gamecube/gc-control.htm. Code or a library or even an idea of how to go about writing code to send and receive data like this would be very much appreciated.
duckythescientist
 
Posts: 7
Joined: Thu Jul 24, 2008 11:14 pm

Re: Need help with special serial protocol

by Amberwolf on Sat Nov 15, 2008 4:56 pm

It sounds a bit like the 1-Wire protocol by Dallas (Maxim)
http://www.google.com/search?q=1-Wire+protocol.

But I'm not sure, so you can also browse this search:
http://www.google.com/search?q=nintendo ... r+protocol
that seems to have some research already done on the matter.
Watch me build an electric bike from assorted junk!
Alternative Energy Sources for the Home from Recycled Junk
A subsidiary of Cybernetic Necromancers, Discorporated:
"We Bring Dead Things To Life"
Amberwolf
 
Posts: 310
Joined: Wed Oct 08, 2008 2:42 am
Location: Phoenix, AZ, USA

Re: Need help with special serial protocol

by duckythescientist on Sun Nov 16, 2008 3:09 pm

Thanks for the links. I looked more into one wire and I think it might work if I modify the timing. If you or anyone else has any ideas I still would like help.
duckythescientist
 
Posts: 7
Joined: Thu Jul 24, 2008 11:14 pm

Re: Need help with special serial protocol

by Amberwolf on Sun Nov 16, 2008 6:40 pm

Sorry, I don't know any more on the topic, but it did seem like the first couple links in the google search had a lot of info (and code) that should be useful.
Watch me build an electric bike from assorted junk!
Alternative Energy Sources for the Home from Recycled Junk
A subsidiary of Cybernetic Necromancers, Discorporated:
"We Bring Dead Things To Life"
Amberwolf
 
Posts: 310
Joined: Wed Oct 08, 2008 2:42 am
Location: Phoenix, AZ, USA

Please be positive and constructive with your questions and comments.