One other thing,
it also seems that SEROUT don't understand $ before data. Only #.
in your case if you really want to send $a0 use a variable
ToSend var byte
ToSend=$a0
SEROUT PORTB.2,4,[ToSend]
or
SEROUT PORTB.2,4,[#ToSend] ; output will be 160
One other thing,
it also seems that SEROUT don't understand $ before data. Only #.
in your case if you really want to send $a0 use a variable
ToSend var byte
ToSend=$a0
SEROUT PORTB.2,4,[ToSend]
or
SEROUT PORTB.2,4,[#ToSend] ; output will be 160
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks