Tool/software: Code Composer Studio
If I want multiple ADC signals from multiple analog inputs, in which variables can I store them? ( So while setting up ADC, I currently have:
SetupADC12 mov.w #ADC12SHT0_2+ADC12ON,&ADC12CTL0 ; 16x bis.w #ADC12SHP,&ADC12CTL1 ; ADCCLK = MODOSC; sampling timer bis.w #ADC12RES_2,&ADC12CTL2 ; 12-bit conversion results bis.w #ADC12INCH_1,&ADC12MCTL0; A1 ADC input select; Vref=AVCC bis.w #ADC12IE0,&ADC12IER0 ; Enable ADC conv complete interrupt
If I want another ADC signal, how do I declare that? And in the ADC Interrupt Service Routine, how do I distinguish between the different ADC signals?
Thanks in advance.