Connecting the CCD and the MCU

To connect the TCD1304 to the Nucleo F401RE simply make the following connections:

  1. fM connects to PB0
  2. SH connects to PA1
  3. ICG connects to PA0
  4. 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.

DSC02649

Pin-out of the LDO-version

new-pins

The pin-out for the TCD1304 PCB (SMD-version).

CCD-pcb-pins

The pin-out for the TCD1304 PCB (through-the-hole). NB: The parts numbering differs between the two boards.

pins-f401re

The Nucleo F401RE’s pins.

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.¹


¹ https://erossel.wordpress.com/2017/02/02/firmware-revision-2/

Advertisements