Archive for July 2012

Code For MCP4821/MCP4822

Microchip‘s MCP4821/MCP4822 is a low budget 12-bit digital-to-analog converter. MCP4821 is the single channel version whereas MCP4822 has two channels that can be latched simultaneously. Both chips have internal band gap references and can be controlled via SPI. Continue reading ‘Code For MCP4821/MCP4822’ »

Inoperative By Design

I recently bought two cheap webcams on Amazon and was planning to do some experiments with a dual webcam configuration. These cameras got pretty decent reviews and cost only a few dollars a piece, so I thought what could go wrong with these anyway? Continue reading ‘Inoperative By Design’ »

MSP-EXP430G2 I2C Master Examples

Last week, I mentioned that in order for the I2C bus to function correctly when using the MSP430 Launchpad you might need to remove the jumper on P1.6. This is because P1.6 is the SCL pin and the connected LED may cause the output voltage to stray from the desired logic voltage levels. In this post, I will show a couple of examples of using the MSP430 Launchpad as an I2C master to communicate with slave devices. The library code can be downloaded towards the end. Continue reading ‘MSP-EXP430G2 I2C Master Examples’ »

MSP-EXP430G2 I2C Issue Resolved

I was experimenting with I2C using my TI MSP-EXP430G2 Launchpad and ran into some issues. For a while, I could not get the I2C host and slave to talk. After having verified the coding and the hardware setup, my suspicion turned to the jumper which connects the red LED indicator to port pin P1.6. Continue reading ‘MSP-EXP430G2 I2C Issue Resolved’ »