Specifications
Modifying the Configuration File
Analyzing Real-Time Behavior
6-3
6.2 Modifying the Configuration File
For this example, you need to add one new object to the configuration file.
(The volume.cdb file in the c:\ti\c6000\tutorial\volume4\ folder already
contains this object.)
1) In the Project View, double-click on the volume.cdb file to open it.
2) Select LOG_system, change the buflen property to 512 words, and click
OK (as you did in section 5.3, page 5–7).
3) Right-click on the PRD manager and choose Insert PRD from the pop-up
menu.
4) Rename the PRD0 object to loadchange_PRD.
5) Right-click on the loadchange_PRD object and choose Properties from
the pop-up menu.
6) Set the following properties for the loadchange_PRD object and click OK.
■
Change the period to 2. By default, the PRD manager uses the CLK
manager to drive PRD execution. The default properties for the CLK
class make a clock interrupt trigger a PRD tick each millisecond. So,
this PRD object runs its function every 2 milliseconds.
■
Change the function to _loadchange. This PRD object executes the
loadchange C function each time the period you chose elapses.
(Recall that you need to use an underscore prefix for C functions in
the configuration file.) You look at this function in the next section.