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 "Download"
LubinKerhuel (talk | contribs) m (→Download) |
LubinKerhuel (talk | contribs) m (Protected "Download" [edit=sysop:move=sysop]) |
(No difference)
|
Revision as of 20:53, 30 July 2008
Download the Simulink blockset for PIC
Contents
Download
Download the evaluation version for the matlab version installed on your system.
Current release : 3.7e
Release date : 10 sep 2012
- Download dsPIC Toolbox for Matlab R2006a
- Download dsPIC Toolbox for Matlab R2006b
- Download dsPIC Toolbox for Matlab R2007a
- Download dsPIC Toolbox for Matlab R2007b
- Download dsPIC Toolbox for Matlab R2008a
100 supported microcontrolleurs :
See Release Notes and known bug for details
|
Limitation
The evaluation version has 2 limitations :
- Works with models containing up to six Input/Output pin used on the the targeted microcontroller
- C Function Call block is not available
To obtain a version without limitation, go to the licence page
The Limit of Six Input/Output pins of the evaluation version is sufficient for many project like motor control, sensor filtering or fusion and any projects that requires low number of input/output. The evaluation version of the blockset is therefore aimed at hobist or educational institutions.
Some peripherals may use more I/O pin than expected. For example using the UART Tx Port also enable both the Rx and Tx Pin of the microcontroller. Two Pin are then used.
Requirement
The following component must be installed.
- Mathworks components
- Simulink
- Real-Time Workshop Embedded Coder
- Real-Time Workshop
- Microchip components
- C30 compiler for PIC24, dsPIC30 and PIC33 family (tested with version 3.10b)
- C32 compiler for PIC32 family (tested with version 1.02)
- Blockset for dsPIC from this website
An evaluation version of the Microchip compiler can be found on the microchip website.
Installation
An animation of the installation process is available on the [Example] page.
Installation of C30 compiler and/or C32 compiler:
- Install the compiler in its defautl directory : C:\Program File\Microchip\MPLAB C30 (for C30)
- Add the compiler Path to your variable environment : Click yes when Installer ask to modify environment
- When installing C32 included in MPLAB, the path is not added to the path. Add manually the bin subdirectory of the C32 compiler in your computer path.
- Compiler for PIC30 and Compiler for PIC24 share the same directory. This is not a problem, both are working.
Installation of the blockset in Matlab
- Start Matlab
- Go to the directory where you unziped the installation .m file
- Execute it by typing its name at the matlab prompt >>install_dsPIC
The blockset will be installed into the current directory.
Upgrading the blockset
When upgrading blockset with a more recent version follow the following steps :
- Uninstall the old blockset
- install the new one
Caution
Upgrading from a version earlier to V0.98 require to upgrade the C30 / C32 compiler ((See release notes)). A version of the C30 or C32 compiler for student can be downloaded from the microchip website.
To prevent some possible uncompatibility between blockset version, It is highly recommended to save the models created or modified using the old blockset version before opening them with the new blockset version installed.
The configuration parameters of the blocks should be inspected.
Check that the upgraded version of the blockset is compatible with the C30 or C32 compiler you are using (See release notes)
Uninstall
- remove the three directory added into the matlab path.
- delete the blockset directory.