How to generate arbitrary logic with bus pirate ?

Hacking multi-tool. Get one for $30, including worldwide shipping.

How to generate arbitrary logic with bus pirate ?

Postby thinker29 » Sun Mar 04, 2018 2:19 am

Hello all,
I would like to use bus pirate to generate arbitrary logic signal, eg:
step 1: select a clock out source, eg: 115000 bit/sec
step 2: write 0xe1 0xe2 0xe3 , this will write 24 bits continuously at 115000 bit/sec rate.

BP supports uart but this is not uart, as there is no need for start/stop bit and parity. Just arbitrary clock out of data bits.

Thanks!
Jason.
thinker29
Newbie
Newbie
 
Posts: 1
Joined: Sun Mar 04, 2018 2:13 am

Re: How to generate arbitrary logic with bus pirate ?

Postby USBEprom » Sun Mar 04, 2018 6:45 am

Hi Jason.
Sorry, I know nothing but perhaps you can try to take a look a this:

http://openschemes.com/2012/03/14/bus-p ... ddle-tool/

It is provided with source code, so maybe you can change some things to make the best from it.

Be seeing you.

U.Sb
USBEprom
Full Member
Full Member
 
Posts: 158
Joined: Wed Mar 14, 2012 4:09 pm

Re: How to generate arbitrary logic with bus pirate ?

Postby tayken » Thu Mar 08, 2018 9:01 am

How about binary scripting mode? http://dangerousprototypes.com/docs/Bus ... pting_mode

Not sure about the speed requirement but either the SPI or the raw-2wire modes should get you started:
http://dangerousprototypes.com/docs/SPI_(binary)
http://dangerousprototypes.com/docs/Raw-wire_(binary)
User avatar
tayken
Developer
Developer
 
Posts: 1520
Joined: Sat Dec 12, 2009 10:58 am
Location: Tokyo, Japan

Re: How to generate arbitrary logic with bus pirate ?

Postby USBEprom » Thu Mar 08, 2018 2:55 pm

Hi tayken.
Thank you very much for reporting, sir.
I missed that, I did not know it.
I really appreciated your post, thanks tayken!

Be seeing you.

U.Sb
USBEprom
Full Member
Full Member
 
Posts: 158
Joined: Wed Mar 14, 2012 4:09 pm


Return to Bus Pirate Support