LPC845+NBP8FD4ST1

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

LPC845+NBP8FD4ST1

432件の閲覧回数
Madhavi123328
Contributor I

In the NBP8FD4ST1, I need to verify the communication between the NBP8 and the LPC845. I read the SPIOPS (0x0038) register and received 0x81F0 in response to the 0x0038 command. The binary form of the response is 1000 0001 1111 0000 (0x81F0). From this, I extracted the SPIOPS register value as 0x124. But, the expected value should be 0x04. Is this correct?NBP8_SPIOPS_check.png

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

373件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Madhavi,

From the screenshot I see that  you are sending and reading LSB first / MSB last whereas the NBP implements MSB first / LSB last.

So, a command to read SPIOPS should be sent as 0x00E1 instead of 0xE100.

For resources on SPI communication, please refer to:
- The app note below on the NBP webpage (https://www.nxp.com/products/NBP8-9x). It has an associated file which is an excel tool to encode and decode SPI commands and responses.

1.png

- The user guide of the KE15Z Host application for NBP8, which includes screenshots of SPI communication. The user guide can be found in below package:
https://www.nxp.com/webapp/Download?colCode=NBP8x_Application&appType=license

BRs, Tomas