This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I tried this instruction anywhere in the main, but it doesn't change the bit, I have to put this instruction in ADC_SOC_Cnf.c, then it works.
why doesn't it work in main?
AdcRegs.ADCCTL1.bit.TEMPCONV = 1;
I am using TI demo Kit, HVPSFB PCMC project.
thanks
Harrison,
In the main file did you setup the ADC soc first and then try to set this bit?? My understanding is that If the eallow bit is set and the ADC bandgap reference is enabled then you should be able to set this bit.
thanks.
I set this bit after calling ADC_SOC_Cnf.c.in the main.
the file ADC_SOC_Cnf.c, sets SOC and everything else.
I thought this way should be ok, but not.
HI Visal,
you are right, I added EALLOW instruction before setting the bit in the main, it works.
Appreciate it a lot.