TDC Raw Data Format

Hardware: MTDC-64, TDC-96, PhTDC

See also: VME DAQ Rawdata Format

Data read out of the TDC is contained in 32 bit data packets. The first four bits of a packet are used to define the type of data packet. The following 4 bits are used to identify the ID of the TDC chip (programmable) generating the data. Only 8 out of the possible 16 packet types are defined for TDC data (bit 31 always set to zero by TDC). The remaining 8 packet types are added by higher levels of the DAQ system.

Data types

0

1

2

TDC header

3

TDC trailer

4

TDC leading edge time measurement

5

TDC trailing edge time measurement

6

TDC error

7

Padding (ignore it)

2 - TDC event header

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

2

TDC ID

event number

TDC timestamp

TDC ID is the programmed ID of TDC

TDC timestamp in number of 25 ns time intervals since global trigger timestamp found in event header.

3 - TDC event trailer

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

3

TDC ID

event number

TDC word count

Time measurement data format depends on resolution set.

4, 5 - Single edge measurements (normal resolution, 19 bits)

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

4/5

TDC ID

channel

time measurement

4, 5 - Single edge measurements (25 ps, very high resolution, 21 bits)

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

4/5

TDC ID

channel/4

time bits [1:0]

time bits [20:2]

4, 5 - Combined leading and trailing measurement, pairing mode (not used in VMEDAQ)

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

4/5

TDC ID

channel

width

leading time

6 - TDC error

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

6

TDC ID

reserved

TDC error flags

TDC error flags bits:

Most important error bits are 12 and 13. Error bit 14 should be ignored.

For detailed description of TDC please refer to HPTDC manual.

7 - Padding

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

7

0


RawData

DataFormatTDC (last edited 2018-10-19 07:56:57 by sav)