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

cross mob
Not applicable
Hello,

can someone help me with the configuration of the SPI in Dave 2.

I'd like to read out the TLE5012B on a XC2000 board.

Maybe there are someone pictures for the configuration in DAVE.

My proceed:
USIC0 CH0 --> SSC
SSC General:
Enable Module
Master Mode
Clock (CLK) Output --> P2.5
Now I have the problem that the Sensor has only one Data line (bidirectional) --> ?? I choose
Tx Data Output None
Rx Data Input P2.3
MSB first
Word Length [bits] 16
Baud Rate ?? 100,000
Control:
Receive Interrupt
Interrupts:
Level2
Functions:
U0C0_SSC_uwGetData

PORT:
P2.4 output high --> SLK

??
What do I need to program in C?


Thank you!
0 Likes
1 Reply
Not applicable
Hi michi,


All the configuration for the USIC is done with the DAVE code generator.
For the C programming, all you need to do is the implement your application.
If your question is about how to read out data from TLE5012B, please post your question in general forum where expert for TLE5012B may explain to you.
If you know how to read out data from TLE5012B but not sure how this can be done with XC2000, please let us know how you want to implement it and we will assist you.
Thank you.
0 Likes