I'm trying to transmit ( using stm32f407) two hex numbers just like the datasheet explains (attached picture), but only the second number is being transmitted (checked with logic analyzer). Code is:
Anything quick that i am missing?
thanks
Code:
SPI1->CR1 |= (1 << 6); // enable SPI1
SPI1->DR = 0x86; // transmit 0x86
while ((SPI1->SR >> 1)==0); // wait until TXE is set
SPI1->DR = 0x85; // transmit 0x85
thanks
Attachments
-
59 KB Views: 7