Supporting controlCARDs Without a 30MHz Crystal

If you do not know what crystal is on your controlCARD, see the bottom of this page.

If you do not have a 30MHz controlCARD, the source code for the Segbot will still work with some small modifications to DSP/BIOs and the Code Composer Studio Build Options.

See the appropriate section below for making the changes.

Code Composer Studio 3.3

With the Segbot project open and set as active (bold in the file tree), select "Build Options" from the "Project" menu. In the Build Options window, click the "Preprocessor" category in the "Compiler" tab. There, find the "Pre-Define Symbol (-d):" entry box. From that entry box, remove "F28335_CONTROL_CARD30". The line should read:

_DEBUG;LARGE_MODEL;DSP28_BIOS;F28335_CONTROL_CARD

Select Ok to save the changes and close the Build Options window.

Next, you will need to make a small change in the DSP/BIOs configuration. In the file tree, open seg423.tcf under the "DSP/BIOs Configuration" section. In the seg423.tcf window that opens, right click "Global Settings" under the "System" (+) section and select "Properties." This should open a new "Global Settings Properies" window. Under the general tab, change the "DSP Speed in MHz (CLKOUT)" entry box. If you have a 20MHz crystal on your controlCARD, change the box to 100.000. If you have a 30MHz crystal, leave the box unchanged at the default value of 150.000. Hit Ok to save and close this window. Your project should now be timed correctly to work with your controlCARD's crystal.

Code Composer Studio 4.2

Right click the seg423 project folder in the file tree of Code Composer Studio 4 and select "Build Properties..." The window that opens should be titled "Properties for seg423 (Filtered)." With "C/C++ Build" selected (top left corner of this window), go to the "Tool Settings" tab in under the "Configuration Settings" section. Click the arrow next to "C2000 Compiler" to expand the tree. Under "C2000 Compiler," select "Predefined Symbols." Click "F28335_CONTROL_CARD30" and then Delete. Click Ok to save and close this window.


Build Options Change

Next, under the seg423 project in the file tree, find and double click the seg423.tcf file. This will open the DSP/BIOs configuration. Right click "Global Settings" under the "System" (+) section and select "Properties." This should open a new "Global Settings Properies" window. Under the general tab, change the "DSP Speed in MHz (CLKOUT)" entry box. If you have a 20MHz crystal on your controlCARD, change the box to 100.000. If you have a 30MHz crystal, leave the box unchanged at the default value of 150.000. Hit Ok to save and close this window. Your project should now be timed correctly to work with your controlCARD's crystal.

Home ♦ Updates ♦ Videos ♦ Contact Information 

Precision. Accuracy. Speed.

University of Illinois at Urbana-Champaign Logo Control Systems Instructional Laboratory
University of Illinois
at Urbana-Champaign
1406 W Green
Urbana, IL 61801-2307