Digital In - Digital input driver that reads value of specified port or pin number

Library

Target Support Package IC1/C166 Driver Library/Digital Input/Output

Description

The Digital In block reads the logical state of the specified pin and outputs a value of zero or one accordingly.

Dialog Box

Port

Select a port. Options are P0L, POH, P1L, P1H, P2P8.

Pin

The pin must be an integer value in the range 0 to 7 for ports that are 8 bits wide, or 0 to 15 for ports that are 16 bits wide.

Sample time

The time interval between samples. The default is 0.1. See "Specifying Sample Time" in the Simulink documentation for more information.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS