
PRD Module
2-292
The following global properties can be set for the PRD module in the PRD
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Object Memory
. The memory segment containing the PRD objects.
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.PRD.OBJMEMSEG = prog.get("myMEM");
❏
Use CLK Manager to drive PRD
. If this property is set to true, the
on-device timer hardware (managed by the CLK Module) is used to
advance the tick count; otherwise, the application must invoke
PRD_tick on a periodic basis. If the CLK module is used to drive
PRDs, the ticks are equal to the low-resolution time increment rate.
Tconf Name: USECLK
Type: Bool
Example:
bios.PRD.USECLK = true;
❏
Microseconds/Tick
. The number of microseconds between ticks. If
the "Use CLK Manager to drive PRD field" property above is set to
true, this property is automatically set by the CLK module; otherwise,
you must explicitly set this property. The total time required to
perform all PRD functions must be less than the number of
microseconds between ticks.
Tconf Name: MICROSECONDS
Type: Int16
Example:
bios.PRD.MICROSECONDS = 1000.0;
PRD Object Properties
To create a PRD object in a configuration script, use the following syntax.
The Tconf examples that follow assume the object has been created as
shown here.
var myPrd = bios.PRD.create("myPrd");
If you cannot create a new PRD object (an error occurs or the Insert PRD
item is inactive in the DSP/BIOS Configuration Tool), increase the Stack
Size property in the MEM Manager Properties before adding a PRD
object.
The following properties can be set for a PRD object in the PRD Object
Properties dialog of the DSP/BIOS Configuration Tool or in a Tconf script:
❏
comment
. Type a comment to identify this PRD object.
Tconf Name: comment
Type: String
Example:
myPrd.comment = "my PRD";
❏
period (ticks)
. The function executes after this number of ticks have
elapsed.
Tconf Name: period
Type: Int16
Example:
myPrd.period = 32767;