hello, testing the spi examples of SDK16.0.0 I was trying to read a type k thermocouple with a max31856 on the nRF52840dk board, I made the connections of ss, sck, mosi, miso. The problem is that I don't get thermocouple values, is there another way to read this type of sendor with the nRF52840dk board?
Have you made sure to configure the SPI in the nRF52840 with the right mode and frequency to work with your sensor?
Have you tried to probe the SPI lines with a scope or logic analyzer to verify that the communication looks OK?
Hi, I have reviewed the SPI example but I can't find where to change the mode and frequency, could you guide me to test those changes?
Do you mean the SPI example in the SDK?
In this example the SPI interface is configured through the spi_config struct.
The example uses mostly default settings, but you are free to change all the fields in the spi_config struct before calling nrf_drv_spi_init(..), such as the mode or bit_order fields.
I have another doubt, to read a type K thermocouple with a max31856 through SPI, which example could be useful to read the data sent by the sensor?
We don't have any examples for this type of sensor unfortunately.
Either you would have to find some non-nordic example and adapt it to the nRF52840, or implement something from scratch based on the MAX31856 datasheet.