nrf51-ADC-examples icon indicating copy to clipboard operation
nrf51-ADC-examples copied to clipboard

Examples that operate the nRF51 internal ADC

Results 4 nrf51-ADC-examples issues
Sort by recently updated
recently updated
newest added

Also added in missing include files, and sorted the includes so that they are easier to scan visually. This PR is meant to be an early preview. If you like...

Hi, I'm reading [http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf](http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf) and in section 2.2 it seems possibile to use P0.00 as Analog Input. Is it possibile? Which is its name? Thanks

It should be something like : # define ADC_PRE_SCALING_COMPENSATION 3 # define ADC_REF_VOLTAGE_IN_MILLIVOLTS 1200 # define ADC_RESULT_IN_MILLI_VOLTS(ADC_VALUE)\ ``` ((((ADC_VALUE) * ADC_REF_VOLTAGE_IN_MILLIVOLTS ) / 255) * ADC_PRE_SCALING_COMPENSATION) ```

In the adc_init() function, it is specified that no prescaling is used which is wrong according to the parameter used to configure the ADC. (ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling