bashaven.blogg.se

Analog to digital converter module
Analog to digital converter module





analog to digital converter module

If func_val() is executed and thenĮvalProx(), is the value of proxval influenced by the val? (when both the values depend on ADCRH and ADCRL) So does the value of proxval influence the value of val when accessed? i.e. Question: The ADCRL/ ADCRH are same for the two different setting of the ADCSC i.e. My question is about the concept of Analog to Digital Converters in MCU.ĪDCRL and ADCRH are the registers in which the converted values are stored.ĪDCSC is the status control register in which I have specified two different channels to be used.

analog to digital converter module

Now both the samples are snippets from a bigger code, which compiles and works.

analog to digital converter module

While(!ADCSC1_COCO) //check for conversion complete flag.ĪDCSC1 = 0x02 // sets the required channel. Please consider the following codes: //Code Sample 1ĪDCSC1 = 0x00 // sets the required channel.







Analog to digital converter module