Bus Pirate prototype “Ultra” v1b successfully wrote to and read back from a 25LC020A SPI EEPROM chip. The image shows the Bus Pirate reading 8 bytes of 0x02 from the EEPROM at address 0x00, and the bus activity can be verified on the logic analyzer graph. Still a long way to go, but it’s nice […]
Simple circuit for sending command upon boot to the target device sortof boostraping hardware tachnique, an app note from Analog Devices. Link here (PDF) This application note describes the operation of a general purpose, microcontroller-based Serial Port Interface (SPI) boot circuit. This is a low cost solution for users who need to modify some of […]
Jan Cumps tested out SPI Protocol using a Bus Pirate: It wasn’t my initial intention to use the Bus Pirate. But my first naive attempts to talk from Hercules to EEPROM failed. I could create the SPI instructions with the LaunchPad, but I didn’t get a reply back from the 25LC256. It’s in these cases that […]
Paul over at Dorkbotpdx has written an article on 3 steps to good SPI Bus design: A much better SPI bus design can prevent conflicts. 3 simple improvements are needed: Use pullup resistors on all chip select signals. Verify tri-state behavior on MISO: use a tri-state buffer chip if necessary. Protect bus access with SPI.beginTransaction(settings) and SPI.endTransaction().
Spacewrench over at Dorkbotpdx writes: I had some spare 4-digit 7-segment LED displays and some AT90USB82s, and I’d always intended to do something with them. This was probably the easiest thing! It’s just the AT90 driving the display, with a(t least) 4 wires controlling it: Vcc, GND, MOSI and SCK. (I haven’t written the code yet, […]
Paul over at DorkbotPDX writes: For the last several weeks, I’ve been working on SPI transactions for Arduino’s SPI library, to solve conflicts that sometimes occur between multiple SPI devices when using SPI from interrupts and/or different SPI settings. To explain, a picture is worth 1000 works. In this screenshot, loop() repetitively sends 2 bytes, where […]
Nerd Ralph writes: While writing the picoboot module for avrdude, I noticed avrdude has a terminal mode which allows for commands to be sent to an AVR. The serial programming interface for AVR MCUs uses SPI, similar to the nrf modules. I realized instead of an AVR, the programmer could be attached to any device […]
Simplify USB to SPI connectivity by using this app note from FTDI. The FT2232H and FT4232H are the FTDI’s first USB 2.0 Hi-Speed (480Mbits/s) USB to UART/FIFO ICs. They also have the capability of being configured in a variety of serial interfaces using the internal MPSSE (Multi-Protocol Synchronous Serial Engine). This application note introduces the […]
Koolatron over at the Bitcraze forum re-program the Crazyradio over SPI using the BusPirate and this script, available at github: I’ve knocked together a perl script to reflash a busted crazyradio over SPI using a Bus Pirate. This saved me from a firmware upgrade gone bad. Get an assembled Bus Pirate for $30, including world-wide shipping. Also available from our […]
Touch let us know about these 4 digit SPI controlled 7 segment displays that cost a little less then $1 a piece. They include decimal separators and a colon separator so it’s easy to display time. I picked up some cheap 4 digit 7 segment displays over on eBay for $10 + shipping. They Include […]
Like so many others, we found a nice 1.8″ TFT display in China, and we decided to make a breakout for it. Instead of just breaking out the pins, and perhaps adding the micro SD card holder, we equipped our version with an USB enabled microcontroller and a few buttons for GUI projects. This display […]
Hacromatic posted a tutorial on interfacing RFM12B radio data modules with the Bus Pirate: We’re working with some RFM12B RF modules, and needed to verify that they were working properly, so we used a Bus Pirate. We thought it’d make a nice intro to SPI on the BP so we wrote it up. Via the […]
A somewhat humorous app note describing the common IC interface protocols like I2C, SPI, and GPIO. Also covered are some problem with these interfaces that turn happy faces to sad. How can an interface change a happy face to a sad face? Engineers have happy faces when an interface works properly. Sad faces indicate failure […]
Jbeale shows how to interface the LTC2440 24bit analog to digital converter with the Arduino. He provided the pin connections, a small sketch, as well as some advice to get it up and running. I should add: to reach the specified noise performance of this part (200 nV RMS) you must have an absolutely clean […]
Raj built a dual, 7-segment, display board with SPI interface. The board is based around the MAX7219 8x 7-segment display driver, which receives commands over SPI, and drives the display accordingly. The new display features eight 7-segment displays arranged in two rows of four digits. The on-board MAX7219 driver enables you to easily add eight […]
Bertho was inspired by a recent forum discussion about driving SPI signals over long cables, so he headed to the workshop and did some test. His epic analysis of transmission lines shows real life example of how signals degrade in cables of various lengths, and how to tackle some of the problems associated with transmission […]
Protocols like SPI, I2C, and UART are intended for chips sharing a PCB, lots of problems crop up when you try to send them over long distances. Michu designed individually controllable LED modules controlled by SPI signals sent over long lengths of cable. Initially he had lots of noise and buggy control. After some debugging […]
HappyJTAG2 FT2232-based JTAG debugger for AVR chips: This construction is based on HappyJTAG Idea, to implement JTAG interface into target avr system and debug it remotly via USB, without specific JTAGICE hardware. All job is done by PC softraware… Via the forum.
Here is an app note from Atmel describing hoe to use the SPI module on their XMEGA microcontrollers. Also provided are source code examples for implementing both interrupt driven SPI communication and the polled method for slave and master devices. SPI is a full duplex interface, and at a low cost enabling high-speed communication between […]
Greg Whitmore at Four-Three-Oh forum has written a quick how-to post on using the Bus Pirate to sniff SPI data on the MSP430. We’re reproducing the post here in its entirety with Greg’s permission.