Hi,
I am looking for resources on internet but not getting results for interfacing MAX6675 to SPI using STM32F103C8T6.
Can anyone please help me out where to start for using K-Type Thermocouple IC MAX6675 to read temperature from 2 Modules on SPI1 and SPI2.
I am using STM32 Arduino Core for implementation.
Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Quick search for arduino library :
https://www.arduino.cc/reference/en/lib ... 5-library/
Go to full posthttps://www.arduino.cc/reference/en/lib ... 5-library/
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Quick search for arduino library :
https://www.arduino.cc/reference/en/lib ... 5-library/
https://www.arduino.cc/reference/en/lib ... 5-library/
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Thanks got it,
But any idea how to run 2 SPI @ same time ?
But any idea how to run 2 SPI @ same time ?
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Why not only one SPI with different CS?
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
can i use multiple instances of max6675 ? that should work ?
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
Okay,
I had success using 2 Instances, i think this library can use any PINs as BITBANG @ SPI. so you can use multiple sensor only drawback would be 3 pins would be wasted. better option would be to use CS to multiplex sensors saving IO pins.
I had success using 2 Instances, i think this library can use any PINs as BITBANG @ SPI. so you can use multiple sensor only drawback would be 3 pins would be wasted. better option would be to use CS to multiplex sensors saving IO pins.
Re: Need to read MAX6675 K Type Thermocouple on SPI1 and SPI2 Simultaneously
I think you will find that to truly sample the data "simultaneously", you have to share the CS pin.
Then you can share the SCK pin.
So for two sensors, you need 1 CS pin, 1 SCK pin and 2 SO pins.
Then you can share the SCK pin.
So for two sensors, you need 1 CS pin, 1 SCK pin and 2 SO pins.