Sending a word to the Amulet lcd
Archiver
Posts: 46,084
Hello,
I was wonder if someone knows the code structure to send a word to
the Amulet lcd. Lets say you have some word variable in the stamp,
and you want to put that variable in word 3 in the Amulet. How do you
do that?
Below is what I have been messing around with for too long.
Wout VAR Word
Main:
Wout=102
SEROUT 16,84,[noparse][[/noparse]$D6,$03,$00,Wout.NIB3,Wout.NIB2,Wout.NIB1,Wout.NIB0]
Wout=0
GOTO Main
Serout breakdown:
$D6 = Set word command
$03 = Variable # HI nib
$00 = Variable # Lo nib
Wout.NIB3 = Word value MS byte HI nib
Wout.NIB2 = Word value MS byte LO nib
Wout.NIB1 = Word value LS byte HI nib
Wout.NIB0 = Word value LS byte LO nib
Thank you,
John
I was wonder if someone knows the code structure to send a word to
the Amulet lcd. Lets say you have some word variable in the stamp,
and you want to put that variable in word 3 in the Amulet. How do you
do that?
Below is what I have been messing around with for too long.
Wout VAR Word
Main:
Wout=102
SEROUT 16,84,[noparse][[/noparse]$D6,$03,$00,Wout.NIB3,Wout.NIB2,Wout.NIB1,Wout.NIB0]
Wout=0
GOTO Main
Serout breakdown:
$D6 = Set word command
$03 = Variable # HI nib
$00 = Variable # Lo nib
Wout.NIB3 = Word value MS byte HI nib
Wout.NIB2 = Word value MS byte LO nib
Wout.NIB1 = Word value LS byte HI nib
Wout.NIB0 = Word value LS byte LO nib
Thank you,
John