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.
Hi there,
I'm using UART protocol now, but I want to use SPI protocol. I'm using demo code that is "PGA460 Energia Library and Code Example (Version 1.0.9) (Rev. I)". I run the code with Energia and I watched all measured dimensions. But when I select communication mode=3 (SPI), it never measured dimensions, I read "No object" on COM always. My settings as follows. I'm using also MSP430 Launchpad
Why cannot I read correct dimension? What is my fault? I connected MSP430's P3.2 pin to PGA460's SCLK pin, MSP430's P3.0 pin to PGA460's RXD pin, MSP430's P3.1 pin to PGA460's TXD pin. Is it correct? I applied external 7.7V to PGA460's PWR pin.
Hi Lacin,
The PGA460 Energia library uses the secondary SPI port specific to the MSP430F5529 LaunchPad because the pins used for the primary SPI port are reserved for the PGA460's TCI interface . Here are the required connections for PGA460 SPI --> MSP430F5529 LaunchPad when using the PGA460 Energia library:
Also, in your sketch's execution input prompt, choose a Clock Divider (MHz) that will result in <=8MHz (i.e. "4=16/16"). The PGA460's SPI mode only supports up to 8MHz, so the "0" option for 16MHz will result in corrupt data.