Skip to main content
[Edit removed during grace period]
Source Link
HandyHowie
  • 4.1k
  • 1
  • 16
  • 22
added 84 characters in body
Source Link
HandyHowie
  • 4.1k
  • 1
  • 16
  • 22

After starting your transmission by writing to SPI1BUF, I think you will need to wait until the transmission is complete before you then start checking if the receive is complete. You also seem to be ignoring the values you want to send and sending 0x00 instead.

After starting your transmission by writing to SPI1BUF, I think you will need to wait until the transmission is complete before you then start checking if the receive is complete.

After starting your transmission by writing to SPI1BUF, I think you will need to wait until the transmission is complete before you then start checking if the receive is complete. You also seem to be ignoring the values you want to send and sending 0x00 instead.

Source Link
HandyHowie
  • 4.1k
  • 1
  • 16
  • 22

After starting your transmission by writing to SPI1BUF, I think you will need to wait until the transmission is complete before you then start checking if the receive is complete.