Read TLE5009-2010 from TLE9879-2QXA40

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

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

cross mob
User17156
Level 1
Level 1
Hello,
I've connected a TLE5009-2010 on a TLE9879-2QXA40 just like in the picture that I took from the Datasheet of the tle9879-2QXA40.
If I manually rotate the magnet and read the data from the SDADC I get massive over- and underflows (0xffff or 0) on both ADCs. I somehow doubt that can be right.
It seems like the differential output of the TLE5009 exceeds what the SDADCs expect. It goes from approx -3 V to 3V. Is there more to the Schematic than I can see on the device sheet or do I have to configure something?

Thanks for your replies
Alexander Polleti
0 Likes
2 Replies
User17156
Level 1
Level 1
I found the bug:
The functions SDADC_Ch0_Result_Get and SDADC_Ch1_Result_Get return unsigned values while the interpreted reigster content is signed
uint16_t res = SDADC_Ch0_Result_Get();
int16_t adc0_raw = *((int16_t*)&res);

solved the mystery
0 Likes
Fiz
Moderator
Moderator
Moderator
First like received 50 replies posted 25 replies posted
Hello Alexander,

good to see you were able to solve the problem on your own!

Best,
Fiz
0 Likes