Hi all,
I'm using the XMC4500 Relax Lite and i want to use the DSM App for reading the ACPL-7970.
The DSM App is not triggering an Interrupt, not even with the extra app.
My problem is, that it worked, even without the extra Interrupt App, but now it doesn't anymore and I don't know why.
Pins are properly mapped.
I hope one of you can help me. Thanks in advance!
The part of my code:
#include <DAVE.h>
status = DAVE_Init();
...
void ISR_DSM()
{
// Update stored vals
DS_ADC_DEMOD_CH_GetResult(DS_ADC_DEMOD_0_CHANNEL_A ,&resultA);
DS_ADC_DEMOD_CH_GetResult(DS_ADC_DEMOD_0_CHANNEL_B ,&resultB);
current = (((float)resultA * 0.320)/32768.0) / 0.100;
voltage = (((float)resultB * 0.320)/32768.0) * 180;
}
App:
Attachment 3299
Attachment 3300
Attachment 3301
Attachment 3302
I'm using the XMC4500 Relax Lite and i want to use the DSM App for reading the ACPL-7970.
The DSM App is not triggering an Interrupt, not even with the extra app.
My problem is, that it worked, even without the extra Interrupt App, but now it doesn't anymore and I don't know why.
Pins are properly mapped.
I hope one of you can help me. Thanks in advance!
The part of my code:
#include <DAVE.h>
status = DAVE_Init();
...
void ISR_DSM()
{
// Update stored vals
DS_ADC_DEMOD_CH_GetResult(DS_ADC_DEMOD_0_CHANNEL_A ,&resultA);
DS_ADC_DEMOD_CH_GetResult(DS_ADC_DEMOD_0_CHANNEL_B ,&resultB);
current = (((float)resultA * 0.320)/32768.0) / 0.100;
voltage = (((float)resultB * 0.320)/32768.0) * 180;
}
App:
Attachment 3299
Attachment 3300
Attachment 3301
Attachment 3302