TI MSP430G2 SPI Examples

In my earlier posts (1, 2, 3), I showed some examples of using the I2C protocol with TI’s MSP430 Launchpad. Many MCUs in the MSP430G2 family also support the SPI bus. In today’s discussion, I will give a couple of…

Read More →

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.

Read More →

A Library for LTC1665/LTC1660

ATmega328p does not provide any Digital/Analog conversion channels (although the D/A conversion can be simulated by means of measuring the PWM output). We can easily add up to eight D/A channels using either a LTC1665 (8 bit) or LTC1660 (10…

Read More →

Interfacing LIS3LV02DL Using SPI — I

LIS3LV02DL is a MEMS three-axis digital linear accelerometer that provides both I2C and SPI interfaces for communicating with microprocessors. My work here is largely based on the work done at Near Future Laboratory. Instead of using a commercially available LIS3LV02DQ…

Read More →