RAW3WIRE>r:5<<<read 5 bytes (DEC)
READ 0x05 BYTES:
0x00 0x00 0x00 0x00 0x00
RAW3WIRE>r:0x05<<<read 5 bytes (HEX)
READ 0x05 BYTES:
0x00 0x00 0x00 0x00 0x00
RAW3WIRE>r:0b101<<<read 5 bytes (BIN)
READ 0x05 BYTES:
0x00 0x00 0x00 0x00 0x00
RAW3WIRE>

Many Bus Pirate commands can be repeated by adding ‘: ‘ to a command, followed by the number of times to repeat the command. To read five byte, enter r:5, etc. The repeat values can be HEX/DEC/BIN. In the example above we read five bytes each time using a different number format.

RAW3WIRE>0x40:5<<<write 0x40, repeat 5 times
WRITE: 0x40 , 0x05 TIMES
RAW3WIRE>^:5<<<send 5 clock ticks
0x05 CLOCK TICKS
RAW3WIRE>&:5<<<delay 1uS, repeat 5 times
DELAY 0x05uS
RAW3WIRE>

Depending on the bus mode, you can repeat reads, writes, macros, clock ticks, delays, and more. Refer to the Bus Pirate manual for detailed command tables for each mode.

Advertisements