Bus Pirate: Repeat command

See the latest version in the documentation wiki.

RAW3WIRE>r:5<<<read 5 bytes (DEC)
READ 0×05 BYTES:
0×00 0×00 0×00 0×00 0×00
RAW3WIRE>r:0×05<<<read 5 bytes (HEX)
READ 0×05 BYTES:
0×00 0×00 0×00 0×00 0×00
RAW3WIRE>r:0b101<<<read 5 bytes (BIN)
READ 0×05 BYTES:
0×00 0×00 0×00 0×00 0×00
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>0×40:5<<<write 0×40, repeat 5 times
WRITE: 0×40 , 0×05 TIMES
RAW3WIRE>^:5<<<send 5 clock ticks
0×05 CLOCK TICKS
RAW3WIRE>&:5<<<delay 1uS, repeat 5 times
DELAY 0×05uS
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.

Tags: