If I add this code, the display is empty And yes, if you explicitly specify the frequency as 1MHz in the original code, it also works. I didn't know that if you don't explicitly specify the frequency, it takes the highest possible value.
If I add this code, the display is empty
Anobium: So, remove the sub... and use #chip mega8, 1 Then, the delays will be calculated correctly. Yes, you are absolutely right. If you specify the frequency explicitly, everything works correctly Thank you again.
Hi, Anobium. I would like to express my great gratitude for your help. I tried to insert the code you provided into the program, but it did not display anything on the screen. However, thanks to you, I was able to resolve the issue. I will reiterate my gratitude. I'll duplicate my message. You gave me an idea. I configured the atmega8 to run at 16 MHz. And, unexpectedly, the sensor showed the correct temperature. After that, I tried an 8 MHz configuration. At this frequency, the sensor also shows...
Hi, Anobium. I would like to express my great gratitude for your help. I tried to insert the code you provided into the program, but it did not display anything on the screen. However, thanks to you, I was able to resolve the issue. I will reiterate my gratitude. I'll duplicate my message. You gave me an idea. I configured the atmega8 to run at 16 MHz. And, unexpectedly, the sensor showed the correct temperature. After that, I tried an 8 MHz configuration. At this frequency, the sensor also shows...
You gave me an idea. I configured the atmega8 to run at 16 MHz. And, unexpectedly, the sensor showed the correct temperature. After that, I tried an 8 MHz configuration. At this frequency, the sensor also shows the correct temperature. Then I reduced the frequency to 4 MHz and got a result of 0.0625. The atmega8 default configuration runs at 1 MHz. So, the conclusion is that the code doesn't work at low frequencies.
Here on the real hardware. Only it's not an Arduino, it's just an atmega8.
No, it's a simulator. I'll try it on a real microcontroller later.