FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6208 Discussions

Measuring Temperature through Stratix 10 DX

Manik
Novice
1,693 Views

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

 

0 Kudos
10 Replies
Manik
Novice
1,632 Views

Please share your suggestions and ideas to get the above things done.

0 Kudos
FvM
Honored Contributor I
1,625 Views
Hi,
you are referring to a specific dev board? Does it come with example code for MAX6581 access?

0 Kudos
Manik
Novice
1,621 Views

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

https://www.intel.com/content/dam/altera-www/global/en_US/support/boards-kits/stratix10/dx_fpga/stratix-10-dx-dev-kit.pdf

 

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

 

 

 

0 Kudos
FvM
Honored Contributor I
1,610 Views
Hi,
o.k., no example shipped with the dev board, unfortunately.

Personally, I'm accessing temperature monitors and fan controllers in HDL rather than NIOS, but embedded I2C host IP should work as well.
Regarding address notation, originally I2C device addresses use 7-bit notation (0x4D, left aligned in first I2C byte. Maxim seems to prefer 8-bit notation (0x9A, right aligned). In host IP, you write 0x4D to TFR_CMD.AD (bit 7:1).

As with many I2C devices, register address is written as single byte to MAX6581, then the register content is read. Typical I2C sequence is shown in datasheet.
0 Kudos
Manik
Novice
1,591 Views

Hi,

Thanks for your valuable suggestions.

Yes I did it in both ways, that is with 9A and 4D but no response from the device.

Could you please share me the info how you converted the register value you read through RTL from the devices to Celsius or Fahrenheit?

I appreciate if there is any further references related to reading the data through NIOS II and I2C Host IPCore. 

0 Kudos
Manik
Novice
1,566 Views

Hi @Fakhrul ,

Please, share my request with the right Intel people who is involved in the Intel Stratix 10 DX development board.

I am struggling to access the features which is claimed in the intel user guide with the limited description in that.

Kindly  help me out to get it resolved.

 

Thank you

0 Kudos
Farabi
Employee
1,405 Views

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


0 Kudos
Manik
Novice
1,231 Views

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

 

 

0 Kudos
Farabi
Employee
1,375 Views

Hello,


Do you have further question?


regards,

Farabi


0 Kudos
Manik
Novice
1,230 Views

Yes, still it is open.

Didn't get any specific fix with I2C host IP core. 

Please do support me.

Thank you

 

0 Kudos
Reply