FRDM-KL05Z SPI problem?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-KL05Z SPI problem?

683 Views
nomora
Contributor I

Hi all,

I used SPI to read a 12-bits device. Thus, the SPI read 2 bytes to finish the read.

However, something strange is, if I set the SPI clock rate faster than 0.333525us, then the "chip select" will still toggle even I set it as no.

It cause a wrong reading if CS was toggled between characters transmission.

SM1_clock.jpg

Below waveform shown the result when set the clock rate to 0.333525us.

The SPI read 2 bytes data continually without CS toggling.

tek00005.png

Below waveform shown the result when set the clock rate to 0.083381us.

The CS will be toggling between characters transmission.

tek00006.png

Hope someone can help one this.

Thanks.

Gary.

Labels (1)
0 Kudos
2 Replies

445 Views
carloshass
Contributor II

Gary,

I'm having the same problem using KE06Z Dev Board.

Did you solved it? How?

thanks for you attention!

Regards,

Carlos Hass

0 Kudos

445 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Gary,

I've had a brief look through your question, could you please upload your project?

If I have your porject, it's convenience to me figure out the problem.

I'm looking forward to your reply.

Have a nice day!

Best regards,

Ping

0 Kudos