Hello,
When using the HW SPI, my MCU has 4 four combinations of SCK phase and polarity:
Leading edge Trailing edge SPI mode
Sample (rising) Setup (falling) 0
Setup (rising) Sample (falling) 1
Sample (falling) Setup (rising) 2
Setup (falling) Sample (rising) 3
I would like to know which mode I should use to communicate between MCU and ANT ? Can anyone explain the different between "Sample" and "Setup" for me ?
Another question, is it right that in mode Byte Synchronous, the Sync Byte is always sent from ANT, and depend on this byte, we will sent the others bytes from MCU to ANT (case Sync Byte = 0xA5) or we will receive the rests from ANT to MCU (case sync Byte = 0xA4) ?
Thanks