Matlab-Simulink device driver Blockset for Microchip dsPIC / PIC24 / PIC32 Microcontrollers.
Download the Simulink blockset for PIC
Download the evaluation version for the matlab version installed on your system.
Current release : 3.7e ((See release notes))
Release date : 10 sep 2012
- Download dsPIC Toolbox for Matlab R2012a (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2011b (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2011a (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2010b (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2010a (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2009b (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2009a (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2008b (Matlab 32 and 64 bits)
- Download dsPIC Toolbox for Matlab R2008a (Matlab 32 and 64 bits)
Older blockset version fot theses older matlab release :
- Download dsPIC Toolbox for Matlab R2007b (Matlab 32 bits)
- Download dsPIC Toolbox for Matlab R2007a (Matlab 32 bits)
- Download dsPIC Toolbox for Matlab R2006b (Matlab 32 bits) (31/03/2010)
- Download dsPIC Toolbox for Matlab R2006a (Matlab 32 bits) (31/03/2010)
100 supported microcontrolleurs :
See Release Notes and known bug for details
The evaluation version has a limitations:
- Works with models containing up to Seven Input/Output pin used on the the targeted microcontroller
To obtain a version without limitation, go to the licence page
The Limit of Seven 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.
The following component must be installed.
- Mathworks components
- Real-Time Workshop Embedded Coder
- Real-Time Workshop
- Microchip components
- Blockset for dsPIC from this website
An evaluation version of the Microchip compiler can be found on the microchip website : http://www.microchip.com
- An animation (flash) of the installation process is available on the page. This animation is quite old now.
- A recent video witn installation and with example is available : Screencast (.mov file, 164Mo), from Mariano Lizarraga(April, 28th 2009).
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
- unzip the installation file in the directory where the blockset will be installed
- Start Matlab
- Go to the directory where you unziped the installation .m file
- Execute the installation script. Do not edit it (it's a large file)
- Either type >>install_dsPIC at the maltab prompt or
- in the matlab browser, right click on the install_dsPIC.m file ==> choose run
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
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)
- remove the three directory added into the matlab path.
- delete the blockset directory.