Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Can you have split ADC usage

Can you have split ADC usage

2013-05-14 by Dave McLaughlin

Hi all,

 

I have a small board from another project that only has PA0 to PA5 of an
ATMega324P brought out and I need to do the following:

 

1 pulse input (PA0/INT0)

2 ADC input (PA1 and PA2)

1 digital output (PA3)

I2C bus (PA4 and PA5)

 

Is it possible to use the ADC on PortA on only 2 channels, ie mixed digital
and analog like this?

 

I have tried but the 2 ADC channels (1 and 2) are always returning a 1023
bit reading. 

 

I have disabled the digital on those 2 channels.

 

 

Is this at all possible or am I going to have to build a small external ADC
board to do this over I2C?

 

 

Dave.

---

Very funny Scotty, now beam down my clothes.

---

 



[Non-text portions of this message have been removed]

Re: [AVR-Chat] Can you have split ADC usage

2013-05-14 by John Samperi

At 12:23 PM 14/05/2013, you wrote:
>Is it possible to use the ADC on PortA on only 2 channels, ie mixed digital
>and analog like this?

Yes, do it all the time.

>I have tried but the 2 ADC channels (1 and 2) are always returning a 1023
>bit reading.
>I have disabled the digital on those 2 channels.

Have you also disabled the pull up resistors?

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

RE: [AVR-Chat] Can you have split ADC usage

2013-05-14 by Dave McLaughlin

Yes, pull ups disabled

 

Even if I pull the input to GND it still reads 1023

 

I'll be back on it tonight so will try a few other ideas.

 

Dave.
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of John Samperi
Sent: 14 May 2013 09:57
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Can you have split ADC usage

 

  

At 12:23 PM 14/05/2013, you wrote:
>Is it possible to use the ADC on PortA on only 2 channels, ie mixed digital
>and analog like this?

Yes, do it all the time.

>I have tried but the 2 ADC channels (1 and 2) are always returning a 1023
>bit reading.
>I have disabled the digital on those 2 channels.

Have you also disabled the pull up resistors?

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495
Website http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************




 
<http://groups.yahoo.com/group/AVR-Chat/post;_ylc=X3oDMTJxMHRydWRsBF9TAzk3Mz
U5NzE0BGdycElkAzQzMTM5NzQEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzE4NDc0BHNlYwNmdH
IEc2xrA3JwbHkEc3RpbWUDMTM2ODUwMDIxNw--?act=reply&messageNum=18474> Reply via
web post 

 
<mailto:samperi@ampertronics.com.au?subject=Re%3A%20%5BAVR-Chat%5D%20Can%20y
ou%20have%20split%20ADC%20usage> Reply to sender 

 
<mailto:AVR-Chat@yahoogroups.com?subject=Re%3A%20%5BAVR-Chat%5D%20Can%20you%
20have%20split%20ADC%20usage> Reply to group 

 
<http://groups.yahoo.com/group/AVR-Chat/post;_ylc=X3oDMTJlZTdjdjl2BF9TAzk3Mz
U5NzE0BGdycElkAzQzMTM5NzQEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA250cGMEc3
RpbWUDMTM2ODUwMDIxNw--> Start a New Topic 

 
<http://groups.yahoo.com/group/AVR-Chat/message/18473;_ylc=X3oDMTM2OGlpZHVtB
F9TAzk3MzU5NzE0BGdycElkAzQzMTM5NzQEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzE4NDc0B
HNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTM2ODUwMDIxNwR0cGNJZAMxODQ3Mw--> Messages in
this topic (2) 

Recent Activity: 

 
<http://groups.yahoo.com/group/AVR-Chat;_ylc=X3oDMTJlaW5sODd0BF9TAzk3MzU5NzE
0BGdycElkAzQzMTM5NzQEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWU
DMTM2ODUwMDIxNw--> Visit Your Group 

 
<http://groups.yahoo.com/;_ylc=X3oDMTJkMHE5aW4xBF9TAzk3MzU5NzE0BGdycElkAzQzM
TM5NzQEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzY4NTAwMjE3>
Image removed by sender. Yahoo! Groups

Switch to:
<mailto:AVR-Chat-traditional@yahoogroups.com?subject=Change%20Delivery%20For
mat:%20Traditional> Text-Only,
<mailto:AVR-Chat-digest@yahoogroups.com?subject=Email%20Delivery:%20Digest>
Daily Digest .
<mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
Unsubscribe .  <http://docs.yahoo.com/info/terms/> Terms of Use .
<mailto:ygroupsnotifications@yahoogroups.com?subject=Feedback%20on%20the%20r
edesigned%20individual%20mail%20v1> Send us Feedback 



[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.