Continue to Site

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.

Multiple ADC in PIC16F877A [assembly code]

Status
Not open for further replies.

azhari24

Newbie level 6
Newbie level 6
Joined
Oct 30, 2011
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,348
hi guess... I want use multiple ADC in PIC16F877A but in Assembly code. I want reading 4 ADC port (RA0 RA1 RA2 RA3) for input. Can you help me? or do yoyou have reference about this?

thank you....:smile::smile:
 

It's all in the data sheet. Just select the input to be fed to the ADC, start the conversion and wait for the result.
Note: There is only one ADC, you can't take four readings simultaneously!

Brian.
 
hi guess... I want use multiple ADC in PIC16F877A but in Assembly code. I want reading 4 ADC port (RA0 RA1 RA2 RA3) for input. Can you help me? or do yoyou have reference about this?

thank you....:smile::smile:

Hi,

Also you might find this tutorial #13 of help **broken link removed**
 
It's all in the data sheet. Just select the input to be fed to the ADC, start the conversion and wait for the result.
Note: There is only one ADC, you can't take four readings simultaneously!

Brian.

Thank you...

---------- Post added at 08:09 ---------- Previous post was at 08:08 ----------

Hi,

Also you might find this tutorial #13 of help **broken link removed**

i will try. thank you...
 

There is 1 ADC but multiplex with many input. Every time you switch to another input, make sure you put delay about 2ms to give time it's multiplex.
 

There is 1 ADC but multiplex with many input. Every time you switch to another input, make sure you put delay about 2ms to give time it's multiplex.

thank you... do you have sample program?
 
Last edited:

Of course there is a way to do true simultaneous sampling. It onvolves using many discrete Sample and Hold circuits. You just connect S/h input to your signals, outputs to analog pins of PIC and tie all of write strobe pins together to single pin of PIC. This way you can trigger many samplings at exactly the same time and then digitalize them one by one with ADC.
 

Of course there is a way to do true simultaneous sampling. It onvolves using many discrete Sample and Hold circuits. You just connect S/h input to your signals, outputs to analog pins of PIC and tie all of write strobe pins together to single pin of PIC. This way you can trigger many samplings at exactly the same time and then digitalize them one by one with ADC.

thank you... do you have sample program?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top