Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 237529

Forum Post: RE: ADC interrupt never occurs

$
0
0

Quickly - several things jump out:

a)   IntADC1Handler,   // ADC Sequence 0  Suspect your MCU has 2 ADC modules (ADC0 & ADC1) - everywhere else you use ADC0 - ADC1 usage as you show here seems unwise

b)  IntEnable(ADC_INT_SS0);   might  IntEnable(INT_ADC0SS0);  prove superior?

c) not thrilled w/your calling order:  here is what works - our group:  (safest to first disable - then config!)

    ROM_IntDisable(INT_ADC0SS0);           // note we use ROM calls - yours will work as well
    ROM_ADCIntDisable(ADC0_BASE, 0);
    ROM_ADCSequenceDisable(ADC0_BASE, 0);

   and then SeqConfig, SeqStepConfig, SeqEnable, ADCIntClear, ADCIntEnable, IntEnable

d) while not (yet) yielding an error - PWMOutputState shows 2 entries - yet you've PinTyped & PinConfig'ed just PB6.  Neighbor PB7 serves ready/able to provide that missing link...

Do not know - nor like the singular vendor focus of CCS - so cannot advise in that regard...  Guidance here should get you closer - if not, "all the way."


Viewing all articles
Browse latest Browse all 237529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>