kl25z spi 9 bits to transmit

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

kl25z spi 9 bits to transmit

跳至解决方案
1,044 次查看
raphaelperun
Contributor I

Hi everyone,

I'm using the FRDM-KL25Z and want to communicate with HMC6300 transmitter.

Here is the time diagram I should produce to have a communication with the component:

spi_diagram.png

As you can see, I need to send 18 bits using MOSI pin to communicate with the component. 18 is not a multiple of 8 so I don't know what to do with the component to send twice 9 bits or thrice 6 bits.

Is there a way to produce such time diagram with the KL25Z?

Thank you,

标记 (2)
0 项奖励
回复
1 解答
925 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

HI raphael perun,

      The diagram you post is not the standard SPI wave, and unfortunately, the KL25 just support 8 bit frame.

     So, if you want to communicate with this type serial wave, you may need to use the IO to simulate it.

Wish it helps you!

If you still have problem, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
926 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

HI raphael perun,

      The diagram you post is not the standard SPI wave, and unfortunately, the KL25 just support 8 bit frame.

     So, if you want to communicate with this type serial wave, you may need to use the IO to simulate it.

Wish it helps you!

If you still have problem, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复