Yahoo Groups archive

AVR-Chat

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

Message

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

2013-05-14 by Cat C

Did you set up the MUX?
Cat

-----Original Message-----

From: Dave McLaughlin
Sent: 14 May 2013 02:23:42 GMT
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Can you have split ADC usage

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]



------------------------------------

Yahoo! Groups Links

Attachments

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.