acam-messelectronic gmbh - Am Hasenbiel 27 - D-76297 Stutensee-Blankenloch - Germany - www.acam.de
3-6
TDC-GP2
Time-to-Digital-Converter
The time it takes the ALU depends on whether calibration is on or not and the supply voltage.
Table 3-1: ALU timings
un-calibrated calibrated
3.3 V 220 ns 2.3 µs
2.5 V 310 ns 2.5 µs
2.0 V 580 ns 2.8 µs
As soon as the data is available from the output
register the interrupt flag is set (assumed that the
ALU interrupt is enabled, see reg 2, EN_INT). Further
the load pointer of the output register is increased
by 1 and points to the next free memory. The actual
position of the load pointer can be seen in the status
register, Bits 0 to 2.
3.2.4 Reading Data
Now the user can read the data sending the opcode 10110ADR. With the next 16 cycles (un-calib-
rated data) or 32 cycles (calibrated data) the TDC-GP2 will send the result, beginning with the most
significant Bit (MSB).
a. Un-calibrated data format:
16 Bit Signed integer in complements of 2. 1BIN = uncalibrated gate delay is about 65ps at 5V and
25°C.
Time = RES_X x 65ps
b. Calibrated data format:
32 Bit fixed-point number in complements of 2.
Given in multiples of the reference clock.
Time = RES_X * Tref * N, N = 1, 2 or 4
The measured time interval may not exceed ,
otherwise the ALU will go into overflow and will
write the data 0xFFFFFFFF to the output regis-
ter.
The configuration of the ALU allows only one
hit calculation at the time. In case more than
one hit has been measured it is necessary to
write new commands to HIT1/HIT2 to instruct
the ALU for calculating the other hits. After
writing to HIT1/HIT2 it is necessary to wait for
minimum 4.6µs (calibrated data) or 580ns (un-
calibrated data) before reading or writing again
to HIT1/HIT2.
Example:
configuration
...
write reg1=0x104400 4 hits on channel 1,
calculate Hit1-Start
...
Initialize
...
while(Check interrupt flag)
write reg1=0x204400 calculate Hit2-Start
wait(4.6µs)
write reg1=0x304400 calculate Hit3-Start
wait(4.6µs)
write reg1=0x404400 calculate Hit4-Start
wait(4.6µs)
Now all Hit data are available from registers 0 to 3.
The load pointer value is 4.
At the end the TDC-GP2 has to be initialized again to be ready for the next measurement. This is
done by sending the opcode „Init“ so that the TDC accepts new Start and Stop hits.