Bare metal example using SPI

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

Bare metal example using SPI

1,369 次查看
vix
Contributor III

Is there a bare metal example for VF61 that shows how to use SPI in master mode?

I'm interested in having a frame of 24 bits; according to the VFxxx Reference Manual

SPI frames longer than 16 bits can be supported using the continuous selection format.

Is there an example that shows this feature?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,097 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Vix,

You can take a look to the BareMetal examples available in the following web page, there is a QSPI driver, that you may use.

Sample Code for Vybrid Controller Tower System 

Have a nice day sir!

0 项奖励
回复

1,097 次查看
vix
Contributor III

I looked to the QSPI example, and modified it to work with SPI0.

I enabled the clock CCM_CCGR0_CG12 and set the IOMUXC PTB19, PTB20, PTB21 and PTB22 but connecting an oscilloscope, the pins are not driven at all.

Is there any additional configuration needed?

0 项奖励
回复