The problem is that TCD1304AP needs minimum clock 0.8 Mhz, this is what the data sheet says.
The fastest clock I can get from Arduino 120 kHz from simple loop
but if I add any extra code looks the fastest speed gets down to 10 KHz on any of the digital outputs.
I wonder if TCD1304AP can be driven at lower speed like 10 KHz and still work.
to operate at the recommended speed would require extra circuit with A/D converter and stored in fast memory for Arduino to get the data later.
but it makes it too complicated and too expensive.
I like Arduino it is so simple and flexible for many projects.
The fastest clock I can get from Arduino 120 kHz from simple loop
but if I add any extra code looks the fastest speed gets down to 10 KHz on any of the digital outputs.
I wonder if TCD1304AP can be driven at lower speed like 10 KHz and still work.
to operate at the recommended speed would require extra circuit with A/D converter and stored in fast memory for Arduino to get the data later.
but it makes it too complicated and too expensive.
I like Arduino it is so simple and flexible for many projects.