ADC Library Not Working

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
sshahryiar
Posts: 5
Joined: 20 Jul 2010 04:59

ADC Library Not Working

#1 Post by sshahryiar » 13 Nov 2016 07:58

I have faced an issue with the ADC library of MikroC for AVR. It doesn't seem to work with ATMega328P. Is this a bug in the compiler?

Thanks.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: ADC Library Not Working

#2 Post by uros.cvetinovic » 14 Nov 2016 15:01

Hi,

Can you please explain how did you test this?

Also, please zip and send your whole project you used for testing this.

Best regards,

Uros

sshahryiar
Posts: 5
Joined: 20 Jul 2010 04:59

Re: ADC Library Not Working

#3 Post by sshahryiar » 15 Nov 2016 13:17

Thanks.... It now works.... I found out that it was an issue with Arduino board.... In order for the ADC library to work AVREF needs to be connected to VDD or a reference.... I thought it was connected to VDD.... Thanks anyways.... :)

Post Reply

Return to “mikroC PRO for AVR General”