# Bus Pirate Edu Kit Exercise no.10

(Difference between revisions)
 Revision as of 14:19, 11 April 2013 (view source)Arakis (Talk | contribs) (→Bus Pirate Terminal)← Older edit Revision as of 14:21, 11 April 2013 (view source)Arakis (Talk | contribs) (→The Circuit)Newer edit → Line 4: Line 4: ==The Circuit== ==The Circuit== [[Image:BP_EK_E10_schematic.jpg|300px]][[Image:BP_EK_E10_circuit.jpg|300px]] [[Image:BP_EK_E10_schematic.jpg|300px]][[Image:BP_EK_E10_circuit.jpg|300px]] + + ===Breadboard legend=== + {| class="wikitable" border = "1" + ! IC Location !! Breadboard wiring legend + |- + | + {| border = "1" + ! IC !! PIN1 (+) !! PIN2 (-) + |- + | 24LC04B || E14 || E15 + |} + || + {| border = "1" + ! Signal name !! Contact1 !! Contact2 + |- + | 5V || BP_5V || BB_+_left + |- + | 5V || BB_+_left || BB_+_right + |- + | 5V || BB_+_left || A16 + |- + | 5V || BB_+_right || J14 + |- + | 5V || BB_+_right || J15 + |- + | GND || BP_GND || BB_-_left + |- + | GND || BB_-_left || A17 + |- + | MOSI || BP_MOSI || J17 + |- + | MISO || BP_MISO || A15 + |- + | CLK || BP_CLK || J16 + |- + | CS || BP_CS || A14 + |} + |} + *The (+) and (-) next to PIN1 and PIN2 are intended for devices such as LEDs, where PIN1 should be the anode and connected to a higher potential then PIN2. ==Bus Pirate Terminal== ==Bus Pirate Terminal==

## The Circuit

IC PIN1 (+) PIN2 (-)
24LC04B E14 E15
Signal name Contact1 Contact2
5V BP_5V BB_+_left
5V BB_+_left BB_+_right
5V BB_+_left A16
5V BB_+_right J14
5V BB_+_right J15
GND BP_GND BB_-_left
GND BB_-_left A17
MOSI BP_MOSI J17
MISO BP_MISO A15
CLK BP_CLK J16
CS BP_CS A14
• The (+) and (-) next to PIN1 and PIN2 are intended for devices such as LEDs, where PIN1 should be the anode and connected to a higher potential then PIN2.

## Bus Pirate Terminal

HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>4
Set speed:
1. ~5KHz
2. ~50KHz
3. ~100KHz
4. ~400KHz

(1)>4
I2C>W
POWER SUPPLIES ON
I2C>P
Pull-up resistors ON
I2C>[0xa6 0 1 2 3 4 5 6 7 8]
I2C START BIT
WRITE: 0xA6 ACK
WRITE: 0x00 ACK
WRITE: 0x01 ACK
WRITE: 0x02 ACK
WRITE: 0x03 ACK
WRITE: 0x04 ACK
WRITE: 0x05 ACK
WRITE: 0x06 ACK
WRITE: 0x07 ACK
WRITE: 0x08 ACK
I2C STOP BIT
I2C>[0xa6 0]
I2C START BIT
WRITE: 0xA6 ACK
WRITE: 0x00 ACK
I2C STOP BIT
I2C>[0xa7 r:8]
I2C START BIT
WRITE: 0xA7 ACK
READ: 0x01 ACK 0x02 ACK 0x03 ACK 0x04 ACK 0x05 ACK 0x06 ACK 0x07 ACK 0x08
NACK
I2C STOP BIT
I2C>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>1