To connect the TCD1304 to the Nucleo F401RE simply make the following connections:
- fM connects to PB1
- SH connects to PB10
- ICG connects to PA1
- Output connects to PC3
Ideally the TCD1304 runs on 4.0 V, but connecting V+ to the +5V pin works fine. For improved performance the power supply for the CCD can be split into analog and digital lines.
Don’t forget GND.
If you’re a low-noise freak, you may want to pull down unused GPIOs and connect them to GND. The following GPIOs are pulled down by default in the firmware:
PA0, PB0, PB2 and PC2
If you find the pins on the F401RE inconveniently positioned, it’s possible to choose other pins. It’s not an entirely free choice, confer with the alternate function mapping in the datasheet. And try to keep the driving pulses away from ADC-in (PC3).¹