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.
DsPIC Block/Digital Output Write
The "Digtal Output write" block write the logical value to the microcontroller pin.
Dialog Box
Port
- Port used
Pin
- Pin used, start at 0 and is defined in vector form.
Block Ordering Input / Output
Create one input and/or output port on simulink. This port is just used to set the order of execution between severals blocks. You want for example inside one time step set a pin to its high value and to its low value just after (create a glitch). You will used two blocks digital output, but they should be activated in a certain order. Connecting with the ordering Input/Output port the first block to the second one (temporaly speaking) will define the execution order.
See forum related question: http://www.kerhuel.eu/forum/viewtopic.php?f=6&t=367&p=1500#p1492 Please feel free to complete this page !
<comments \>