You are continuously reading ADC data register - conversion is finished or not. Also your code have buffer overrun error which most probably will cause crash. I would suggest to study ADC sample code first - to familiarize with ADC use, how to wait for conversion done. And don't show us your trash code, clean it before showing
↧