SPI example

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

SPI example

3,235 次查看
abhitippanna
Contributor III

I am using KW36 dewvelopment board. MCUXpresso IDE. I want to under SPI driver which example should I use.

Thank you,

11 回复数

2,707 次查看
abhitippanna
Contributor III

Read and write function.pngmain_loop.png

0 项奖励
回复

2,707 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

I recommend you download the SDK for the FRDM-KW36. Within the SDK you will find the drivers for all the peripherals of the MCU.

Link to download the SDK.

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

2,707 次查看
abhitippanna
Contributor III

Hi,

Which example should I use for understanding SPI driver. I am  confused.

0 项奖励
回复

2,707 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

That will depend on what are you trying to achieve. In the SDK you have the following examples for the SPI module: 

pastedImage_2.png

You can use the one that adapts better to your needs. With these examples, you will see how the SPI drivers are implemented.

Regards,

Victor.

0 项奖励
回复

2,707 次查看
abhitippanna
Contributor III

In which example Interfacing is done with AT45DB041E (512KB) Flash.

0 项奖励
回复

2,707 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

If you want to interface with a Flash memory then you should use the Flash Memory Controller (FMC) module. I recommend you read chapter 28 of the reference manual. The examples that you can use as a guide from the SDK are the following:

pastedImage_2.png

Regards,

Victor.

0 项奖励
回复

2,707 次查看
abhitippanna
Contributor III

Hello Victor Jimenez

   I am going to interface on board external flash (AT45DB041E) and I am using this configuration and read write function.

main_loop.pngRead and write function.png

0 项奖励
回复

2,706 次查看
abhitippanna
Contributor III

Thanks.

0 项奖励
回复

2,707 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

Could you please provide more information? For example, which MCU are you using? Which IDE are you using? 

Regards, 

Victor.

0 项奖励
回复

2,706 次查看
scottm
Senior Contributor II

Is that a question?

2,707 次查看
abhitippanna
Contributor III

Yes,

I am cant able to read FLASH manufacture ID

0 项奖励
回复