Dout

Top  Next

Dout


Digital output

Since R2019b

 

Library: embeddedCreatorLib ( Dafulai Electronics) / Dout

 

 

Dout

 

 


 

Description


 

This block sets digital output.

 

 

 

Parameters


 

Please double click this block to open parameters dialog below :

 

 

Dout_parameter_pic

 

 

 

Let us explain parameters.

 

 

How to specify Digital Output — radio selection button for Digital output Pin. It can be one of "By physical port name and bit number"/"By C language writing variable/macro name".

 

Port Name — drop list for Digital Port name. It is used only when parameter "How to specify Digital Output" is "By physical port name and bit number".

 

Port Bit number  — drop list for Digital Port Bit Number. It is used only when parameter "How to specify Digital Output" is "By physical port name and bit number".

 

C Access Variable/Macro Name  — String type of scalar. It can be variable name or macro name in C language for Digital output. It is used only when parameter "How to specify Digital Output" is "By C language writing variable/macro name".

 

Initial Output Value: — Logical type of scalar.  It is initial value for "Digital Output".

 

Sample time in sec (-1 for inherited): — Sample time for this block. It is the same meaning as general Simulink block .

 

 

Notes:  Please configure GPIO.   All settings must be done  in IDE GUI configuration (It is MCC for Microchip Micro-controller).  And it must match this block settings, otherwise unexpected result will occur.

 

 

 

Ports


 

Input

 

Dout — Logical Scalar. Digital output Value.

 

Outport


 

 

None

 

 

Examples