User`s guide
Table of Contents
5Targeting MC56F83xx/DSP5685x Controllers
User Stack Allocation . . . . . . . . . . . . . . . . . . . . . . . . 120
Data Alignment Requirements . . . . . . . . . . . . . . . . . . . . . 125
Word and Byte Pointers . . . . . . . . . . . . . . . . . . . . . . 126
Reordering Data for Optimal Usage . . . . . . . . . . . . . . . . . 126
Code and Data Storage . . . . . . . . . . . . . . . . . . . . . . . . 127
Large Data Model Support . . . . . . . . . . . . . . . . . . . . . . 129
Extended Data Addressing Example . . . . . . . . . . . . . . . . . 130
Accessing Data Objects Examples . . . . . . . . . . . . . . . . . . 130
External Library Compatibility . . . . . . . . . . . . . . . . . . . 132
Optimizing Code . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Deadstripping and Link Order . . . . . . . . . . . . . . . . . . . . . 133
7 Inline Assembly Language and Intrinsics 135
Inline Assembly Language . . . . . . . . . . . . . . . . . . . . . . 135
Inline Assembly Overview . . . . . . . . . . . . . . . . . . . . . 136
Assembly Language Quick Guide . . . . . . . . . . . . . . . . . . 137
Calling Assembly Language Functions from C Code . . . . . . . . . . . 138
Calling Functions from Assembly Language . . . . . . . . . . . . . . 140
Intrinsic Functions . . . . . . . . . . . . . . . . . . . . . . . . . 141
Implementation . . . . . . . . . . . . . . . . . . . . . . . . . 141
Fractional Arithmetic . . . . . . . . . . . . . . . . . . . . . . . 142
Intrinsic Functions for Math Support . . . . . . . . . . . . . . . . . 143
Modulo Addressing Intrinsic Functions . . . . . . . . . . . . . . . . 177
8 Debugging for DSP56800E 189
Target Settings for Debugging . . . . . . . . . . . . . . . . . . . . . 189
Command Converter Server . . . . . . . . . . . . . . . . . . . . . . 190
Essential Target Settings for Command Converter Server . . . . . . . . . 191
Changing the Command Converter Server Protocol to Parallel Port . . . . . 191
Changing the Command Converter Server Protocol to PCI . . . . . . . . 194
Setting Up a Remote Connection . . . . . . . . . . . . . . . . . . 194
Debugging a Remote Target Board . . . . . . . . . . . . . . . . . . 197
Load/Save Memory . . . . . . . . . . . . . . . . . . . . . . . . . 197