XMC4200 SPI Slave

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,

i have a problem with the XMC4200 as an SPI Slave.
I've write a SPI Slave application on the XMC4500 there the Application works great.
When I Port this SPI Slave to XMC4200 the Slave doesn’t work right.
I get as Input Data at RBUFD always the Data 0x00C0, 0x0040,0x0080, 0x0000.
And the Output Data I write doesn’t get out (I see nothing on the Oscilloscope).
I use USIC0_CH1 on both devices.
Has anyone an idea why the SPI Slave doesn’t work on the XMC4200?
I generate a Interrupt when a Chip select is detected an d the programm runs in this interrupt.
So Chip select works.

Thanks everybody for your help
0 Likes
4 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Did you check the manual pin configuration? Both devices might not have the same output pin.
0 Likes
Not applicable
Ok I found the Problem.
The Problem was a wrong Frame length (SCTR.FLE was 1 must be 7).
Is the Frame length not evaluated in XMC4500 ?
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
jhITK wrote:
Ok I found the Problem.
The Problem was a wrong Frame length (SCTR.FLE was 1 must be 7).
Is the Frame length not evaluated in XMC4500 ?


Do you mean that the register "SCTR.FLE" was changed after porting to XMC4200?
0 Likes
Not applicable
No the settings SCTR.FLE was not changed when porting to XMC4200.
0 Likes