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:

DsPIC Block/Compiler Configuration

From - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
< DsPIC Block
Revision as of 19:30, 3 May 2015 by LubinKerhuel (talk | contribs) (LubinKerhuel moved page Block/Compiler Configuration to DsPIC Block/Compiler Configuration: Block is a special page, creates many issues)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.