Closed microbit-carlos closed 1 year ago
Looks like a simple fix here - has this been tested with the mic to verify we have the same behaviour with and without this patch?
Not tested anything on the device, but built with and without the patch and the hex file produced was identical.
Ok, lets put it in then, and I'll test again with the audio edits I'm working on.
The ADC SE (single ended) mode is set with value 0 at bit 20 in the CONFIG register for each channel.
Before this PR the bit was left as zero, which does set the SE mode. This is the desired mode, as we want the differential mode to be GND. So, this addition does not actually change the value set to
CH[n].CONFIG
, but it's better to be explicit about the configuration.The values for the macros can be found in: https://github.com/NordicSemiconductor/nrfx/blob/master/mdk/nrf52833_bitfields.h#L11953-L11957