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.

interfacing of CCD to a Microcontroller

Status
Not open for further replies.

sandy.12345

Newbie level 5
Joined
Aug 21, 2012
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
hi

I am currently doing a project in which i have to interface a CCD (TCD1304ap) to Micro controller (atmega32).please help me to interface it with ADC in micro controller
 

AT Mega32 is not fast enough to handle video signals.

Any way what is your project?
 
AT Mega32 is not fast enough to handle video signals.

Any way what is your project?

my project is refractometer in which I have to take the values on each pixel (total 3648 pixels )from TCD1304ap .Please guide me to take this reading
 

Try using ARM or DSP of your choice
 

The data sheet is not he best in the world.
Try something like this
Build a simple test circuit like the on shown on the data sheet.
Program your micro to generate a clock, to clock out the pixels at what ever rate you require.
Program the micro to generate the SH and ICG pulses as shown on the data sheet.
When IGC is high the analogue data OS will be available. Monitor this on an oscilloscope. and check that the noise induced by the micro is acceptable.
Adjust the video voltage such that it suits the A/D converter in the micro. Probably just pot down the voltage, and may be add an offset.
Connect the analogue voltage to the micro and convert on each falling edge of the clock pulse. It looks like the data is clocked out on the rising edge so should be stable for conversion on the falling edge. You will hove to work out A/D conversion times for yourself and set the clock accordingly.

I'm no expert in CCDs but this looks like the way to procede. You will have toe do some work yourself, I doubt there is an off the shelf answer.

Peter
 
Agree, most CCD datasheets are very brief!
You should be able to get something out by toggling the lines as indicated in the datasheet.
There is an integrating period, so you do need to act somewhat quickly hence the need to have
a clock rate in the ballpark of the datasheet recommendation (or have a darkened room/tape it up),
otherwise you'll just get white level. I'm not a CCD expert either, so waiting on your
results and source code ; ) The atmega should be ok-ish to process, but I've no idea if the ADC
in there is fast enough, maybe it is, in the darkened room/taped condition.
 
Thank you peter I am a beginner in programming can you please tell me how to set clock for two inputs ICG and SH in MHZ

- - - Updated - - -
 

I have never programmed an ATmega so can not tell you how to do it.
Look at the data sheet for the micro, that will tell you where the port registers are.
If you have never programmed a micro before, then you have a learning exercise before you.
I'm sure there are plenty of ATmega tutorials on the net and that starter kit boards with simple starter programs are availiable.
Most have a blinking LED 'hello world' program, start with that to show you how to turn a port on and off at a given rate, after all that is all you need to do to generate the clock pulses.

Peter
 

Thanks for your response I generated 6MHz for the master clock to TCD1304 ap
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top