Not applicable
Jul 20, 2017
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2017
07:06 AM
I need your help,
I'm going to init an adc on my XMC1200 in DAVE 4.3.2.
There are some problems in my Init():
//wait till module clock is enabled
while((RD_REG(VADC->CLC, VADC_CLC_DISS_Msk, VADC_CLC_DISS_Pos)) != 0);
//Wait till calibration is complete
while((RD_REG(VADC_G1->ARBCFG, VADC_G_ARBCFG_CAL_Msk, VADC_G_ARBCFG_CAL_Pos)) != 0);
THE LOOP'S ARE ENDLESS !
It works well in Dave3 and in Keil5!?
What is wrong?
Bernd
I'm going to init an adc on my XMC1200 in DAVE 4.3.2.
There are some problems in my Init():
//wait till module clock is enabled
while((RD_REG(VADC->CLC, VADC_CLC_DISS_Msk, VADC_CLC_DISS_Pos)) != 0);
//Wait till calibration is complete
while((RD_REG(VADC_G1->ARBCFG, VADC_G_ARBCFG_CAL_Msk, VADC_G_ARBCFG_CAL_Pos)) != 0);
THE LOOP'S ARE ENDLESS !
It works well in Dave3 and in Keil5!?
What is wrong?
Bernd
Labels
- Tags:
- IFX
1 Reply
Jul 25, 2017
08:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 25, 2017
08:12 AM
The generated code has down most of the initialization for you.
Have you checked whether you need your own init() function?
status = DAVE_Init(); /* Initialization of DAVE APPs */
Have you checked whether you need your own init() function?