DNA/DNR-IRIG-650 IRIG Timing Layer
Chapter 3
37
Programming with the Low Level API
Tel: 508-921-4600
www.ueidaq.com
Vers:
4.6
Date: March 2019
DNx-IRIG-650 Chap3x.fm
© Copyright 2019
United Electronic Industries, Inc.
When
<event_cfg>
is
CT650_EVT_CFG_ESRC
or
CT650_EVT_CFG_IRSRC
,
the following event sources or internal counter reset sources (i.e. ESRC/IRSRC)
must be ORed with
<event_cfg>
parameters to set the ESRC/IRSRC source.
NOTE:
CT650_EVT_CFG_ESRC_DNAB
,
CT650_EVT_CFG_ESRC_IPC
,
CT650_EVT_CFG_ESRC_SBT
, and
CT650_EVT_CFG_ESRC_BCDT
are mutually exclusive in
ESRC/IRSRC
fields. Use one and only one.
When
<event_cfg>
is 8 to 31, the digital event sources are defined by the
following modes (remember to also set
CT650_EVT_CFG_EDGE
):
Mode
Name (in
powerdna.h
)
Description
31
8
CT650_EVT_CFG_ESRC_DEVT23
CT650_EVT_CFG_ESRC_DEVT0
Digital event source 23 to
Digital event source 0
7
CT650_EVT_CFG_ESRC_RES7
Reserved
6
CT650_EVT_CFG_ESRC_DPLL
Digital PLL which follows time-source
5
CT650_EVT_CFG_ESRC_DNAB
DNA bus condition (reserved for debugging)
4
CT650_EVT_CFG_ESRC_IPC
Internal period counter
3
CT650_EVT_CFG_ESRC_SBT
Straight Binary time mode, event
condition is "Straight Binary Input time" >= "SB set time"
2
CT650_EVT_CFG_ESRC_BCDT
BCD time mode, event condition is
"BCD Input time" >= "BCD set time". BCD time mode
allows creation of the events that will repeat every year,
month, day, minute or second - by masking unused
parameters in CFG0 register. For events with faster than
1sec repetition rate, can be cascaded or internal counter
can be used as an event source
1
CT650_EVT_CFG_ESRC_SWF
Software only, note that event sources 2-31 are ORed
with software. For the ESRC field software clock is read
from EVT_EMP1 register. For the IRSRC field software
clock is read from EVT_EMP0 register
0
CT650_EVT_CFG_ESRC_DIS
No active source - event is in disabled state
Mode
Name
Description
8
CT650_EVT_SEVT00
Event 0/ Subevent 0 (start event)
9
CT650_EVT_SEVT01
Event 0/ Subevent 1 (stop event)
10
CT650_EVT_SEVT10
Event 1/ Subevent 0 (start event)
11
CT650_EVT_SEVT11
Event 1/ Subevent 1 (stop event)
12
CT650_EVT_SEVT20
Event 2/ Subevent 0 (start event)
13
CT650_EVT_SEVT21
Event 2/ Subevent 1 (stop event)
14
CT650_EVT_SEVT30
Event 3/ Subevent 0 (start event)
15
CT650_EVT_SEVT31
Event 3/ Subevent 1 (stop event)
16
CT650_EVT_SYNC0
SYNC bus line 0
17
CT650_EVT_SYNC1
SYNC bus line 1
18
CT650_EVT_SYNC2
SYNC bus line 2
19
CT650_EVT_SYNC3
SYNC bus line 3
20
CT650_EVT_PPS
PPS pulse
21
CT650_EVT_EXTT
External time received and applied
22
CT650_EVT_EINV
External sync lost
23
CT650_EVT_TTL0
External TTL input 0
24
CT650_EVT_TTL1
External TTL input 1
25
CT650_EVT_TTL2
External TTL input 2
26
CT650_EVT_TTL3
External TTL input 3
27
CT650_EVT_TTL4
External TTL input 4
28-31
RSVD
Reserved.