
What are the supported data types when designing a Simulink application for TI C2000?
조회 수: 8 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2020년 12월 2일
편집: MathWorks Support Team
2025년 2월 3일
What are the supported data types when designing a Simulink model for deployment on TI C2000?
채택된 답변
MathWorks Support Team
2025년 1월 25일
편집: MathWorks Support Team
2025년 2월 3일
Texas Instruments C2000™ MCUs support 16-bit and 32-bit data types. Simulink® models and Embedded Coder® software support many data types.
Integer Types:
TI2000 MCUs do not support native 8-bit data types. If you select int8 or uint8 in your model, your simulation runs with 8-bit data, but in the generated code this data is represented as 16-bit. This may cause instances where data overflow and wraparound occur in the simulation, but not in the generated code.
Floating-Point Data:
In C2000 devices, in the generated code, the double data type is represented as single precision floating point values (32-bit). This representation results in a difference in data values in the simulation and the generated code.
Fixed-Point Data:
Fixed-point data type is also supported and using C28x IQmath Library blocks, one can perform processor-optimized fixed-point mathematical operations. To access the details on C28x IQmath Library blocks in MATLAB R2020a, execute the following command in the command window:
>> web(fullfile(docroot, 'supportpkg/texasinstrumentsc2000/ug/using-the-iqmath-library.html'))
One can enable this Code Replacement Library (CRL) in your model's Configuration Parameters as shown below when using fixed-point math to generate optimized code using IQ math routines:

For information regarding the current release, please visit the following link:
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!