$SERIALINPUT1
(Created page with "= <span class="f_Header">Action</span> = Specifies that serial input of the second UART must be redirected. <span style="font-family: Arial;"> </span> <span style="fon...") |
|||
Line 45: | Line 45: | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | <span class="f_Header">See also</span> | + | = <span class="f_Header">See also</span> = |
[[$SERIALOUTPUT1]] , [[$SERIALINPUT]] , [[$SERIALOUTPUT]] | [[$SERIALOUTPUT1]] , [[$SERIALINPUT]] , [[$SERIALOUTPUT]] | ||
Line 53: | Line 53: | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | <span class="f_Header">Example</span> | + | = <span class="f_Header">Example</span> = |
See the [[$SERIALINPUT]] sample | See the [[$SERIALINPUT]] sample | ||
Line 61: | Line 61: | ||
{{Languages}} | {{Languages}} | ||
− | [[Category: | + | [[Category:BASCOM Language Reference]] |
Latest revision as of 23:31, 6 February 2013
Contents |
Action
Specifies that serial input of the second UART must be redirected.
Syntax
$SERIALINPUT1 = label
Remarks
Label |
The name of the assembler routine that must be called when a character is needed from the INPUT routine. The character must be returned in R24. |
With the redirection of the INPUT command, you can use your own input routines.
This way you can use other devices as input devices.
Note that the INPUT statement is terminated when a RETURN code (13) is received.
By default when you use INPUT or INKEY(), the compiler will expect data from the COM2 port. When you want to use a keyboard or remote control as the input device you can write a custom routine that puts the data into register R24 once it asks for this data.
See also
$SERIALOUTPUT1 , $SERIALINPUT , $SERIALOUTPUT
Example
See the $SERIALINPUT sample
Languages | English • Deutsch |
---|