Skip to main content
ssk
Associate III
March 18, 2015
Question

SPC560D30L3 - ADC states

  • March 18, 2015
  • 11 replies
  • 2199 views
Posted on March 18, 2015 at 15:55

Hello,

I am trying to use the ADC driver (ADCD2) for SPC560D30L3 device using Discovery kit (I have replaced SPC560D40 with SPC560D30 MCU). I am trying to implement a state machine using different states of ADC driver. If my understanding is correct, I shall access the states as below,

switch (ADCD2.state)

{

case ADC_UNINIT:

break;

case ADC_STOP:

break;

case ADC_READY:

break;

case ADC_ACTIVE:

break;

case ADC_COMPLETE:

break;

case ADC_ERROR:

break;

}

If above way is correct the statement 'ADCD2.state' itself is not working! Can anybody clarify the issue? What other settings are required?

Thanks in advance for your help.

Mike.

#adc
This topic has been closed for replies.

11 replies

Erwan YVIN
ST Employee
April 29, 2015
Posted on April 29, 2015 at 13:42

Hello Mike ,

Could you try to increase the priority of your EIRQ17 (PSR to set) ?

we have a ADC priority

#define SPC5_ADC_ADC0_WD_PRIORITY           12

#define SPC5_ADC_ADC0_EOC_PRIORITY          SPC5_ADC_ADC0_WD_PRIORITY

if the problem persists , could you send me your application ?

  Best regards

Erwan