Reading k-type thermocouple using SPI
Version 1.0.0 (61,9 KB) von
Atta Wasay
Simulink Model for reading temperature from k-Type thermocouple using SPI device (MAX6675)
This simulink model reads temperature from k-Type thermocouple using SPI device (MAX6675).
CS pin is set low to start the conversion process in MAX6675. SPI block initiate the clock cycle. Upon falling pulse data is read as MSB and LSB. Pulse generator is used for continuous conversion and ultimately reading temperature.
The bits are then merge together and shift right 3 bits to read only temperature signal D14 to D03. Multiplied by offset to get temperature in centigrade.
Really appreciate the MATLAB's answers which supported alot in getting this done.
Zitieren als
Atta Wasay (2024). Reading k-type thermocouple using SPI (https://www.mathworks.com/matlabcentral/fileexchange/154752-reading-k-type-thermocouple-using-spi), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2021b
Kompatibel mit allen Versionen bis R2021b
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |