Hello, I'm setting up my ADS1258 to MSP430F2274 connection as in figure 63 in SBAS297E. I'm kind of new to this, so I'm wondering if I can get some examples as far as configuring and r/w the ADS1258 register. Thanks for your time.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I'm setting up my ADS1258 to MSP430F2274 connection as in figure 63 in SBAS297E. I'm kind of new to this, so I'm wondering if I can get some examples as far as configuring and r/w the ADS1258 register. Thanks for your time.
Hi Gary,
Unfortunately we don't have any 'ready to go' code example for the F2274 to share with you at the moment. If I come across anything, I'll certainly post it here. In the meantime, if I am not mistaken, the MSP430F2274 can only operate with an 8-bit SPI interface. To get this working properly with the ADS1258, you would want to set the SPI port up in 3-wire mode, with CKPH = 1 and CKPL = 0. If you want to use the /CS pin, you can toggle that as a GPIO.
Thank you for the reply, Tom. Any examples will certainly be welcomed. Is there any header files for ads1258?
[edit] p.s. My port3 is already connected with 2 other peripherals. I thought about splitting the spi line between the two and free 1 up for the A/D. But I don't want any latency issues that may arise later.
So I connected the A/D and MSP together according to how it is recommend it on port 1 as in the ads1258 datasheet. But I have no clue how to perform this communication on port1 with digital i/o pins. So any pointers on that would help.
Hi Gary,
Figure 63 in the ADS1258 data sheet was not necessarily depicting 'any' MSP430. You would need to bit bang the ADS1258 using port 1 of the F2274 and that would be very difficult to pull off. It looks like there are two SPI peripherals associated with P3 in the MSP430F2274, are you using both for the other devices? The closest thing I have to a header file that you might be able to use is attached.
Thanks bunches Tom.
And yes the 2 other ports have already taken up by peripherals. I maybe able to do some 'fancy engineering' to rewire the board, but some of the traces are in the inner layer and the pads are so small. Well, I guess there won't be much examples on bit banging a spi comm since it's kind of a special need. If I have question on it, do I start a thread on msp430 forum or I can just post it here?
The MSP430 forum is where I would start for code examples on bit-banging the SPI port.