RTDX Module
2-354
Data channels are represented by global structures. A data channel can
be used for input or output, but not both. The contents of an input or
output structure are not known to the user. A channel structure has two
states: enabled and disabled. When a channel is enabled, any data
written to the channel is sent to the host. Channels are initially disabled.
The RTDX assembly interface,
rtdx.i
, is a macro interface file that can be
used to interface to RTDX at the assembly level.
RTDX Manager
Properties
The following target configuration properties can be set for the RTDX
module in the RTDX Manager Properties dialog of the DSP/BIOS
Configuration Tool or in a Tconf script:
❏
Enable Real-Time Data Exchange (RTDX)
. This property should be
set to true if you want to link RTDX support into your application.
Tconf Name: ENABLERTDX
Type: Bool
Example:
bios.RTDX.ENABLERTDX = true;
❏
RTDX Mode
. Select the port configuration mode RTDX should use
to establish communication between the host and target. The default
is JTAG for most targets. Set this to simulator if you use a simulator.
The HS-RTDX emulation technology is also available. If this property
is set incorrectly, a message says “RTDX target application does not
match emulation protocol“ when you load the program.
Tconf Name: MODE
Type: EnumString
Options:
"JTAG", "Simulator"
Example:
bios.RTDX.MODE = "JTAG";
❏
RTDX Data Segment (.rtdx_data)
. The memory segment used for
buffering target-to-host data transfers. The RTDX message buffer
and state variables are placed in this segment.
Tconf Name: RTDXDATASEG
Type: Reference
Example:
bios.RTDX.RTDXDATASEG =
prog.get("myMEM");
❏
RTDX Buffer Size (MADUs)
. The size of the RTDX target-to-host
message buffer, in minimum addressable data units (MADUs). The
default size is 1032 to accommodate a 1024-byte block and two
control words. HST channels using RTDX are limited by this value.
Tconf Name: BUFSIZE
Type: Int16
Example:
bios.RTDX.BUFSIZE = 258;
❏
RTDX Interrupt Mask
. This mask interrupts to be temporarily
disabled inside critical RTDX sections. The default value of zero (0)
disables all interrupts within critical RTDX sections. Such sections
are short (usually <100 cycles). Disabling interrupts also temporarily
disables other RTDX clients and prevents other RTDX function calls.