Difference between revisions of "JLab Module Configuration in CODA"
From GlueXWiki
Line 8: | Line 8: | ||
! Payload Crate | ! Payload Crate | ||
|- | |- | ||
− | | '''Download''' | + | |rowspan="2"|'''Download''' |
+ | | <!-- Skip column for TS --> | ||
+ | | <!-- GTP crate --> | ||
+ | '''TI:''' | ||
+ | tiInit() | ||
+ | |||
+ | tiDisableVXSSignals() | ||
+ | | <!-- Payload crate --> | ||
+ | '''TI:''' | ||
+ | tiInit() | ||
+ | |||
+ | tiDisableVXSSignals() | ||
+ | |- | ||
| <!-- TS crate --> | | <!-- TS crate --> | ||
'''TS''': | '''TS''': | ||
Line 40: | Line 52: | ||
- Disables trigger link (twice) (0x55), Enables trigger link (0x77) | - Disables trigger link (twice) (0x55), Enables trigger link (0x77) | ||
|- | |- | ||
− | | '''Prestart''' | + | |rowspan="2"| '''Prestart''' |
+ | | <!-- Skip column for TS --> | ||
+ | | <!-- GTP crate --> | ||
+ | | <!-- Payload crate --> | ||
+ | |- | ||
| <!-- TS crate --> | | <!-- TS crate --> | ||
'''TS:''' | '''TS:''' | ||
Line 49: | Line 65: | ||
- Sets interrupt level and vector. | - Sets interrupt level and vector. | ||
|- | |- | ||
− | | '''Go''' | + | |rowspan="2"| '''Go''' |
+ | | <!-- Skip column for TS --> | ||
+ | | <!-- GTP crate --> | ||
+ | | <!-- Payload crate --> | ||
+ | |- | ||
| <!-- TS crate --> | | <!-- TS crate --> | ||
'''TS:''' | '''TS:''' | ||
Line 56: | Line 76: | ||
- Enables trigger source | - Enables trigger source | ||
|- | |- | ||
− | | '''End''' | + | |rowspan="2"| '''End''' |
| <!-- TS crate --> | | <!-- TS crate --> | ||
'''TS:''' | '''TS:''' | ||
Line 64: | Line 84: | ||
tsIntDisconnect() | tsIntDisconnect() | ||
|- | |- | ||
− | | '''Pre-Download''' (after '''Reset''', executed prior to '''Download''') | + | | <!-- GTP crate --> |
+ | | <!-- Payload crate --> | ||
+ | |rowspan="2"| '''Pre-Download''' (after '''Reset''', executed prior to '''Download''') | ||
+ | | <!-- TS crate --> | ||
+ | '''TS:''' | ||
|- | |- | ||
+ | | <!-- GTP crate --> | ||
+ | | <!-- Payload crate --> | ||
|} | |} |
Revision as of 09:45, 9 May 2013
In this wiki page, we attempt to outline how JLab Modules are configured and run within each CODA transition and state.
The following presents a table of the evolving global trigger setting in the EEL Electronics Lab.
CODA Transition | Trigger Supervisor Crate | Global Trigger Crate | Payload Crate |
---|---|---|---|
Download |
TI: tiInit() tiDisableVXSSignals() |
TI: tiInit() tiDisableVXSSignals() | |
TS: tsInit() - Sets user defaults tsSetTriggerSource(..) tsSet*Input(..) - Enables specific inputs tsSetSyncEventInterval(..) tsSetBlockLevel(..) tsLoadTriggerTable() tsSetTriggerHoldoff(..) tsSetSyncDelayWidth(..) tsSetBlockBufferLevel(..) TD: tdInit() - Sets user defaults. - tdAutoAlignSync() - - Resets IODELAY (bit 14) - - Auto Align P0 Sync (bit 11) tdGSetBlockLevel(..) tdGSetBlockBufferLevel(..) tdAddSlave(..) SD: sdInit() sdSetActiveVmeSlots(..) TS: tsClockReset() - Clock250 Resync (0x22) tsTrigLinkReset() - Disables trigger link (twice) (0x55), Enables trigger link (0x77) | |||
Prestart | |||
TS: tsSyncReset() - SyncReset (0xDD) tsIntConnect(...) - Connects trigger routine as the interrupt/polling service routine. - Sets interrupt level and vector. | |||
Go | |||
TS: tsIntEnable(..) - Enables interrupts or starts polling thread. - Enables trigger source | |||
End |
TS: tsDisableTriggerSource(1) - Disables all trigger sources tsIntDisable() tsIntDisconnect() | ||
Pre-Download (after Reset, executed prior to Download) |
TS: | ||