Forum Discussion
Measuring Temperature through Stratix 10 DX
Hi Intel Community Members,
In the Stratix 10 DX, I wish to have the following clarification
1. How to read temperature values from max6581?
2. Address for reading the registers of max6581 from nios II through I2C IPcore? (Is it 0x4D or 0X9A?)
3. How to convert the temperature hex value to real temperature value in Celsius or Fahrenheit?
4. are the register address given in the max6581 datasheet should be considered as offset?
5. Is there any reference design to read temperature values from intel of similar kind ?
Kindly support me.
Your comments are more valuable to me and highly appreciated.
Thank you
10 Replies
- Manik
New Contributor
Please share your suggestions and ideas to get the above things done.
- FvM
Super Contributor
Hi,
you are referring to a specific dev board? Does it come with example code for MAX6581 access?- Manik
New Contributor
Hi @FvM,
Thanks for your interest in helping me.Yes, I am referring to the board Stratix 10 Dx FPGA Development Board (https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=248&No=1258).
No, the development board didn't come with any specific reference design to access MAX6581.For you kind reference here with I have given the link for the FPGA Development Board manual,
https://www.intel.com/content/www/us/en/docs/programmable/683561/current/supported-features.html
Board Schematic
MAX6581 Datasheet
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX6581.pdf
Based on the information available over the manuals and documents, I attempted to create a system to access the temperature through Stratix 10 Dx FPGA with NIOS II and I2C(https://www.intel.com/content/www/us/en/docs/programmable/683130/22-1/fpga-i2c-host-core.html) and tried to read the temperature value through I2C functions in C, In that only I have the following queries.
1. How to read the temperature values from max6581?
2. Address for reading the registers of max6581 from nios II through I2C IPcore? (Is it 0x4D or 0X9A?)
3. How to convert the temperature hex value to real temperature value in Celsius or Fahrenheit?
4. are the registers addresses given in the max6581 datasheet should be considered as offset?
5. Is there any reference design to read temperature values from intel of similar kind ?
Kindy help me to get the temperature read through the FPGA.
I appreciate your efforts.Thank you
- Farabi_Altera
Regular Contributor
Hello,
I am sorry for late reply. I was out sick for the last few weeks.
You can refer to this video to access the temp sense diode and how to read the hex value to temperature.
link : https://www.youtube.com/watch?v=E5TaTxuOmOY
regards,
Farabi
- Manik
New Contributor
Hi @Farabi ,
Alright, Thanks for the response.
I have gone through the video it is about temperature sensor and value conversion. Really a good material which gave me an idea for my query number 3.
But, I wish to do it through Intel I2C host IPcore. In the shared video it was directly read by the temp sense IP.
FYKI, I wish to have access to max6581 which is there in the Stratix 10 DX evaluation board using I2C host ip core in qsys through writing application program which uses the API calls of the I2C host IP.
Please refer my previous posts (specifically, Dated :10-03-2023 02:09 PM) for the detailed description and required documents.
Kindly share me some reference designs also along with the fix.
Thank you
- Farabi_Altera
Regular Contributor
Hello,
Do you have further question?
regards,
Farabi
- Manik
New Contributor
Yes, still it is open.
Didn't get any specific fix with I2C host IP core.
Please do support me.
Thank you