Dec 25, 2017
01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 25, 2017
01:50 AM
The function XMC_VADC_GLOBAL_StartupCalibration () in the program below does not confirm that CALS becomes 1.
If it is not confirmed that CALS becomes 1 when the XMC is broken down, ADC may run without being calibrated.
Could you apply the correction to check that CALS becomes 1 to XMC_VADC_GLOBAL_StartupCalibration ()?
https://www.infineon.com/dgdl/Infineon-PMSM_Motor_Control_FOC_Sensorless_Example_with_uC_Probe_for_X...
If it is not confirmed that CALS becomes 1 when the XMC is broken down, ADC may run without being calibrated.
Could you apply the correction to check that CALS becomes 1 to XMC_VADC_GLOBAL_StartupCalibration ()?
https://www.infineon.com/dgdl/Infineon-PMSM_Motor_Control_FOC_Sensorless_Example_with_uC_Probe_for_X...
2 Replies
Dec 26, 2017
08:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 26, 2017
08:46 PM
This issue was settled.
Apr 19, 2020
06:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 19, 2020
06:18 PM
Hi,
Could you let me know how this was resolved. I am facing the same issue, where XMC_VADC_GLOBAL_StartupCalibration () is not confirming to CAL =1.
As a result, the code is stuck in while loop.
for(i=0U; i< 2U; i++)
{
group_ptr = g_xmc_vadc_group_array;
if ( (group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_ANONS_Msk)
{
/* This group is active. Loop until it finishes calibration */
while((group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_CAL_Msk)
{
/* NOP */
}
Thank you,
Appreciate your time and help.
Could you let me know how this was resolved. I am facing the same issue, where XMC_VADC_GLOBAL_StartupCalibration () is not confirming to CAL =1.
As a result, the code is stuck in while loop.
for(i=0U; i< 2U; i++)
{
group_ptr = g_xmc_vadc_group_array;
if ( (group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_ANONS_Msk)
{
/* This group is active. Loop until it finishes calibration */
while((group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_CAL_Msk)
{
/* NOP */
}
Thank you,
Appreciate your time and help.