Reply
<a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Ninja</font></font> </a> kag
Posts: 85
Registered: ‎11-29-2015

Re: Joystick BRD8006A example code

I was able to get my Blue Gecko to perform a conversion.  I solved it by learning that I needed to select the ADC_CLK input by writing directly to the CMU_ADCCTRL register to specify the AUXHFRCO.

 

Is there a example of programming the VREFATT  and VINATT?  This example would help in verifying a correct set up of the ADC reference and input pin.

 

Thank you,

Keith

Posts: 2,597
Registered: ‎08-25-2015

Re: Joystick BRD8006A example code

Hi,

 

Your question is not on the ADC so it's unrelated with the Bluetooth stack. I moved it to the 32-bit MCU board where you can get support on the peripherals.

 

Regards,

Tiago

Highlighted
Posts: 2,202
Registered: ‎10-14-2014

Re: Joystick BRD8006A example code

I think an0021 is a good start point. but it may not include the example ti configure the VREF and VIN attenuation register.
You could read the ADC section of the reference manual (EFM32PG1B) to know the meaning of these register.
I hope it helps.
WeiguoLu