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.

Release Notes

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Revision as of 00:16, 15 June 2008 by LubinKerhuel (talk | contribs) (New page: *17/04/2007 V0.90 **(bugfix, added dsPIC 30f3010 and 30f3011) ---- *23/04/2007 V0.91 **Bugfix : Master block lose its data when opening the block dialog. **added dsPIC 30f6011,30f6012,30f...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • 17/04/2007 V0.90
    • (bugfix, added dsPIC 30f3010 and 30f3011)

  • 23/04/2007 V0.91
    • Bugfix : Master block lose its data when opening the block dialog.
    • added dsPIC 30f6011,30f6012,30f6013 and 30f6014

  • 13/05/2007 V0.92
    • Max number of I/O port limitation set to 6
    • Added 'Free run' mode (master block)
    • Added dsPIC 33f : 33fJ64GP710, 33fJ128GP710, 33fJ256GP710
    • Bugfix : Master block sometimes lose its data when opening the model
    • Bugfix : block Uart Rx stopped receiving if overrun occure

  • 27/05/2007 V0.93
    • Added dsPIC 24FJ: 24fJ64GA010, 24fJ96GA010, 24fJ128GA010
    • Added dsPIC 33FJ: 33fJ64GP706, 33fJ128GP706
    • Real time plotting and logging Data block support extended to 32bits uint and int data type

  • 03/06/2007 V0.93b
    • Corrected bugs :
      • UART 1 was unusable in V0.93. Only UART 2 worked
      • some dsPIC had their IC7 and IC8 peripheral defined as IC3 and IC4. That did not compile (undefined refference to IC3 and IC4 registers)

  • 15/07/2007 V0.94
    • User interface is now more user friendly
    • Compatible with C compiler v3.01
    • Temperature Protection is no more available on the compiler def files.

Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 21/07/2007 V0.94b
    • few bug fixe
    • Added : 30F3014, 30F5011, 30F5013, 30F5015, 30F5016, 30F6010A, 24FJ96GA006, 24FJ128GA006, 24FJ64GA006, 24FJ64GA008, 24FJ96GA008, 24FJ128GA008
    • Compatible with C compiler v3.01
    • Temperature Protection is no more available on the compiler def files.

Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 02/08/2007 V0.94c
    • Find and corrected one bug in the "Output Compare"

Block Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 05/08/2007 V0.94d
    • Corrected bug : The PLL calculation to achieve the desired MIPS did not work and generate an error on dsPIC 33f chips.

Know BUG : Output Compare PWM generation does not work when Power Save mode is activated on 30f4013 and probably on others chips! Output Compare is working otherwise Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 18/08/2007 V0.94e
    • Know BUG : Output Compare PWM generation does not work when Power Save mode is activated on 30f4013 and probably on others chips!

Output Compare is working otherwise Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 06/10/2007 V0.95a
    • Is now compatible with matlab with different coding characters( Taiwan, Chinese, Japanese...)
    • Block "Calculus Time Step": When overload occurs, ie Time Step > to Sample time of the schematic, get a false value. Now, when overload occurs, return the value PR1.
    • Corrected bug : Only Timer 2 or 3 can be assigned to the peripheral Output Compare (OC) and Input Compare (IC). Timer assignation is automatic and now include this constraint.
    • Compatible with MATLAB R2007b
    • Added : 33FJ64GP206, 33FJ128GP206, 33FJ64GP306, 33FJ128GP306, 33FJ64GP310, 33FJ128GP310, 33FJ256GP506, 33FJ256GP510, 33FJ64GP708, 33FJ128GP708, 33FJ64MC506, 33FJ128MC506, 33FJ256MC510, 33FJ64MC508, 33FJ128MC510, 33FJ256MC710*, 33FJ64MC510, 33FJ128MC706, 33FJ64MC706, 33FJ128MC708, 33FJ64MC710, 33FJ128MC710

Thanks to Evidence Srl for providing a Flex Board for Microchip dsPIC based on 33FJ256MC710 allowing to test the toolbox with this chip. Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 9/12/2007 V0.95b
    • Corrected bug : C function Call did not work properly when more than one input was defined.
    • C function Call can now call assembly language functions. The assembly language files (.s) will be compiled.
    • Blocks with sample time can takes 2 parameters for the sample time like others Simulink blockset : [SampleTime Offset] (see simulink help about sample time). When using only one parameters, the offset is 0. The offset could not be defined in previous blockset version.
    • Add one block to Configure the model for dsPIC.

When the model is used with another Matlab version, you should reconfigure the simulink model using this bloc. (see examples in the sample directory of the toolbox)

Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 11/02/2008 V0.96
    • SPI block : Add Sample Time option ; Add possiblity to reconfigure SPI bus speed (allow to get 2 component working at different speed on the bus)
    • UART Tx block : Corrected bug : possibility to send vector
    • I2C : New peripheral to test
    • CAN : New peripheral to test. Note that ECAN is not done yet. If you are interrested for the ECAN peripheral, ask for on the forum.
    • Corrected bug : The Time Step time refference based on timer1 was too high (get a typical time error of 1/10000). The calcul is exact now.

Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 13/02/2008 V0.96b
    • C30 compiler can now be installed in the directory : 'C:\Programmi\Microchip\MPLAB C30' (for italian I guess)

Know bug : before compiling schematic for dsPIC 24f, you must remove the line 56 of Generic.h file which is in "C:\Program Files\Microchip\MPLAB C30\support\h\peripheral_24F" The line : "typedef enum _BOOL { FALSE = 0, TRUE } BOOL;" does not compile !


  • 01/04/2008 V0.97
    • PIC 24f : Not need anymore to modify Generic.h file.
    • UART Rx Tx peripheral : you can choose to use this peripheral using interrupt and lets you define the internal buffer for Tx and Rx. It Allows to send or receive bursts of data containing more than 4 bytes (internal peripheral buffer)
    • add the block Chronograph. This block allows to measure precisely the execution time of a very specific part of the model (a filter for example). Execution time of several parts can be measured simultanously.

  • 20/05/2008 V0.98
    • New : Early Support for Pic32 (UART, ADC, digital In/out are supported ; others peripheral are comming next)
    • Added : PIC32MX360F512L, PIC32MX460F512L
    • Works with the last version of the Microchip dsPIC and PIC24 C compiler (v3.10) and with the PIC32 compiler (v1.02)

!! Updating your compiler is necessary !! (download from the microchip website)

    • add an SPI master block interrupt driven
    • Bug correction on "C function Call" block
    • Others minor improvements

  • 21/05/2008 V0.98a1
    • Solved Problem when upgrading the blockset : Script to update model created with oldest blockset version is not working properly.

  • 09/06/2008 V0.98b
    • Corrected Bug : ADC of Chip 33f did not worked when using more than one channel
    • Corrected Bug : UART when used with interrupt may corrupt data when used with buffer size larger than 256 bytes.

  • 12/06/2008 V0.98c
    • Corrected Bug : UART 1 and UART 2, if both used on a model did not worked with interrupt.
    • Corrected Bug : SPI 1 and SPI 2, if both used on a model, did not worked with interrupt
    • Corrected Bug : External Interrupt peripheral did not worked when more than one external Interrupt channel were used.
    • The block Interface Tx Matlab should now appears on every matlab version in the dsPIC Library