Hello, I’m Brendan Burns, a college student doing my senior design project. I’m working on a sensor set for a cell phone case and have run into a bit of a problem pulling data from my chip. First I'll give some information on which pins I'm using and what I'm doing so far. After explaining what I know/think I should have to do and have done. (All of this was done using TI’s sample code as guidelines)
First we stop the watchdog timer, then set the core clock speed, after that we set the clock to output to the clock pin on the AFE. This much we tested and the signal is coming out there at the right rate.
Second we initialize the ports, this incudes setting up the SPI bus which seems to be working for output, able to send data down the output line, has the clock ticking and the chip select is setting to low before the output is transmitted.
After that the AFE is powered up by setting up the GPIO for its PDN, Reset, and giving them a signal, as well as setting the MSP to use the ALM lines as inputs. And then wait a while to give the chip time to power up.
Fallowing that we send a write action to the AFE to disable its "SPI_READ" which should let us write to the AFE.
Fallowing that we attempt to write to the AFE all of its default register settings. We are using the settings from the example code for the AFE given on TI’s site.
After that we attempt to enable the SPI read again by sending that information down the SPI.
Last we just attempt to read some information from the AFE, but when we read from the AFE it seems to not send any information back. Any help would be greatly appreciated.
If I missed anything in the setup I would be grateful. If anyone needs to see my code for inspection I will post the sections they request to see up here.
Many thanks, Brendan Burns.
Component pin location
CS 1.6
SCLK 8.4
SIMO 8.5
SOMI 8.6
CLK 2.7
PND 3.1
DIAGEND 3.2
RDY 3.3
RESET 3.5
PD_ALM 3.6
LED_ALM 3.7