AnsweredAssumed Answered

SPI CAN Error

Question asked by Fabian Sonnleitner on Mar 10, 2016
Latest reply on Mar 21, 2016 by Fabian Sonnleitner

Hi,

 

i am using a S912ZVCA with following SPI inti:

 

 

// SPIE=0, SPE=1, SPTIE=1, MSTR=1, SSOE=1

 

SPI0CR1 = 0x72;   

// XFRW=1, MODFEN=1

 

SPI0CR2 = 0x50;

// set to 16bit mode, set MODFEN -> SS aktive low durring transmission

 

SPI0BR = 0x77;

// set baudrate to 12.21 kbit/s

When this gets initialised, the CAN stops working. With out that init CAN is working. I am using CANH,CANL for CAN and  PS2-PS4 for SPI.

 

How do I get both to work at the same time?

 

 

Thanks.

Outcomes