fernando_g
Senior Member
I have had an AXE033 for several years to debug my projects, but I have been out of practice related to operating it with I2C that somehow I can't make it work.
For instance, if I use the serial input to display 8 bytes separated by a space, It compiles and works just dandy:
Serout B.5,N2400, (254,128, #b0," ",#b1," ",#b2," ",#b3, 254,192, #b4," ",#b5," ",#b6," ",#b7)
However if I do the same but with the I2C input, I will get a compile error:
hi2csetup i2cmaster,$C6,i2cslow,i2cbyte
hi2cout 0,(254,128, #b0," ",#b1," ",#b2," ",#b3, 254,192, #b4," ",#b5," ",#b6," ",#b7,255)
To remove the compile error, I have to remove the ASCII symbol # prior to each variable.
hi2cout 0,(254,128,b0," ",b1," ",b2," ",b3,254,192,b4," ",b5," ",b6," ",b7,255)
Why would this happen?
For instance, if I use the serial input to display 8 bytes separated by a space, It compiles and works just dandy:
Serout B.5,N2400, (254,128, #b0," ",#b1," ",#b2," ",#b3, 254,192, #b4," ",#b5," ",#b6," ",#b7)
However if I do the same but with the I2C input, I will get a compile error:
hi2csetup i2cmaster,$C6,i2cslow,i2cbyte
hi2cout 0,(254,128, #b0," ",#b1," ",#b2," ",#b3, 254,192, #b4," ",#b5," ",#b6," ",#b7,255)
To remove the compile error, I have to remove the ASCII symbol # prior to each variable.
hi2cout 0,(254,128,b0," ",b1," ",b2," ",b3,254,192,b4," ",b5," ",b6," ",b7,255)
Why would this happen?