Power OFF and try to read data. DEADLOCK, a bug! BusPirate device has to be re-pluged to reset...
SPI>w
Clutch disengaged!!!
POWER SUPPLIES OFF
SPI>[rr]
/CS ENABLED
READ:
Another, related bug. It seems like BusPirate BASIC cannot activate Power or when it is done then it is activated in some wrong way (LED signaling that power is active is ON, so power was activated in BASIC). The following BASIC program ends in deadlock when it is started and power was not activated with W command in manual mode. Power should be activated at line 10, LED is activated. Deadlock is at line 50, the first RECEIVE statement:
10 PSU 1
20 PULLUP 1
30 DELAY 5
40 START
50 LET A= RECEIVE
60 LET B= RECEIVE
70 LET W=A*256+B
80 STOP
90 PSU 0
100 PRINT A;",";B;",";W
My BusPirate is cute little box, a clone device from eBay:
I play with MAX6675K module. I found that when I set power off and than try try to read from SPI, BusPirate ends in deadlock condition.
Configure SPI mode:
Activate POWER and Pull UPs resistors (SPI device is powered from +5V, VPU wire is connected to +5V). I can read data (16 bits), no problem:
Power OFF and try to read data. DEADLOCK, a bug! BusPirate device has to be re-pluged to reset...
Another, related bug. It seems like BusPirate BASIC cannot activate Power or when it is done then it is activated in some wrong way (LED signaling that power is active is ON, so power was activated in BASIC). The following BASIC program ends in deadlock when it is started and power was not activated with
W
command in manual mode. Power should be activated at line 10, LED is activated. Deadlock is at line 50, the first RECEIVE statement:My BusPirate is cute little box, a clone device from eBay: