Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Topic started by: audiohacked on November 13, 2009, 07:21:05 pm

Title: 2nd AUX pin
Post by: audiohacked on November 13, 2009, 07:21:05 pm
I'm wondering if its possible to use the ADC pin as a secondary AUX pin. And if that's possible, then I'll modify the firmware and send Ian a patch (or whatever).

I'd like to use the Bus Pirate for the Xbox360 JTAG hack; I'm just missing one more pin.
Title: Re: 2nd AUX pin
Post by: ian on November 13, 2009, 07:45:15 pm
How many pins do you need? The ADC pin goes through a resistor divider, so it's not to terribly great as an output.
Title: Re: 2nd AUX pin
Post by: audiohacked on November 13, 2009, 08:00:26 pm
i need a total of 7 including GND, and i think its v3.3 chip voltage.
Title: Re: 2nd AUX pin
Post by: Scorpia on November 14, 2009, 11:43:03 am
something that may or may not work.

I have been thinking of using some of the pins that are mapped to the icsp header for I/O. as far as i can see, it should be quiet easy to get an extra 2 maybe 3 i/o from there on a temparary basis at least.

anyway im sure it has its downsides but it might be something to think about
Title: Re: 2nd AUX pin
Post by: ian on November 14, 2009, 11:56:57 am
That's what I was going to say - use the ICSP header pins. They're RB0 and RB1, so they even have PPS (for SPI, timers, etc), BUT they're analog pins so they're not 5volt tolerant.
Title: Re: 2nd AUX pin
Post by: Scorpia on November 14, 2009, 01:03:35 pm
im not sure what other i/o pins are left on the pic. but ian maybe its might be worth routing them to some extra i/o pins on the next hardware revision.

more i/o is allways good
Title: Re: 2nd AUX pin
Post by: ian on November 14, 2009, 01:25:55 pm
There's a couple, but the components are so dense that there's not much room to route any extra traces on a 2-layer PCB. I removed the serial header tap in v3 because I had to make room for other stuff, so it's a trade-off now unless the PCB gets bigger. Not that I object to that, but I'd rather not make another BP revision for a while, and I'd like to move to a chip that's in better supply if I ever do.

Kind of unrelated - Eric at Seeed sent me a sample housing (case) for the Bus Pirate v3, and he's looking for a tool-box type case for the Bus Pirate, cables, probes, and perhaps a test PCB like the 3EEPROM. I'm sure everything would be offered loose, but I'd like to see a bundle with housing + case + USB/probe cables + 3EEPROM. Any thoughts? I'll try to post a picture of the plastic housing soon, it's a perfect fit, just needs some holes.
Title: Re: 2nd AUX pin
Post by: audiohacked on November 17, 2009, 08:21:32 am
To me, having ADC is less useful than having additional IOs. As soon as I can figure out the Microchip Docs, I'll see what I can hack together in the firmware.

Might take me more time than it took to write the GUI program from scratch, it's kinda been a while since I did any uController programming.
Title: Re: 2nd AUX pin
Post by: ian on November 17, 2009, 08:30:31 am
Let me know if there's anything you want me to code. I'd add an option to toggle the ADC pin, but it's not useful as an output because of the resistor voltage divider that lets it measure up to 6.6volts. You could use it that way if you removed the resistors, but like the ICSP pins, it's analog so 3.3volts max.
Title: Re: 2nd AUX pin
Post by: Scorpia on November 17, 2009, 08:57:09 am
maybe is it worth  adding a way of toggling the icsp pins?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01132062208session_write_close ( )...(null):0
20.01172193784ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01172194560Database_MySQL->query( ).../DatabaseHandler.php:119
40.05732333272Database_MySQL->error( ).../Db-mysql.class.php:273