AnsweredAssumed Answered

FRDM-KL25Z SPI1 no serial clock signal

Question asked by dianas on Jan 21, 2015
Latest reply on Jan 23, 2015 by dianas

Hi there!

I am a student working on a project to read ECG using the TI ADS1298 frontend (for which I purchased the development kit and want to use the EVM without the MMBO) connected to FRDM-KL25Z in order to develop a data-logger that saves data on the SD card mounted on FRDM-FXS-MULTI-B .


For what concernes the firmware I'm programming with CodeWarrior 10.6 using processor expert components.

There have been several excellent posts on this topic, but I still cannot get things going.


Here the details of my setup:

everything is supplied from the battery provided with the FRDM-FXS-MULTI-B board. Voltages on test point are all ok.

SD card is connected to my microcontroller through the SPI0 and works fine.

Frontend is connected through the SPI1 to the micro, with this pin configuration:








SPI1 configuration(I'm using the processor expert component):

clock polarity:      low

clock phase:        change on leading edge

parity:                  none

clock rate:            2MHz


The frontend, without any register configuration, puts data on MISO line and a data ready signal on an interrupt line at 250Hz. It needs only to be powered and enabled, setting the start pin to 1.

In a preliminary test I just powered on the boards to see if the frontend is sending some kind of data.


This is the programming algorithm:

-general initialization of al the peripherals

-start of the endless loop

-if an interrupt from the frontend occurred retrieve data and save in a temporary buffer (this is the only operation exploited in the interrupt service routine)

-store data on SD card


for the retrieval of data I'm using the function SPI1_ReceiveBlock() that returns always with the ERR_BUSY error.

With the oscilloscope i can see the DRDY signal coming from the frontend at the right frequency, but NO SERIAL CLOCK SIGNAL is present when I'm trying to retrieve data. Not only, the CS pin never moves from a high level (oscilloscope tells me an average of 2,8V).


Is there something that I am missing about the settings of the SPI module? Or maybe about the connections?

I think this couldn't be dued to a loop between the cable that brings SCK and gnd because SCK signal is steady near 0V, it never moves.


Any help you could give would be greatly appreciated.