DNA/DNR-IRIG-650 IRIG Timing Layer
Chapter 3
36
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.
Event configuration field:
<event_cfg>
The following configuration bits are defined:
Select source for the event, year/day/hour/minute/seconds/microseconds
inclusion/ exclusion, clock source, event pulse length, one-shot/repeat mode
and other settings. Detailed descriptions in table below are extracted from the
powerdna.h
provided with your PowerDNA Software Suite examples.
Bit
Name
Description
31
CT650_EVT_CFG_EN
Enable event. Once enabled, event can be triggered by
the event source. If
STE
bit is set, event should be pre-
armed by the global start trigger, note that stop trigger
that follows start trigger can disarm event if the
CT650_EVT_CFG_SPTE
bit is set.
Single (..._RPT=0) event will auto-clear this bit upon
finishing generating event pulse(es).
30-29
CT650_EVT_CFG_RSV
Reserved.
28
CT650_EVT_CFG_SPTE
=1 Use global (layer) stop trigger to "disarm" event
27
CT650_EVT_CFG_EV1IRQ
=1 Generate firmware IRQ based on sub-event 1
26
CT650_EVT_CFG_EV0IRQ
=1 Generate firmware IRQ based on sub-event 0
25
CT650_EVT_CFG_DBL
Number of sub-events, 0-single, 1-dual
24
CT650_EVT_CFG_RPT
Set repeat mode (0-one-time, 1-retriggerable)
23-20
CT650_EVT_CFG_EVTPL(N)
CT650_EVT_CFG_EVTPL_1MS=15
Specify event pulse length (set to 60µs by default).
Special cases are:
EVTPL_1MS= 15 to Use 1ms event pulse length.
19-18
CT650_EVT_CFG_ISRC
Clock source for the internal counter
17
CT650_EVT_CFG_STTE
=1 Use global (layer) start trigger to "arm" event
16-12
CT650_EVT_CFG_IRSRC
Reset source for the internal event period counter
same codes as for ESRC field
11
CT650_EVT_CFG_YM
=1 For date/time events - enable compare in new logics
10
CT650_EVT_CFG_DM
=1 For date/time events - enable compare in new logics
9
CT650_EVT_CFG_HM
=1 For date/time events - enable compare in new logics
8
CT650_EVT_CFG_MM
=1 For date/time events - enable compare in new logics
7
CT650_EVT_CFG_SM
=1 For date/time events - enable compare in new logics
6
CT650_EVT_CFG_UM
=1 For date/time events - enable compare in new logics
5
CT650_EVT_CFG_EDGE
Specify the active edge of the event source, for event
sources 8-31. Set to 1 for event sources 1-7.
4-0
CT650_EVT_CFG_ESRC_...
Event source mode (0 to 31). See next two tables, below