# Bus Pirate Edu Kit Exercise no.10

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

## 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 A14
5V BB_+_right J14
5V BP_VPU BB_+_left
GND BP_GND BB_-_left
GND BB_-_left BB_-_right
GND BB_-_left A15
GND BB_-_left A16
GND BB_-_left A17
GND BB_-_right J15
MOSI BP_MOSI J17
CLK BP_CLK J16
• 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