2011-03-17 05:19 AM
16bit SPI on STM8
2011-05-17 06:12 AM
Seems like nobody can help me with that. I also tried BitBanging but it doesnt work either.
2011-05-17 06:12 AM
Hello tnn!
Some years ago, I read this ST7 Application Note which should work for STM8 too. I hope it could help you... EtaPhi2011-05-17 06:12 AM
Hi,
actually i want to write something TO the Master. If i send something like : void sendValue (signed short int value) { unsigned char UpperByte = (unsigned char) (value >> 8); unsigned char LowerByte = (unsigned char) (value >> 0); //Value is Transmitted in bit 14:3 // while (SPI_GetFlagStatus(SPI_FLAG_TXE) == RESET); //!!!!!first bit (bit 15) doesnt care) SPI_SendData(UpperByte); // while (SPI_GetFlagStatus(SPI_FLAG_TXE) == RESET); //!!!!!last three bits (bit 2:0) doesnt care) SPI_SendData(LowerByte); } it sends the UpperByte twice. One time in the first 8 clock cycles and the second time in the second 8 clock cycles.2011-05-17 06:12 AM