Hello,
I am using the TMS320F28069M to communicate with AS5048A (Magnetic Rotary Encoder). According to AS5048A and TMS320F28069M datasheets, the proper settings for CLOCK POLARITY and CLOCK PHASE are CLOCK POLARITY=CLOCK PHASE =0. but when I do this setting, it doesn't work. But in system turning on, when I first set CLOCK POLARITY=0 and CLOCK PHASE=1 (wrong value) and run the program and then stop the program and set the correct setting and run the program, the communication work properly. In fact, for correct working of SPI, I have to first program the MCU by wrong settings and stop it and then program it by correct settings. So what can I do for solving this problem.
Regards,
Mohammad.