Every first bit lost by shift out a byte to a LCD with SPI-Interface ??
Hi,
I am a Propeller fan from germany.
My question is:
By shift out a byte to the lcd every first bit is lost?
when I shift left before I send it works, but i dont understand this.
The complete code (if you need) is on my Propellerpage on www.tdus.de
Thanks
Uwe
I am a Propeller fan from germany.
My question is:
By shift out a byte to the lcd every first bit is lost?
when I shift left before I send it works, but i dont understand this.
PRI SPI_Write(lcddata) ''serial send to lcd
lcddata <<=1 '<----- why I must do this ??? without this every first bit is lost
repeat 8 'send 8 bits to the lc-display
waitcnt(cnt += spi_timing) '100us wait
outa[noparse][[/noparse]SDC] := 1 'clock goes high
outa[noparse][[/noparse]SDO] := (lcddata >>= 1) & 1 'Shift the bit to the SDO Pin
waitcnt(cnt += spi_timing) '100us wait
outa[noparse][[/noparse]SDC] := 0 'clock goes low and write the bit
The complete code (if you need) is on my Propellerpage on www.tdus.de
Thanks
Uwe

Comments
Thank you very much