strange behavior with spi read.

I connected a kent display to an olimex lpc-1343 board.

I can write to the kent display and display some data.

but when I try to read some data from the display

I received 2 bytes instead of one.

I sent the pattern: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F with the WRITE command.

but when I send the read command I received: 00 81 01 82 02 83 03 84 04 85 05 86 06 87 07 FF

I’m sure I’m doing something wrong…

any idea ?

thanks

finally solved :slight_smile: CPHA was wrong, was set to 0, needed 1 :slight_smile: