Categories

Bus Pirate: Repeat command

Posted on Thursday, September 3rd, 2009 in Bus Pirate by Ian

See the latest version in the documentation wiki.

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.

This entry was posted on Thursday, September 3rd, 2009 at 12:00 am and is filed under Bus Pirate. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Crawford: Biscuits!
  • hli: Sunday++
  • Jack: Hello! Any board relating to LC filter circuits?
  • Fabien: PCB is life, life is PCB.
  • Kurt: We sleep safely at night because rough men stand ready to visit violence on those who would harm us. (Rough women, too.)