To connect the TCD1304 to the Nucleo F401RE simply make the following connections:
- fM connects to PB0
- SH connects to PA1
- ICG connects to PA0
- Output connects to PC0
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:
PB1, PC1, PC4 and PC5
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.¹