Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: MSP430FG4618: MSP430FG4618 and ADS1220

$
0
0
Part Number: MSP430FG4618 Hello, I am learning how to program MSP430 and I am having difficulty setting up the MSP430FG4618 SPI to connect to the ADS1220 . I am already using an EEPROM in I2C mode: // Recommended initialisation steps of I2C module as shown in User Guide: UCB0CTL1 | = UCSWRST; // Enable SW reset UCB0CTL0 = UCMST + UCMODE_3 + UCSYNC; // I2C Master, synchronous mode UCB0CTL1 = UCSSEL_2 + UCTR + UCSWRST; // Use SMCLK, TX mode, keep SW reset UCB0BR0 = SCL_CLOCK_DIV; // fSCL = SMCLK / 12 = ~ 100 kHz UCB0BR1 = 0; UCB0I2CSA = eeprom_i2c_address; // define Slave Address Some of you have already used the ADS1220 with this library: 3173. ADS1220 _MSP430ExampleCode Link: github.com/.../example I need to communicate with the ADS1220 via SPI and I do not know how to configure the pins of the MSP430FG4618 , maybe to use USCIA0 or USCIB0 in conjunction with the I2C of the EEPROM. The purpose is to read the differential channel A0 and A1 and store the data in the EEPROM I2C. Could you help me? Thank you!

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>