I'm attempting to read from an ILX511 CCD but have problems as I only appear to be reading the first pixel only (readout only changes when I shine a light on one end of CCD).
For test purposes and due to lack of UNO memory I only sample alternate pixels and divide the 10 bit result down to fit into a byte array ready to send over serial to processing once the capture has finished.
I have tried both S/H & non S/H mode but results are always the same.
Attached are LA screenshots to show signals and timings and the Arduino sketch. Can anyone see where I have gone wrong or have already done this and can point me in the right direction.
EDIT: To prove the problem was not my analogue sampling I simplified the code to just generate the CLK & ROG signals and used an oscilloscope to view output (Image attached). The upper (cyan) trace is from the LED pin and is used as a trigger, the lower (yellow) trace is the VOUT result. I'm shining a light on half the array so should not be getting a steady value as shown when trigger is high. Another noteworthy point is I'm not even getting the 33 dummy pixels before the true pixel data, nor the 6 dummy pixels after.
ILX511.ino (3.29 KB)
IMAG001.BMP (47 KB)