5 ms·
The Joy of Bit-Banging
- mooism2 14y agoTypo in the first sentence: the link text “big-bang” should, I presume, be “bit-bang”.
- jgrahamc 14y agoThanks.
- joezydeco 14y agoThe Saleae Logic is a beautiful device. I can't believe I tried to analyze digital traffic with my old scope before this.
- zokier 14y agoYou might be interested in this talk: http://lwn.net/SubscriberLink/515569/aab5102c0daa0f5d/ http://lwn.net/SubscriberLink/515569/aab5102c0daa0f5d/
- joezydeco 14y agoYeah, I've played with a Bus Pirate on the bench. I just feel more comfortable throwing the Saleae around than the exposed Pirate PCB. Saleae's customer service is also completely awesome.
- jevinskie 14y agoI am really tempted to get it. I have a $390 LogicPort [0] which is a 34 channel, 500 MHz probe (quite a bit beefier than the Logic's 8 channel, 24 MHz). The hardware is great but the software is rather terrible. There is no way to add your own protocol decoders. Export features are limited. I wanted to write my own GUI so I contacted the company and asked if they had any documentation on the USB protocol. Their response was snarky and rude. Sad, because I really wanted a Linux version. Maybe reversing the protocol wouldn't be too difficult... [0]: http://www.pctestinstruments.com/ http://www.pctestinstruments.com/
- bradfa 14y agoSigrok [1] plans to support your LogicPort but doesn't yet. Help them out instead of buying a Saleae. [1]:http://sigrok.org/wiki/Supported_hardware#Logic_analyzers http://sigrok.org/wiki/Supported_hardware#Logic_analyzers
- jevinskie 14y agoThank you for showing me this! I didn't know about the project before. It would be a big motivation if others are working on reversing the protocol as well!
- deleted 14y ago[deleted]
- zwieback 14y agoAbsolutely. One of the guys here at HP got one and within weeks our group owned half a dozen. No reason not to have one in each cube. I have an expensive mixed-signal scope that I used for LA before but now only switch it on if I have to look at analog.
- DavidZhangToGo 14y agoI love bit-banging, sometimes you want to go that route even if the uC does have specialized hardware. I remember having to bit-bang I2C on multiple occasions because the standards are so loose.. good times.
- pdmccormick 14y agoRecently I had to bitbang I2C through a voltage level translating buffer that had a direction setting pin that needed to be manipulated when sampling SDA on input. The uC's hardware I2C block obviously couldn't handle that extra signaling oddity. Not the fastest approach but then this I2C application wasn't that high speed to begin with. Good times indeed!
- deadsy 14y ago... and often the specialised hw doesn't go far enough. ie- i2c and spi hw that doesn't have enough buffering to be left on its own. Either we babysit the interface or we can leave it to do its own thing until we get an interrupt for completion. Do a halfway job on the hw and we revert to the babysit case. Not bitter, just ranting.
- nitrogen 14y agoThe Linux kernel has built-in support for bit-banging I2C and SPI interfaces, which I used way back when I was writing a driver for the MyHD HDTV tuner card. The thoughtful developers of earlier TV drivers had written a plethora of tools for probing and debugging I2C buses.
- rrmm 14y agoI've seen some bit-banged USB interfaces (ie using gpio and discrete level shifting) on avr's and pic's. It was a very neat hack, if very very wrong.
- zwieback 14y agoI bitbanged an eMMC interface on a MSP430 - enjoyed it greatly but then we switched to a micro with a built in MMC/SDIO interface so it's just a memory now.