AnsweredAssumed Answered

SPI Slave on STM32F103C6

Question asked by Chalumeau on Jun 2, 2014
Latest reply on Jun 2, 2014 by Chalumeau
Hello!

I'm working actually on a new project on the STM32F103C6 (i'm learning how to program on this µC)

My problem is on the SPI. I have a component (temperature sensor), which send by SPI Data and I read the data on the USART, but the data are not correct.

This sensor send two frames: 
the first always starts by 4C, is composed of 5 blocks of 8bits end finish by 0D (4C 14 2A 8A 0D for example)

The second always starts by 66,  is composed of 5 blocks of 8bits end finish by 0D (66 12 C3 3B 0D for example).

Moreover the sensor sends the clock, and this clock is a 2Khz.

You can find in the attached documents my project, could you please look, and help me to find a the solution?

Kind regards

Attachments

Outcomes