Blockset described on this wiki is deprecated since 2012.

For Model Based Design (MBD), use the free MPLAB Device Blocks for Simulink, tool from Microchip.
Updated Rapid Control Prototyping (RCP) custom projects are published at: https://lubin.kerhuel.eu.

Difference between revisions of "DsPIC Block/Compiler Configuration"

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Jump to navigation Jump to search
m
m (LubinKerhuel moved page Block/Compiler Configuration to DsPIC Block/Compiler Configuration: Block is a special page, creates many issues)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:Block_Compiler_Configuration.png|thumb|rght|Block Compiler Configuration]]
+
[[Image:Block_Compiler_Configuration.png|thumb|right|Block Compiler Configuration]]
 
Set compilers options
 
Set compilers options
  
Line 5: Line 5:
  
 
==Double in 64 bits if checked, default is 32==
 
==Double in 64 bits if checked, default is 32==
 +
[[Image:Block_CompilerConfiguration_DialogBox.png|thumb|right|450px|Configuration Dialog]]
  
 
Simulink simulation use 64 bits double for double data type. The C30 compiler default size for double is 32 bits (equivalent to simulink single variable). This option force the dsPIC/PIC24 C30 Compiler size for double diagram data type to 64 bits doubles. 64 bits double gives more precise results at the cost of a slower computation time and a larger code size.
 
Simulink simulation use 64 bits double for double data type. The C30 compiler default size for double is 32 bits (equivalent to simulink single variable). This option force the dsPIC/PIC24 C30 Compiler size for double diagram data type to 64 bits doubles. 64 bits double gives more precise results at the cost of a slower computation time and a larger code size.
 
You should considere using fixed point calculation that will speed up the calculation and reduced the code size ! The fixed point toolbox is perfect to optimized the scaling of your fixed point variables.
 
You should considere using fixed point calculation that will speed up the calculation and reduced the code size ! The fixed point toolbox is perfect to optimized the scaling of your fixed point variables.
 +
----

Latest revision as of 18:30, 3 May 2015

Block Compiler Configuration

Set compilers options

Dialog Box Parameters

Double in 64 bits if checked, default is 32

Configuration Dialog

Simulink simulation use 64 bits double for double data type. The C30 compiler default size for double is 32 bits (equivalent to simulink single variable). This option force the dsPIC/PIC24 C30 Compiler size for double diagram data type to 64 bits doubles. 64 bits double gives more precise results at the cost of a slower computation time and a larger code size. You should considere using fixed point calculation that will speed up the calculation and reduced the code size ! The fixed point toolbox is perfect to optimized the scaling of your fixed point variables.