Hi!
I need to send 64 pieces of bits from a PIC to second PIC via Hardware serial.
I tested some ways by Oshon sim:
-----------------
DEFINE HSER_BAUD 9600
Frame var byte[7]
frame[0]=%10110010
frame[1]=%10011001
frame[2]=%00011011
frame[3]=%00101011
frame[4]=%10110010
frame[5]=%10011001
frame[6]=%00011011
frame[7]=%00101011
Hserout [str frame\7]
End
-----------------
but the oshon receive characters, not binarys.
I tried Bin modifier like: Hserout [Bin{str frame\7}]
I couldnt complie.
I want to receive all 1s and all 0s (when example the last bit is only 1), and store in the second PIC in the same way.
Hserin [str frame/7]
How can I do this?
Can I set the values like this?
counter=0
while counter<>64 '63+1
frame.0(counter) = %0
counter=counter+1
wend
Thx
Bookmarks