Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:31 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Picomite: RTC error stop program

Author Message
grroel.tech
Newbie

Joined: 09/12/2021
Location: Spain
Posts: 27
Posted: 06:54pm 31 Jan 2023
Copy link to clipboard 
Print this post

Hello,

I have a program that reads the temperature and humidity from a DHT22 module and displays the values on an ILI9488W display in an infinite loop, but when exactly 3600 seconds have elapsed the program terminates in the second line "Pause 500" with error "RTC is not responding".

This is the program:

'temp Humid display
'
Colour RGB(255,255,255),RGB(0,0,0)
CLS
antTemp = 0 : antHumidity = 0

Do
 Text 10,280,Str$(Timer/1000),"LT",3,1,RGB(255,255,255),RGB(0,0,0)
 Circle 420,40,10,,,RGB(255,0,0),RGB(255,0,0)
 Bitbang humid GP28,Temp,Humidity
 Pause 500
 If antTemp <> temp Then
   Text 10,10,Str$(Temp),"LT",6,2,RGB(255,0,0),RGB(0,0,0)
   antTemp = Temp
 EndIf
 If antHumidity <> Humidity Then
   Text 10,140,Str$(Humidity),"LT",6,2,RGB(0,255,0),RGB(0,0,0)
   antHumidity = Humidity
 EndIf
 Circle 420,40,10,,,RGB(0,0,0),RGB(0,0,0)
 Pause 500
Loop
End


What happens? Why does the program terminate after this time if the DO loop is supposed to ... LOOP is never supposed to stop, and is there some kind of limitation?

Thank you,

Gerardo R. Roel,
San Fernando, Cadiz, Spain.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10629
Posted: 06:57pm 31 Jan 2023
Copy link to clipboard 
Print this post

You have OPTION RTC AUTO ENABLE set and the RTC either isn't there or isn't responding
 
grroel.tech
Newbie

Joined: 09/12/2021
Location: Spain
Posts: 27
Posted: 10:49am 01 Feb 2023
Copy link to clipboard 
Print this post

Hello,
A disconnected cable from the RTC module was the culprit. I didn't realise the clock wasn't working. Simple.
Thank you very much for your quick response.

Gerardo R. Roel
San Fernando, Cadiz, Spain
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025