= UT24VE TTL I/O Control =

 * [[SDB Device ID]] 0x30f132b5
 * Hardware: [[UT24VE]]
 * Gateware: [[UT24VE-RC]], [[UT24VE_TRC|UT24VE-TRC]], [[UT24VE-MPD-TRC]]
 * Default configs: [[https://afi-project.jinr.ru/projects/rc-system/wiki|afi-projects/rc-system]]

=== Registers ===

 * 00h - '''Identification''' ''30f132b5'', 32 bits, RO static
 * 04h - '''Number of channels''', RO static
 * 05h - '''Number of input triggers''', RO static
 * 06h - '''Number of input busy signals (xoffs)''' , RO statcic

Other registers: (Reg# + 10h) = TTL I/O #, R/W
 . [14:0] - input or output selector
 . [15] - output enable: 1 - output, 0 - input

Selector decode for inputs
||<:>'''Offset'''||<:>'''Quantity'''          ||<:>'''Description'''||
||<:>0           ||<:>1                       || spill input        ||
||<:>1           ||<:>in trig num             || trigger inputs     ||
||<:>'in trig num' + 1 ||<:>in busy num       || busy inputs        ||
||<:>'in busy num' + 'in trig num' + 1 ||<:>2 || readout trigger inputs ||

Selector decode for outputs
 . 0 - spill
 . 1 - L0 trigger
 . 2 - L1 trigger
 . 3 - busy
 . 4 - logic 0
 . 5 - logic 1

----
[[CategorySDB|SDB]] [[CategoryUT24VE|UT24VE]]