$SERIALINPUT1

Aus MCS Wiki AVR
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(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...")
 
 
Zeile 45: Zeile 45:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
<span class="f_Header">See also</span>
+
= <span class="f_Header">See also</span> =
  
 
[[$SERIALOUTPUT1]]&nbsp;,&nbsp;[[$SERIALINPUT]]&nbsp;,&nbsp;[[$SERIALOUTPUT]]
 
[[$SERIALOUTPUT1]]&nbsp;,&nbsp;[[$SERIALINPUT]]&nbsp;,&nbsp;[[$SERIALOUTPUT]]
Zeile 53: Zeile 53:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
<span class="f_Header">Example</span>
+
= <span class="f_Header">Example</span> =
  
 
See the&nbsp;[[$SERIALINPUT]]&nbsp;sample
 
See the&nbsp;[[$SERIALINPUT]]&nbsp;sample
Zeile 61: Zeile 61:
 
{{Languages}}
 
{{Languages}}
  
[[Category:BASCOM_Language_Reference]]
+
[[Category:BASCOM Language Reference]]

Aktuelle Version vom 6. Februar 2013, 22:31 Uhr

Inhaltsverzeichnis

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  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache