Hello Team,
I am working on motor control application, using F28069F microcontroller with master and slave configuration, using SPI protocol.
When the communication starts, slave starts to receive junk value initially, which I probably think values stored in the SPIDAT from the previous operation. After some 4 to 5 samples, the data received from the slave microcontroller will be same as that of the master.
If hardware CPU reset is done, after the program is terminated or if the microcontroller is powered down and powered up before flashing the program once again into the microcontroller. Data received by slave microcontroller will be same as that of the master.
What I would like to know, why I am receiving the junk values in the beginning if the microcontroller is used continuously without CPU reset or powering it down ?
Is there a way to achieve software reset of the peripherals, when the program is terminated or when the program is flashed again into the microcontroller ?
Thanks and best regards,
Chetan..