Sonic and Sega Retro Message Board: Bitbanging - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 
Page 1 of 1

Bitbanging

#1 User is offline Aerosol 

Posted 08 March 2012 - 05:19 AM

  • FML and FU2
  • Posts: 6874
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?
I want to send data through my laptop's parallel port. It's actually a command that the rf module on the xbox360 needs to start looking for a wireless controller. I have arduino code to do this but...I don't have an arduino! I do have a parallel port though.

But it's hard to find any information on doing this. Can anyone point me in the right direction?

EDIT: I managed to get a response from the guy that wrote the arduino code. He told me very specifically what information the rf module needs.

Quote

Give the module the signal to listen by pulling the data pin low then send bits on the low clocks, pulling the data pin high after the command to let it know you're done (after which I put the microcontroller pin into high impedance). The module accepts instructions 10 bits long (I've not experimented with longer or shorter commands). The sync command is 0×04/b0000000100.

This post has been edited by AerosolSP: 08 March 2012 - 11:56 AM

#2 User is offline TmEE 

Posted 08 March 2012 - 12:29 PM

  • Watermelons are good stuff
  • Posts: 1708
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Mélodie, WaveMelon Träkker, bunch o other stahv.
  • Wiki edits:11
&H378 is for reading/sending stuff to the D0....D7 pins,
&H379 is for reading status input pins and enabling tristate to do a read on data port.
&H37A is for controlling status output pins

The port may vary, but its usually 378, 278 and sometimes 3BC

#3 User is offline Aerosol 

Posted 08 March 2012 - 12:45 PM

  • FML and FU2
  • Posts: 6874
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?
Awesome. Any clue on how to interface with the parallel port in windows xp?

#4 User is offline TmEE 

Posted 08 March 2012 - 03:27 PM

  • Watermelons are good stuff
  • Posts: 1708
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Mélodie, WaveMelon Träkker, bunch o other stahv.
  • Wiki edits:11
install UserPort and open up the required port range and use the means provided by your programming language to deal with hardware ports, and if that is not available you need some kind of port driver

#5 User is offline Aerosol 

Posted 09 March 2012 - 01:37 AM

  • FML and FU2
  • Posts: 6874
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?
Hmm...it looks like I might not be able to achieve what I'm trying to anyway. I can't find a way to pull the data pins on the parallel port high or low in software only. I need to pull a data pin low to let the rf module know I'm about to send a command, and pull it high so it knows when I'm done. If there's no way to do it in software, I'd have to do it in hardware, which is bit beyond me!

#6 User is offline TmEE 

Posted 09 March 2012 - 03:50 AM

  • Watermelons are good stuff
  • Posts: 1708
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Mélodie, WaveMelon Träkker, bunch o other stahv.
  • Wiki edits:11
You can pull any output signal high or low, unless you're in ECP mode, then it may do all kind of fun things for you... LPT port can roughly handle 1M accesses per second so it should be fine for most tasks. Bitbanking is exactly how one device I made for burning and dumping MD cards and memories works.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users