Hello,
thanks for all who helped me with my last prob. Very hot ways to realize that.
Now i want to shrink my code because the limit is coming (4k).
Is it possible to convert hex data read from eeprom or such like LOOKUP as a formatted 8-Bit String?
for expamle: Eeprom Location, hex value01, hex 2,.....
@$0 $23 = 00100011
@$1 $01 = 00000001
Now the string should be look like this : 0010001100000001 ...
And this string should be send via a portpin i.e. PORTB.5
Before i wrote like this and it works fine but really takes a lot of memory. One string can be 192 Bits long.
Code:
FOR lp = 0 TO 23 ' 24 BIT
LOOKUP lp,[1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,0],PORTB.5
pauseus 660
next lp
return
Code:
FOR lp = 0 TO 2
LOOKUP lp,[$23,$01,$AE],BIN(PORTB.5) ' here should be send the binary string
pauseus 660
next lp
return
but how to realize that ?
Robson
Bookmarks