PRD Module
2-290
2.19
PRD Module
The PRD module is the periodic function manager.
Functions
❏
PRD_getticks. Get the current tick count.
❏
PRD_start. Arm a periodic function for one-time execution.
❏
PRD_stop. Stop a periodic function from execution.
❏
PRD_tick. Advance tick counter, dispatch periodic functions.
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the PRD
Manager Properties and PRD Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Description
While some applications can schedule functions based on a real-time
clock, many applications need to schedule functions based on I/O
availability or some other programmatic event.
The PRD module allows you to create PRD objects that schedule
periodic execution of program functions. The period can be driven by the
CLK module or by calls to PRD_tick whenever a specific event occurs.
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
USECLK Bool
true
MICROSECONDS Int16
1000.0
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
period Int16
32767
mode EnumString
"continuous"
("one-shot")
fxn
Extern
prog.extern("FXN_F_nop")
arg0
Arg
0
arg1
Arg
0
order
Int16
0