Implementing SPI AD7928 ADC block in PSIM inverter simulation
Hello.
I'm simulating a three phase inverter based on a power electronic board that has been designed. The board has one external adc(AD7928) that received the feedback signals of the inverter three-phase line currents, the output load current, and the buck and boost input currents. The SPI signals are then sent to the F28335 dsp (see attached word document).
I've modelled the system in PSIM but I'm confused about setting some of the parameters in the SPI blocks. I went through the tutorial twice and I just need some confirmation that my SPI implementation is correct. I'm a bit confused about the start initial command value, received data command, data bit position, SPI initial command value in the SPI input block parameters. I read the data sheet several times and I'm probably interpreting it incorrectly.
To access data from this particular SPI adc I would have to write to the control registers(don't know how to do that). I've attached the psim file. Any feedback would be greatly appreciated