This page describe only a subset of the commands

Packet format

The packet is aligned to 16-bit words, rather then 8-bit byte. This might also lead to a confusion of the packet byte ordering.

There are 2 kind of frames:

  • fast commands
  • block transfer commands

Fast commands

Fast commands are intended as a dedicated komma sequence, that can be even  interleaved in the slower-priority packets. The DIF implemnts following fast commands:

pktmeaning note
0xE311Start acquisitionstarts the acquisition. Issued by cmd_rx
0xE313Stop acquisition

Stops the acquisition. Is handled by an acq_stop module

0xE0--Sync5 MHz derived clock synchronization. Handled by lda2dif module

Block transfer commands

Packet structure:

bytes
default
0-1packet_type0xCC02generic command header
2-3packet_ID0x0000number of packets (for checking lost packets)
4-5type_modifier

6-7specifier

8-9data_length0
len*2(data - if any)-
(10-11)+len*2CRC0xABAB

Default answer:




packet_type0xCC02
packet_IDRO_cycle + 0x0F+ means concatenate
type_modifiertype_modifier
specifierspecifier
data_length0 or 10 or 1 bytes
datadataonly if data_length==1
CRC0xABAB

Type modifiers:

  • x"0002" -- power control commands
  • x"0003" -- switch SPIROC1/SPIROC2
  • x"0004" -- reset control commands
  • x"0005" -- clock enable/disable commands
  • x"0006" -- set DIF commands
  • x"0007" -- no_trig enable/disable
  • x"0008" -- power pulsing (select)commands
  • x"0010" -- set control register
  • x"0012" -- (re) initialization
  • x"000F" -- readout time (length of acquisition)
  • x"0022" -- set power pulsing timing
  • x"0024" -- set sc_select signal
  • x"0030" -- set trigger
  • x"0080" -- set analog probe
  • x"0081" -- set DIF ID
  • x"0082" -- set digital probe #1 or #2

Updates:

Timing configurationBXID width:

bytes


0-1packet_type0xCC02generic command header
2-3packet_ID0x0000number of packets (for checking lost packets)
4-5type_modifier0x0021
6-7specifier

0xRRLL

(0x00A0)

RR: reserved

LL: BXID width

8-9data_length0
len*2(data - if any)-
(10-11)+len*2CRC0xABAB

Default answer:


  • No labels