Dave4 xmc4104 adc bug

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

cross mob
Not applicable
HI friend,
I found some bugs in DAVE when you choose ADC function in XMC4104 chip.
As the chip detail :
================
Package= LQFP64
ROM= 64 KB Flash
RAM= 20 KB RAM
InOut= 35 digital I/O
ADC= 9 ADC Channels, 12-bit
=================

1.When you choose ADC_MEASUREMENT [4.1.12] app and try to add 9 channel ADC pin.
the APP channel limit is 1~8.which mean use all of ADC channel is not possible.

2.Some motor application will need ADC synchronize with in ADC0 and ADC1.
Base on the datasheet XMC4101 can support "G0CH0 +G1CH0","G0CH3+G1CH3","G0CH6+G1CH6"
But in fact app will allow you set two of them not three in sync. Conversion option.

Could official friend update it in next app version.

By the way ,have anyone try to trace the code that DAVE app initial?
I can not find any sentence that set ADC register in the c code

Sam Tsang
0 Likes
1 Reply
Not applicable
HI Sam,

1. In the current version, we have only enabled 8 channels. This will be taken care in the next release in Feb to support all 9 channels. 🙂
2. In the ADC_MEASUREMENT APP, the synchronization feature is not supported.
This sync option is supported in the ADC_MEASUREMENT_ADV APP. You can try to use this APP.

The ADc initialization should be handled in the function, ADC_MEASUREMENT_Init. It should be available when you click on the "Generate Code" icon in the DAVE toolbar.
Can you check if you have this function in your project?

Regards,
Daryl
0 Likes