Hi, when I set a break point in the adc12_ISR fro repeated single channel memory I get Following values for ADC12MEM0 Name : ADC12MEM0 Default:0x000720 Hex:0x000720 Decimal:1824 Octal:03440 Binary:000000000000011100100000 when I try to isolate lower 12 bits I always get 0. case 6: //Vector 6: ADC12IFG0 adcResult[index] =(ADC12MEM0 & 0x0fff); // keep only low 12 bits index++; isConversionComplete=FALSE; if (index == 40) { index = 0; isConversionComplete=TRUE; } __bic_SR_register_on_exit(LPM0_bits+GIE); break; Any help will be highly appreciated, Thanks
↧