Is there any way to set PORTA.0 as a low impedance input???
So it's not a PIC problem, it's more a problem with the output of your sensor.we tried to amplify the signal before buffering it and the output just becomes noisy as hell with or without the PIC connected.
With external hardware.Is there any way to set PORTA.0 as a low impedance input???
It's still not really clear to me what you are trying to achieve.
What does the timing of the analog signal look like?
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
I would post the picture from that PDF file if I could. But the signal I get before the PIC is just like the one on page 13 labeled "Vout" and it is in phase with the horizontal clocks and the reset clock in that same corner of the page. I figured that putting the signal through a buffer would take care of the low impedance issue, but it doesn't. What external hardware would you recommend for lowering the impedance??
opamp, transistors, mosfet, fet.... usually opamp
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
that's what i figured, but i tried an LF411 and an LM741 and it doesn't seem to make a difference at the input to the PIC.
depending wich configuration you have play with... did you use a simple buffer circuit (inverted input => to the output)?
what is the actual frequency of this signal???
Personnaly, for that kind of signal, i'll prefer to use multiple external or internal voltage comparators instead. Faster than a/d IMO
Last edited by mister_e; - 7th April 2005 at 07:01.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Well, may be I am all wrong but here is what I see as some fundamental problems!
The Kodak chip is outputting video signal at a typical frequency of 4MHZ and this is before any anti-aliasing filter which means high edge transitions from the CCD.
Even at 20MHz, A/D acquisition time is about 2.4usec - refer to data on page 230-231. This is defined by the internal S/H cap =20pF and the sampling switch impedance. You haven't given the settings for ADCON2?
You are trying to use LF411 or LM741 - these op amps CANNOT handle the signal bandwidth as they will slew rate limit the signal with heavy distortion. But this is academic as you cannot sample the input signal adequately (remember Nyquist) with a Tacq=2usec and even with a minimum Tad =2.
So unless your read out clock is slowed down so that CCD analog output is limited to around 400kHz, I think you are out of luck with the PIC. They don't have video bandwidth ADC.
As Ralph and Steve are trying to figure out from your posting, there is really no info on signal amplitude and shape! Oscilloscope can obviously show these waveforms as it has adequate input bandwidth. Hence my discouraging input..... Anyway, please read datasheet Section 19 and you will get a better idea of how the ADC is configured.
-warrier
Bookmarks