Hi
Ich möchte über RS232 16 Bit (also 2 Byte) empfangen.
Code:
$regfile = "m8def.dat"
$crystal = 3686400
$baud = 9600
'##########################
'##########################
'######### RS232 ##########
On Urxc Onrxd
Enable Urxc
Enable Interrupts
'##########################
Dim Befehl As Byte
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7 , E = Portd.3 , Rs = Portd.2
Config Lcdbus = 4
Cursor Off
Do
Loop
Onrxd:
Befehl = Udr
Cls
Lcd Befehl.9
Return
Ich möchte wie ihr seht mit der "Funktion" Befel.9 das 10te Bit auslesen.
Empfangen werden aber max. 8 Bit also 1 Byte
Wie mache ich es, dass es funktioniert?
Marcel
Lesezeichen