MAX6675

This is an overview of the MAX6675 and the OSS-ECAL offering for the MAX6675. The MAX6675 is a Temperature sensor IC (0 to 1024 °C) manufactured by Analog Devices(Maxim Integrated).
MCU interface : SPI

CAUTION:Please be sure to refer to the latest version of the Datasheet prior to actual design.

MAX6675

General description

The MAX6675 performs cold-junction compensation and digitizes the signal from a type-K thermocouple. The data is output in a 12-bit resolution, SPI-compatible, read-only format.
This converter resolves temperatures to 0.25°C, allows readings as high as +1024°C, and exhibits thermocouple accuracy of 8 LSBs for temperatures ranging from 0°C to +700°C.
The MAX6675 is available in a small, 8-pin SO package.

Feature

  • Direct Digital Conversion of Type -K Thermocouple Output
  • Cold-Junction Compensation
  • Simple SPI-Compatible Serial Interface
  • 12-Bit, 0.25°C Resolution
  • Open Thermocouple Detection

Application

  • Industrial
  • Appliances
  • HVAC

OSS-ECAL specification

API Function

etSTS oMAX6675( etCMD cmd, stMAX6675_O* rlt )

The oMAX6675 function is an API function that executes MAX6675 processing according to the command in the argument.

NOTE:

Return valueetSTSOSS-ECAL status code
eSTS_FINCompleted successfully
eSTS_ERR_MINMinimum temperature error (rlt.temperature is minimum temperature)
eSTS_ERR_MAXMaximum temperature error (rlt.temperature is maximum temperature)
eSTS_ERR_COMMAND_CODECommand selection error
eSTS_ERR_SPI_OBJECTSPI object selection error
eSTS_ERR_OTHERS_RUNOther components are executing the process
eSTS_ERR_HAL_OTHERS_RUNOther application is running HAL
eSTS_ERR_HAL_SPIHAL SPI error
Parameter INetCMD cmdOSS-ECAL command code
eCMD_CONFIGCommands to set up SPI communication for MCU.

1. Set up SPI communication for MCU.
eCMD_READCommand to read Register value, convert Register value and save to rlt.

1. SPI send & receive.
2. Stores received values in rlt.dummy and rlt.ti, rlt.id, rlt.ste.
3. Convert received data to Temperature.
Temperature = (Register b14-b3) / Gain
(Min, Max Limit)
3. Store Temperature in rlt.temperature.
Parameter OUTstMAX6675_O* rltReceive data from MAX6675
float32 temperatureRegister b14-b3 to float Temperature[℃] 0.0~1023.75℃
uint8 dummyRegister b15 to bit0 Dummy
uint8 tiRegister b2 to bit0 THERMOCOUPLE
uint8 idRegister b1 to bit0 DEVICE ID(only 0)
uint8 steRegister b0 to bit0 STATE
etSTS oMAX6675_CONFIG(void)

The oMAX6675_CONFIG function is an API function that set up SPI communication for the MCU.

  1. Set up SPI communication for MCU.

NOTE:

Return valueetSTSOSS-ECAL status code
eSTS_FINCompleted successfully
eSTS_ERR_SPI_OBJECTSPI object selection error
eSTS_ERR_OTHERS_RUNOther components are executing the process
eSTS_ERR_HAL_OTHERS_RUNOther application is running HAL
eSTS_ERR_HAL_SPIHAL SPI error
etSTS oMAX6675_READ( stMAX6675_O* rlt )

The oMAX6675_READ function is an API function that reads the Register value of MAX6675, converts the Register value and stores it in rlt.

  1. SPI send & receive.
  2. Stores received values in rlt.dummy and rlt.ti, rlt.id, rlt.ste.
  3. Convert received data to Temperature.
    Temperature = (Register b14-b3) / Gain
    (Min, Max Limit)
  4. Store Temperature in rlt.temperature.
Return valueetSTSOSS-ECAL status code
eSTS_FINCompleted successfully
eSTS_ERR_MINMinimum temperature error (rlt.temperature is minimum temperature)
eSTS_ERR_MAXMaximum temperature error (rlt.temperature is maximum temperature)
eSTS_ERR_SPI_OBJECTSPI object selection error
eSTS_ERR_OTHERS_RUNOther components are executing the process
eSTS_ERR_HAL_OTHERS_RUNOther application is running HAL
eSTS_ERR_HAL_SPIHAL SPI error
Parameter OUTstMAX6675_O* rltReceive data from MAX6675
float32 temperatureRegister b14-b3 to float Temperature[℃] 0.0~1023.75℃
uint8 dummyRegister b15 to bit0 Dummy
uint8 tiRegister b2 to bit0 THERMOCOUPLE
uint8 idRegister b1 to bit0 DEVICE ID(only 0)
uint8 steRegister b0 to bit0 STATE

HAL Support List

OSS-ECAL’s HAL support is as follows. (The list is being expanded sequentially.) Please note that even if the same HAL is used, different versions, MCUs, and development environments may not work together.

ManufacturerSDK/IDE ToolHAL NameVerHALNAMESupport
ArduinoArduino IDEArduino1.8.6ARDUINOX
ArmKeil MDK v6Mbed OS6.17.0MBEDX
DebianGNU/Linux10.3LinuxX
InfineonModusToolboxmtb-hal-cat12.4.3ModusToolboxX
NXPMCUXpresso SDKSDK_2.x_EVKB-IMXRT10502.16iMXRT1051B1052BX
NXPPlatformSDK_S32K1_2022_02AUTOSAR MCAL4.4MCAL
RenesasSynergy Software PackageHAL2.6.0SSPX
STMicroelectronicsSTM32CubeSTM32CubeF4V1.28.1STM32F4X
Development environment

The MCU and development environment during OSS-ECAL development are as follows.

HALNAMEManufacturerBoardMCUIDE
ARDUINOArduino1.Mega 2560 Rev3
2.Arduino Pro Mini 3.3V
ATmega2560
ATmega328P
Arduino IDE 2.3.3
MBEDSTMicroelectronicsSTM32 Nucleo-64 boardsSTM32F401RETxArm Keil Studio Cloud
LinuxBeagleBoardBeagleBone BlackTI AM335x
ModusToolboxInfineonCY8CPROTO-063-BLE PSoC 6 BLE Prototyping KitCYBLE-416045-02ModusToolbox
iMXRT1051B1052BNXPIMXRT1050-EVKBi.MX RT1050MCUXpresso IDE
MCALSTMicroelectronicsS32K144EVB-Q100S32K144S32 Design Studio for S32 Platform
SSPRenesasS7G2 SKR7FS7G27H3A01CFCe² studio for Renesas Synergy
STM32F4STMicroelectronicsSTM32 Nucleo-64 boardsSTM32F401RETxSTM32CubeIDE

File Structure

Folder*Filesummary
MAX6675_HALNAME_VERSION/samplesample.c (.cpp)Sample Application Program
sample.hSample Application Header
MAX6675_HALNAME_VERSIONoMAX6675.c (.cpp)OSS-ECAL Program for MAX6675
oMAX6675.hOSS-ECAL Header for MAX6675
MAX6675_ARDUINO.inoSample application programs for Arduino
oss_ecal.hOSS-ECAL Common Header (Ver 01.01.00 or later, AUTOSAR is Ver 01.01.07 or later)
user_setting.c (.cpp)Const and Table of User setting
user_setting.hHeader of User setting
oHAL_i2c_stm32f4.cHAL Program for STM32Cube FW_F4
oHAL_i2c_stm32f4.hHAL Header for STM32Cube FW_F4
readme.mdReadme
OSS-ECAL Terms of Use.txtOSS-ECAL Terms of Use

* For HALNAME, please refer to HAL Support.

OSS-ECAL Download Contact

Please login before contacting us for downloads.
To register as a new user, click here.

Built-in How to

How to incorporate OSS-ECAL into user programs

How to incorporate multiple OSS-ECALs in a user program (same MCU function)

How to incorporate multiple OSS-ECALs in a user program (different MCU function)

How to incorporate multiple identical electronic components into a user program

How to reduce the impact on user programs by replacing electronic components

CAUTION

The sample version of OSS-ECAL is not intended to be used with Threads (Tasks) or interrupts of different priority. Please do not use it as in the example below.

Example: If each sensor is assigned to the same ADC group and the OSS-ECAL API is executed in processes with different priorities, correct values may not be obtained.
ADC Gr0 Ch0 Temperature sensor AD22100A 100ms cycle Thread (low priority) to take in temperature
ADC Gr0 Ch1 Pressure sensor   MPX5999D Event interrupts (high priority) to take pressure

OSS-ECAL English
error: Content is protected !!