I'm working on a design that matches the Educational BoosterPack MKII display with Hercules microcontrollers.
I am struggling with a particular problem: Sending 128 16-bit values with MibSPI in one go.
I am able to send 128 separate 16-bits values with MIBSPI.
I'm using MIBSPI 3.
I created a data format for 16 bits.
I created a transfer group that uses that group.
When calling the MIBSpi Functions (TXDATA contains 128 16-BIT values)
mibspiSetData(mibspiREG3, 2, &TXDATA[0]); mibspiTransfer(mibspiREG3, 2 ); while(!(mibspiIsTransferComplete(mibspiREG3, 2))) { }
I don't get the expected results.
In the HALCoGen generated mibspiSetData() function , the "start" and "end" variable get value "1" and "2".
I was expecting to have the a value of 0 and 127.
Because the values are 1 and 2, the mibspiSetData() function only copies one value into the MIBSpi Buffers.