bm_soe
Member level 1
I 've some problem in SPI communication between two BF561 EZ
lite kit.
i've made proper connection,i.e.,SCK-SCK,
MISO-MISO,MOSI-MOSI,
PF1(slave select from master)-PF0(SPISS of Slave).
some typical values i 've used is
SPI_BAUD=85;
SPI_CTL=0x5C00(for master) (SPE,MASTER,CPOL,CPHA,TIMOD-00)
SPI_CTL=0x4C01(for slave) (SPE, Slave, CPOL, CPHA, EMISO, TIMOD-01)
interrupt ivg9 is used for both master and slave.
master continously receive and slave continously transmit 0xAA .
But data is not received properly,i.e., when slave sends
0xAA, Master receives other values like 0x55,0x0A,0xAB and other garbage type values. Sometimes it receives 0xAA.
what is the problem?
lite kit.
i've made proper connection,i.e.,SCK-SCK,
MISO-MISO,MOSI-MOSI,
PF1(slave select from master)-PF0(SPISS of Slave).
some typical values i 've used is
SPI_BAUD=85;
SPI_CTL=0x5C00(for master) (SPE,MASTER,CPOL,CPHA,TIMOD-00)
SPI_CTL=0x4C01(for slave) (SPE, Slave, CPOL, CPHA, EMISO, TIMOD-01)
interrupt ivg9 is used for both master and slave.
master continously receive and slave continously transmit 0xAA .
But data is not received properly,i.e., when slave sends
0xAA, Master receives other values like 0x55,0x0A,0xAB and other garbage type values. Sometimes it receives 0xAA.
what is the problem?