Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ADC and Digital mixing on other pin port authorized ?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
hobby

Bascom Member



Joined: 12 Apr 2004
Posts: 109
Location: Brussels

belgium.gif
PostPosted: Mon Dec 17, 2018 11:53 am    Post subject: ADC and Digital mixing on other pin port authorized ? Reply with quote

Hi,

I use Mega2560, but i needed many I/O and only 3 ADC.
It's authorized this config:
Code:

Config Adc = Single , Prescaler = Auto , Reference = Avcc  
Config Portf.3 = Input
Config Portf.4 = Output
Config Portf.5 = Input
Config Portf.6 = Output
Config Portf.7 = Output
Config portk = Output

Dim W as Word

Do
w= getadc(0)
print w
w= getadc(1)
print w
w= getadc(2)
print w
toggle portf.3
loop
 

Works in hardware, but maybe create problem ?

Thanks
Olivier

(BASCOM-AVR version : 2.0.8.1 )
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Mon Dec 17, 2018 12:31 pm    Post subject: Re: ADC and Digital mixing on other pin port authorized ? Reply with quote

hobby wrote:
Works in hardware, but maybe create problem ?

As long every ground- and power-line is connected correctly, in- or output pins are driven within their specs and switching pins does not occur while ADC-sampling is underway, there should not be a problem.
Back to top
View user's profile
hobby

Bascom Member



Joined: 12 Apr 2004
Posts: 109
Location: Brussels

belgium.gif
PostPosted: Mon Dec 17, 2018 1:13 pm    Post subject: Reply with quote

Thanks to reply.

it reassures me, no software problem in sight.

Bye
Olivier
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum