Other Parts Discussed in Thread: TDC7200
I' m running an experiment controlling TDC7200EVM using Arduino uno the pin configuration is below:
// Connections:
//
// TDC7200 Pro-Mini
// 1 Enable 4
// 2 Trigg -
// 5 Clock 8 8Mhz clock output configured in Pro Mini Fuse settings
// 6 Nc -
// 7 Gnd Gnd
// 8 Intb 2
// 9 Dout 12
// 10 Din 11
// 11 Csb 10
// 12 Sclk 13
// 13 Vreg - Via 1uF to Gnd
// 14 Vdd Vcc 3.3V
the guithub link for the code is :
I'm running a basic experiment using function generator by generating an periodic square wave of 20MHz and giving it as external start signal and a 10MHz pulse (20ns pulse width) as stop signal.
Both the signals are synchronized. Number of stop signal=1. I'm supposed to observe a tof = 20ns if i delay the stop signal by 20ns. But I observe that the tof value is both 20ns sometimes and 120ns at some other instances.
Why is this occuring? The counter has to be reset at every rising edge of start signal and only adjacent start signal pulses should contribute to the tof.