[riot-notifications] [RIOT-OS/RIOT] Arduino Zero ADC (#11335)

Alexander notifications at github.com
Mon Apr 8 16:51:36 CEST 2019


I got it working with the bellow configuration. It is valid for the [Rhomb Duino Zero](https://wiki.rhomb.io/index.php?title=S200_Master_-_Duino_Zero) board, which includes the same chip as the Arduino Zero, the Atsamd21g18a. I also implemented specific ADC settings for the board like external mux control and reference voltage, and I added ADC routines with shorter execution times.
If anyone is using the Duino Zero board and wishes to use ADC, write me a message.
 
```
static const adc_conf_chan_t adc_channels[] = {
   /* port, pin, muxpos (for internal signals port and pin are dummy values) */
	{GPIO_PIN(PB, 8), ADC_INPUTCTRL_MUXPOS_PIN2},	// A0
	{GPIO_PIN(PA, 5), ADC_INPUTCTRL_MUXPOS_PIN5},	// A1
	{GPIO_PIN(PB, 9), ADC_INPUTCTRL_MUXPOS_PIN3},	// A2
	{GPIO_PIN(PB, 2), ADC_INPUTCTRL_MUXPOS_PIN10},	// A3
	{0x0, 0x18},					// Temp
	{0x0, 0x19},					// Bandgap
	{0x0, 0x1A},					// SCALEDCOREVCC
	{0x0, 0x1B}					// SCALEDIOVCC
};
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11335#issuecomment-480865220
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190408/5dcab5a6/attachment.html>


More information about the notifications mailing list