about ATmega328 ADC pins

Status
Not open for further replies.

fm101

Member level 5
Joined
Apr 13, 2020
Messages
81
Helped
1
Reputation
2
Reaction score
4
Trophy points
18
Activity points
591
Hello,
I want to use the ADC pins of ATmega328 as digital outputs and inputs. Do I need to turn off the ADC using the ADEN bit? is there anything we have to do to use it as regular digital IO?
 

Hi,

you don´t necessarily need turn off the ADC.
I´m not sure if it is turned on by defalut. It surely is written in the datasheet.

If I´m not mistaken there is the option to turn OFF the digital input section when a pin is used as pure analog input.
I´d need to read the datasheet, at least the ADC section.

Klaus
 

Hi,

Which Atmega328 exactly are you using? There are different types with (slightly) different properties.

Klaus
 

ok problem solved nothing is required to do for using it as digital IO
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…