Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Development => Topic started by: jrt on June 02, 2010, 10:37:35 pm

Title: Making sense of the Bus Pirate schematic
Post by: jrt on June 02, 2010, 10:37:35 pm
I've been looking at BusPirate-v3a-final.sch to try and understand how the Bus Pirate power supplies and pullups work.

Am I right in thinking that:

Why does MOSI have a 2K pullup while the others have 10K?

Thanks.
Title: Re: Making sense of the Bus Pirate schematic
Post by: Sjaak on June 02, 2010, 10:51:07 pm
The pic is indeed running from 3v3, so the max output voltage is 3v3. The pins are 5v tolerant and 3v3 is detected as 1 by (most) 5v logic.

However with the pullups and a different voltage applied to Vpu the output can be much higher (max.  5v5!). See the buspirate  manual about this: http://hackaday.com/2009/07/01/mixed-vo ... us-pirate/ (http://hackaday.com/2009/07/01/mixed-voltage-interfacing-with-the-bus-pirate/) and http://dangerousprototypes.com/2009/07/ ... resistors/ (http://dangerousprototypes.com/2009/07/27/bus-pirate-practical-guide-to-pull-up-resistors/)

The reason for the 2k pullup is that 1 wire devices can be parasitic powered (just connect the data  and gnd) To give them enough juice the pullup needs to be 2k. See http://dangerousprototypes.com/2009/09/ ... istor-mod/ (http://dangerousprototypes.com/2009/09/02/bus-pirate-2k-pull-up-resistor-mod/)

More info in the buspirate manual: http://dangerousprototypes.com/bus-pirate-manual/ (http://dangerousprototypes.com/bus-pirate-manual/) There is a link to the hw discussion which answers most of your questions.
Title: Re: Making sense of the Bus Pirate schematic
Post by: jrt on June 02, 2010, 10:57:32 pm
Thanks for the links
Title: Re: Making sense of the Bus Pirate schematic
Post by: ian on June 03, 2010, 09:53:11 am
I'd only add that the ADC can't provide any voltage. It's an input only pin, fed through a resistor divider, so ti can measure up to 6volts (6.6 really, but 6 to be safe).

( ! ) 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.00912045752session_write_close ( )...(null):0
20.00942177328ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00942178104Database_MySQL->query( ).../DatabaseHandler.php:119
40.05302316816Database_MySQL->error( ).../Db-mysql.class.php:273