Good Day Henrik, Thanks for helping me out. I searched a little on SERIN2 to capture string of characters from PC to MCU.
My study code:
Code:DEFINE OSC 4 str1 var byte[10] pause 200 main: Serin2 PortC.7,84,[ str str1\30] ' From PC Serout2 PORTC.6, 84,[str str1\30,13] ' Check if everything is okay goto main EndCorrect if I'm wrong, you mean to say I would not need to use LOOKUP if I use my variable (str1)? I'm sorry if I'm still confuse.You can not execute LOOKUP on an array of bytes, and there's really no need to. You can just do something like myByte = myArray[n] where n is the location in the array you want to "get".
Regards,
tacbanon




Bookmarks