LPC845+NBP8FD4ST1

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

LPC845+NBP8FD4ST1

1,502 次查看
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 回复

1,443 次查看
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

%3CLINGO-SUB%20id%3D%22lingo-sub-2108419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC845%2BNBP8FD4ST1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2108419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%A8%20NBP8FD4ST1%20%E4%B8%AD%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E9%AA%8C%E8%AF%81%20NBP8%20%E5%92%8C%20LPC845%20%E4%B9%8B%E9%97%B4%E7%9A%84%E9%80%9A%E4%BF%A1%E3%80%82%E6%88%91%E8%AF%BB%E5%8F%96%E4%BA%86%20SPIOPS%20(0x0038)%20%E5%AF%84%E5%AD%98%E5%99%A8%EF%BC%8C%E6%94%B6%E5%88%B0%E4%BA%86%E5%93%8D%E5%BA%94%200x0038%20%E5%91%BD%E4%BB%A4%E7%9A%84%200x81F0%E3%80%82%E5%93%8D%E5%BA%94%E7%9A%84%E4%BA%8C%E8%BF%9B%E5%88%B6%E5%BD%A2%E5%BC%8F%E4%B8%BA%201000%200001%201111%200000%20(0x81F0)%E3%80%82%E6%88%91%E4%BB%8E%E4%B8%AD%E6%8F%90%E5%8F%96%E5%87%BA%20SPIOPS%20%E5%AF%84%E5%AD%98%E5%99%A8%E7%9A%84%E5%80%BC%E4%B8%BA%200x124%E3%80%82%E4%BD%86%E9%A2%84%E6%9C%9F%E5%80%BC%E5%BA%94%E8%AF%A5%E6%98%AF%200x04%E3%80%82%E8%BF%99%E6%A0%B7%E5%81%9A%E5%AF%B9%E5%90%97%EF%BC%9F%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NBP8_SPIOPS_check.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NBP8_SPIOPS_check.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F340829i652C570BA8D4DF69%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22NBP8_SPIOPS_check.png%22%20alt%3D%22NBP8_SPIOPS_check.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2108419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E5%8E%8B%E5%8A%9B%E4%BC%A0%E6%84%9F%E5%99%A8%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2110101%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC845%2BNBP8FD4ST1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110101%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E7%8E%9B%E8%BE%BE%E7%BB%B4%3C%2FP%3E%0A%3CP%3E%E4%BB%8E%E6%88%AA%E5%9B%BE%E4%B8%AD%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%87%BA%EF%BC%8C%E6%82%A8%E5%8F%91%E9%80%81%E5%92%8C%E8%AF%BB%E5%8F%96%E7%9A%84%E6%98%AF%20LSB%20%E5%85%88%2FMSB%20%E5%90%8E%EF%BC%8C%E8%80%8C%20NBP%20%E5%AE%9E%E7%8E%B0%E7%9A%84%E6%98%AF%20MSB%20%E5%85%88%2FLSB%20%E5%90%8E%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E8%AF%BB%E5%8F%96%20SPIOPS%20%E7%9A%84%E5%91%BD%E4%BB%A4%E5%BA%94%E4%BB%A5%200x00E1%20%E8%80%8C%E4%B8%8D%E6%98%AF%200xE100%20%E5%8F%91%E9%80%81%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%9C%89%E5%85%B3%20SPI%20%E4%BA%A4%E6%B5%81%E7%9A%84%E8%B5%84%E6%BA%90%EF%BC%8C%E8%AF%B7%E5%8F%82%E9%98%85%EF%BC%9A%3CBR%20%2F%3E-%20NBP%20%E7%BD%91%E9%A1%B5%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2FNBP8-9x%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E(https%3A%2F%2Fwww.nxp.com%2Fproducts%2FNBP8-9x)%3C%2FA%3E%20%E4%B8%8A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%B4%E6%98%8E%E3%80%82%E5%AE%83%E6%9C%89%E4%B8%80%E4%B8%AA%E7%9B%B8%E5%85%B3%E6%96%87%E4%BB%B6%EF%BC%8C%E6%98%AF%E4%B8%80%E4%B8%AA%E7%94%A8%E4%BA%8E%E7%BC%96%E7%A0%81%E5%92%8C%E8%A7%A3%E7%A0%81%20SPI%20%E5%91%BD%E4%BB%A4%E5%92%8C%E5%93%8D%E5%BA%94%E7%9A%84%20excel%20%E5%B7%A5%E5%85%B7%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20529px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20529px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F341297iE46BA56954A65FD2%2Fimage-dimensions%2F529x154%3Fv%3Dv2%22%20width%3D%22529%22%20height%3D%22154%22%20role%3D%22button%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E-%20%E7%94%A8%E4%BA%8E%20NBP8%20%E7%9A%84%20KE15Z%20%E4%B8%BB%E6%9C%BA%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97%EF%BC%8C%E5%85%B6%E4%B8%AD%E5%8C%85%E6%8B%AC%20SPI%20%E9%80%9A%E4%BF%A1%E6%88%AA%E5%9B%BE%E3%80%82%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97%E5%8F%AF%E5%9C%A8%E4%BB%A5%E4%B8%8B%E8%BD%AF%E4%BB%B6%E5%8C%85%E4%B8%AD%E6%89%BE%E5%88%B0%EF%BC%9A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DNBP8x_Application%26amp%3BappType%3Dlicense%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DNBP8x_Application%26amp%3B%20app%3C%2FA%3E%20Type%3DLicense%3C%2FP%3E%0A%3CP%3EBRs%2C%20Tomas%3C%2FP%3E%3C%2FLINGO-BODY%3E