• ADC_IRQn trouble

    I am having trouble with setting priority of ADC_IRQn. void ADC_init(void) { nrf_adc_config_t nrf_adc_config; nrf_adc_config.reference = NRF_ADC_CONFIG_REF_VBG; nrf_adc_config.resolution = NRF_ADC_CONFIG_RES_8BIT; nrf_adc_config.scaling = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD;…
  • ADC read is not completeing

    I'm working with an nrf51822 with the s110 softdevice. So I'm trying to read an analog signal from multiple pins. My program will run fine for quite some time. Eventually though for some reason the program gets caught up in the while loop of my get_adc…
  • Adjustable Volume for PWM Driven Piezo on 51422

    I am driving a piezo at a fixed frequency but want to provide adjustable volume by adjusting the duty cycle. I would like to adjust it by setting the duty cycle to 5 levels. For simplicity, lets say 0, 12.5, 25, 37.5, and 50%. However, I am finding this…