Page 1 of 1

Using 3 Analog Channels on 16F877A

Posted: Fri Aug 17, 2012 2:00 am
by markus747
When adding component macro, I don't see how to use 3 analog channels, There are only ADC(0) and ADC(1) to choose from?

Re: USING 3 ANALOG CHANNELS ON 16F877A

Posted: Fri Aug 17, 2012 7:44 am
by JohnCrow
Hi Markus

Im not at home to confim this but the 16F877A has far more than 2 ADC channels, Port A and Port E both have them.
I suspect this is a limitation on the free version as compared with the full versions.
Ive used 4 channels on projects on this device.

Re: USING 3 ANALOG CHANNELS ON 16F877A

Posted: Fri Aug 17, 2012 7:46 am
by medelec35
ADC(0) and ADC(1) are just like component references VR1 VR2 etc on a PCB. So if you require 3 differnt analogue channels e.g an5, an6 and an7 then you will have 3 analogue components: ADC(0), ADC(1) and ADC(2)
They are not the analogue channels.
So to select 3 different analogue channels you need to add one more ADC component.
adc.png
(128.64 KiB) Downloaded 892 times
Then with each component, just right click and select connections and select desired Analogue channel.

That's of course if I have read question correctly?

Martin

Re: USING 3 ANALOG CHANNELS ON 16F877A

Posted: Fri Aug 17, 2012 8:15 pm
by markus747
So it looks like it must be added to the panel to define the connections. Is that correct I haven't seen connections anywhere else.
I added another ANALOG to panel then it appeared in list

Re: USING 3 ANALOG CHANNELS ON 16F877A

Posted: Fri Aug 17, 2012 8:40 pm
by medelec35
markus747 wrote:So it looks like it must be added to the panel to define the connections. Is that correct I haven't seen connections anywhere else.
Yep that is correct. If you want anymore An i/ps, then must be added to panel, then channel can be selected.