Alchitry Forums
Simple XADC Example - Printable Version

+- Alchitry Forums (https://forum.alchitry.com)
+-- Forum: Alchitry (https://forum.alchitry.com/forum-1.html)
+--- Forum: Tips and Tricks (https://forum.alchitry.com/forum-3.html)
+--- Thread: Simple XADC Example (/thread-30.html)



Simple XADC Example - prebys - 04-06-2019

It was a little frustrating trying to figure out how to use the onboard ADC, so once I got it working, I thought I would share it. 

This is a simple project to scan the temperature, internal voltage levels, and dedicated analog input and display them in hex on the Alchitry Io board.  All channels are continuously scanned, and the channel to be displayed is selected with the first 4 DIP switches. 


Details are in the header of the top file.