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?
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!
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?
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!
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.