Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

about ATmega328 ADC pins

fm101

Member level 3
Joined
Apr 13, 2020
Messages
57
Helped
0
Reputation
0
Reaction score
4
Trophy points
18
Activity points
400
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?
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
22,244
Helped
4,613
Reputation
9,242
Reaction score
4,878
Trophy points
1,393
Activity points
146,954
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
 

fm101

Member level 3
Joined
Apr 13, 2020
Messages
57
Helped
0
Reputation
0
Reaction score
4
Trophy points
18
Activity points
400
it is off by default from the datasheet
3.jpg
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
22,244
Helped
4,613
Reputation
9,242
Reaction score
4,878
Trophy points
1,393
Activity points
146,954
Hi,

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

Klaus
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top