Blocks described on this wiki are deprecated since 2012.

Use the free MPLAB Device Blocks for Simulink, as replacement by Microchip Technology.
A new website with custom projects based on this new tool is at https://lubin.kerhuel.eu.

DsPIC Block/Digital Input

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
< DsPIC Block
Revision as of 18:30, 3 May 2015 by LubinKerhuel (talk | contribs) (LubinKerhuel moved page Block/Digital Input to DsPIC Block/Digital Input: Block is a special page, creates many issues)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Block Digital Input

The Digtal Input block reads the logical value of the selected microcontroller pin.

Dialog Box Parameters

Digital Input Dialog

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)


<comments \>