Altera_Forum
Honored Contributor
10 years agoHysteresis for temperature measurement
Hello all,
I am using MAX10 FPGA and want to measure the temperature via built-in temperature sensor. I have some LEDs on my PCB and I am controlling LEDs through PWM engine. I am measuring PCB temperature also. For this I am using ADC ip in quartus II and I am able to read Temperature sensor values. All is working but now I need to control PCB temperature from 30 °C to 50 °C. When PCB temperature reaches to 30 °C LEDs should de-rate its brightness to 10 % (90% ON) and when 35 °C LEDs should decrease brightness to 20% (80% ON) and so on and vice versa. So for this I get to know that I need to apply Hysteresis of 5 °C in my VHDL coding. Please help me to make hysteresis technique in my code. Thanks. And don't hesitate to ask questions. Regards Usman