We are creating an example model using the NXP Model-Based Design Toolbox (MBDT) Version 3.2.0 for MPC57xx Series processors to create an example interfacing with the MSDI chip CD1030 over SPI bus from the MPC5777C processor, see the attached model.
Hello @rsating ,
Unfortunately, I don't have access to the CD1030 so it is very hard to help you with this.
Since you still get something from the CD1030 I think the communication settings are fine so this is most likely a register logic issue. Maybe there are some initialization commands that have to be sent before accessing those registers.
On this page I've found an Interface Software Driving for Multiple Switch Detection which may help you with some extra information. https://www.nxp.com/products/interfaces/signal-conditioners/33-channel-multiple-switch-detection-int...
Another interesting aspect that may be taken into account is the possibility of integrating custom code. For example, the driver above can be integrated into your MBDT project in a similar way described here https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-...
Of course, there are some extra steps required like: You have to implement wrappers over some functions from the Driver which can be directly called by an S-Function. You have to write yourself the MSDI_TransferSpi function to access the SPI driver used in the MBDT function but you already have an example in the archive that contains the MSDI Driver. This is for S32K but the SPI driver looks very much with the one used by the MPC
At least you can have a look at the commands sent by the driver to see if there are some other registers written in the initialization. Or how the registers you are interested in can be accessed.
Hope this helps,
Marius