LPC845+NBP8FD4ST1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC845+NBP8FD4ST1

1,536 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Reply

1,477 Views
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%3EIn%20the%20NBP8FD4ST1%2C%20I%20need%20to%20verify%20the%20communication%20between%20the%20NBP8%20and%20the%20LPC845.%20I%20read%20the%20SPIOPS%20(0x0038)%20register%20and%20received%200x81F0%20in%20response%20to%20the%200x0038%20command.%20The%20binary%20form%20of%20the%20response%20is%201000%200001%201111%200000%20(0x81F0).%20From%20this%2C%20I%20extracted%20the%20SPIOPS%20register%20value%20as%200x124.%20But%2C%20the%20expected%20value%20should%20be%200x04.%20Is%20this%20correct%3F%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%3EPressure%20Sensors%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%3EHi%20Madhavi%2C%3C%2FP%3E%0A%3CP%3EFrom%20the%20screenshot%20I%20see%20that%26nbsp%3B%20you%20are%20sending%20and%20reading%20LSB%20first%20%2F%20MSB%20last%20whereas%20the%20NBP%20implements%20MSB%20first%20%2F%20LSB%20last.%3C%2FP%3E%0A%3CP%3ESo%2C%20a%20command%20to%20read%20SPIOPS%20should%20be%20sent%20as%200x00E1%20instead%20of%200xE100.%3C%2FP%3E%0A%3CP%3EFor%20resources%20on%20SPI%20communication%2C%20please%20refer%20to%3A%3CBR%20%2F%3E-%20The%20app%20note%20below%20on%20the%20NBP%20webpage%20(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2FNBP8-9x%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fproducts%2FNBP8-9x%3C%2FA%3E).%20It%20has%20an%20associated%20file%20which%20is%20an%20excel%20tool%20to%20encode%20and%20decode%20SPI%20commands%20and%20responses.%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-%20The%20user%20guide%20of%20the%20KE15Z%20Host%20application%20for%20NBP8%2C%20which%20includes%20screenshots%20of%20SPI%20communication.%20The%20user%20guide%20can%20be%20found%20in%20below%20package%3A%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%3BappType%3Dlicense%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBRs%2C%20Tomas%3C%2FP%3E%3C%2FLINGO-BODY%3E