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 "DsPIC Block/Digital Input"
Jump to navigation
Jump to search
LubinKerhuel (talk | contribs) |
LubinKerhuel (talk | contribs) |
||
Line 3: | Line 3: | ||
=Dialog Box Parameters= | =Dialog Box Parameters= | ||
− | + | [[Image:Block_DigitalInput_DialogBox.png|thumb|right|450px|Digital Input Dialog]] | |
==Port== | ==Port== | ||
* Port used | * Port used |
Revision as of 20:21, 12 June 2008
The Digtal Input block reads the logical value previously writen on the microcontroller pin.
Dialog Box Parameters
Port
- Port used
Pin
- Pin used, start at 0 and is defined in vector form allowing several Pin to be read at the same time.
Sample Time
- -1 is inherited
Block Ordering Input / Output
Create one input and/or output port on simulink. This port is virtual and do not add code in the microcontroller. It is used to force the execution order between two dsPIC/PIC24 peripheral blocks. (see examples)