Aug 02, 2019
05:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 02, 2019
05:59 AM
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
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
Labels
2 Replies
Aug 05, 2019
04:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 05, 2019
04:06 AM
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
solved the mystery
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
Aug 14, 2019
01:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 14, 2019
01:11 AM
Hello Alexander,
good to see you were able to solve the problem on your own!
Best,
Fiz
good to see you were able to solve the problem on your own!
Best,
Fiz