User`s guide

Processor Expert Interface
Processor Expert Tutorial
104
Targeting MC56F83xx/DSP5685x Controllers
10. Update file Events.c.
a. Click the project window’s Files tab. The Files page moves to the front of the
window.
b. Expand the User Modules folder.
c. Double-click filename Events.c. An editor window opens, displaying this
file’s text. (Listing 5.1
, at the end of this tutorial, shows this file’s contents.)
d. Find the line
IRQB_OnInterrupt().
e. Above this line, enter the new line
extern short IRQB_On;.
f. Inside
IRQB_OnInterrupt(), enter the new line IRQB_On ^= 1;.
g. Find the line
IRQA_OnInterrupt().
h. Above this line, enter the new line
extern short IRQA_On;.
i. Inside
IRQA_OnInterrupt(), enter the new line IRQA_On ^= 1;.
NOTE
Listing 5.1 shows these new lines as bold italics.
j. Save and close file Events.c.
11. Update file LEDcontrol.c.
a. In the project window’s Files page, double-click filename LEDcontrol.c (or
the actual .c filename of your project). An editor window opens, displaying
this file’s text.
b. Add custom code, to utilize the beans.
NOTE
Listing 5.2 shows custom entries as bold italics. Processor Expert
software generated all other code of the file.
c. Save and close the file.
12. Build and debug the project.
a. From the main-window menu bar, select Project > Make. The IDE compiles
and links your project, generating executable code.
b. Debug your project, as you would any other CodeWarrior project.