Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Topic started by: Pirate 3258 on November 22, 2019, 11:29:21 am

Title: Pirate V3.6 fw5.10 can't see clock SPI
Post by: Pirate 3258 on November 22, 2019, 11:29:21 am
Hi folks is there any way to manipulate the clock manually? The only reason I ask is that I am attempting SPI comms, and using SIGROK to read the outputs. I get CS ok, along with MOSI but no clock! Self-test passes ok. Something is odd for sure.
When I put the PIC back in that produces the SPI data for the CCT I can see all outputs so there is clearly something at odds with the bus pirate? Oh I am using hiZ with 5v pullups too.
Title: Re: Pirate V3.6 fw5.10 can't see clock SPI
Post by: Pirate 3258 on November 22, 2019, 11:36:24 am
Please Ignore, I forgot pullups :-/
Title: Re: Pirate V3.6 fw5.10 can't see clock SPI
Post by: Pirate 3258 on November 22, 2019, 11:44:14 am
Hmm, so it is working, however, I have a couple of questions. Firstly, why is there such a long space between CS changing state and data/clock starting, and between bytes of data too? I am not asking to look at the response from the SPI chip. Also, would it be possible to change things so that data is changed mid-clock instead of on a clock change? I think this would be much better for stability at high speeds?

Thanks
Title: Re: Pirate V3.6 fw5.10 can't see clock SPI
Post by: ian on November 22, 2019, 11:58:20 am
The delay is due to the Bus Pirate pushing out the display text between bus operations. This is a major limitation of the design, and we are correcting it by adding a FPGA to a new "Ultra" version.

You can adjust the clock and data polarity, phase, etc during setup. I believe you can choose from mid clock or falling/rising edge.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00912057400session_write_close ( )...(null):0
20.00942188992ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00942189768Database_MySQL->query( ).../DatabaseHandler.php:119
40.05272328504Database_MySQL->error( ).../Db-mysql.class.php:273