ddworken / the-bus-pirate

Automatically exported from code.google.com/p/the-bus-pirate
Other
0 stars 1 forks source link

"Wait until interrupt" command #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A new syntax command that pauses until the state of the AUX pin changes.

Might include:
1. Configurable direction (H->L, L->H).
2. Escape command/timeout to avoid a stuck device.

Original issue reported on code.google.com by ianles...@gmail.com on 31 Mar 2009 at 2:23

GoogleCodeExporter commented 9 years ago
Is this for scripting mode?

Original comment by BrentBXR on 17 Dec 2011 at 4:42

GoogleCodeExporter commented 9 years ago
I think it was requested for normal user mode, so you can put in a whole 
sequence of commands, but some wait for feedback from the device.

Boy have you been busy!

Original comment by i...@whereisian.com on 17 Dec 2011 at 7:31

GoogleCodeExporter commented 9 years ago
The application I had in mind concerning this feature is a 802.15.4 sniffer 
using a Microchip MRF24J40M(A/B/C) module. I was going to implement as a PC 
side app that used the Bus Pirate's BBIO mode. The MRF24J40MB modules are a 
nice and low cost ($8 for the 'A' version). It's a SPI module with an interrupt 
line to announce packet arrivals etc. Problem is that the MRF24J40 radio chip 
only has buffer space for just one packet. So in a sniffer/debugger app you 
have to get that packet off the chip asap or you lose packets. Sure, I could 
high-frequency poll the interrupt register instead of waiting for physical 
interrupt, but that wastes CPU cycles on the PC and you'll also have some lag. 
I'm not sure what's the best way to implement this. It would be important that 
such feature is also available in big bang mode too.

Original comment by jdesbon...@gmail.com on 17 Dec 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Oops... "big bang mode" (that would be fun!) ... "bit bang mode" of course :)

Original comment by jdesbon...@gmail.com on 17 Dec 2011 at 1:23