AnsweredAssumed Answered

BF518F - BF506F SPI communication problem

Question asked by marco55 on Sep 25, 2013
Latest reply on Oct 24, 2013 by marco55
Branched to a new discussion

Hello,

I have a problem with SPI communication between a BF518F (master) and a BF506F (slave).

 

I configured the SPI as follow:

master:

SPI_CTL = 1F00

SPI_FLG = FF00

SPI_BAUD = 0004

slave:

SPI_CTL = 4F24

SPI_FLG = FF00

SPI_BAUD = 0004

 

The problem is that if I change the SPI_BAUD to 0002 (so that the frequency change from 10MHz to 20MHz) the data received from the master are 1-bit shifted to left (for example if the slave TBDR is ABCD the master RBDR is 579B).

 

Any suggestion?

Thanks in advance

Marco

Outcomes