SPI example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI example

3,233件の閲覧回数
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,705件の閲覧回数
abhitippanna
Contributor III

Read and write function.pngmain_loop.png

0 件の賞賛
返信

2,705件の閲覧回数
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,705件の閲覧回数
abhitippanna
Contributor III

Hi,

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

0 件の賞賛
返信

2,705件の閲覧回数
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,705件の閲覧回数
abhitippanna
Contributor III

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

0 件の賞賛
返信

2,705件の閲覧回数
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,705件の閲覧回数
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,704件の閲覧回数
abhitippanna
Contributor III

Thanks.

0 件の賞賛
返信

2,705件の閲覧回数
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,704件の閲覧回数
scottm
Senior Contributor II

Is that a question?

2,705件の閲覧回数
abhitippanna
Contributor III

Yes,

I am cant able to read FLASH manufacture ID

0 件の賞賛
返信