Hi All,
I am trying to use the time variable on the 18M2. In a particular part of my program I am Sending the days, hours, minutes, seconds to a serial LCD. I am running the chip at 8MHz to make it serial LCD friendly however it seems to be halving the time. i.e when my LCD displays 0D:0H:8M:0S it has been 16 minutes on my watch.
I have tried to use the settimer t1s_8 command and get an error:
"Error: 'setuptimer' command not supported by this chip!"
I can not find any info about the 18M2 not supporting this command. Any Ideas??
Thanks again
I am trying to use the time variable on the 18M2. In a particular part of my program I am Sending the days, hours, minutes, seconds to a serial LCD. I am running the chip at 8MHz to make it serial LCD friendly however it seems to be halving the time. i.e when my LCD displays 0D:0H:8M:0S it has been 16 minutes on my watch.
I have tried to use the settimer t1s_8 command and get an error:
"Error: 'setuptimer' command not supported by this chip!"
I can not find any info about the 18M2 not supporting this command. Any Ideas??
Code:
Timeshift:
if time > 59 then AddMinute
if minutes > 59 then AddMinute
if hours > 23 then AddDay
return
AddMinute:
let time = 0
let minutes = minutes + 1
return
AddHours:
let minutes = 0
let hours = hours + 1
return
AddDay:
let hours = 0
let days = days + 1
return
''''' MISSING CODE""""""
serout SERLCD,BAUD,(CMD,WIPE): pause sec
serout SERLCD,BAUD,("Timer"): pause sec
serout SERLCD,BAUD,(CMD,192): pause sec 'curser to second line
serout SERLCD,BAUD,(#Days,"D:",#Hours,"H:",#Minutes, "M:", #Time,"S"): pause sec10
return