Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
4 years, 7 months ago.
SPI Values are changing with NUCLEO-L432KC
Hey I am having a weird issue where the values of from my ADC are vastly different for this board compared to both the mbed LPC1768F. The same code is used for all three and I checked the connections on the board and there is no issues there. I am just confused why the nucleo l432 is giving different values over my serial terminal. Code is located at link below:
I did some more debugging and I realized the biggest discrepancy I can find is that my clock for the nucleo only has 8 ticks (which is the one that is giving false values) and the LPC1768F has 12 ticks. I am transmitting 12 bits over the SPI protocol
4 years, 6 months ago.
Some devices dont support all SPI word lengths. The nucleo SPI hardware engine may only support 8 or 16 bit format. You may be able to talk to the device using two 8 bit transfers and reconstructing that result back into a 12 bit word.