Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: pedja089; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    34,271

    Re: Working clock example using 32K watch crystal

    If pic loses power, it goes to sleep. And everything is shut off, only tmr1 is on. So i need that in ISR. Is there better way?
  2. Replies
    19
    Views
    34,271

    Re: Working clock example using 32K watch crystal

    Thanks for that... It was just typo... 0-99 year is fine for this aplication.
    On the top of ISR I have BSR=0, and isr routine is on top of my programm.
  3. Replies
    19
    Views
    34,271

    Re: Working clock example using 32K watch crystal

    I spent all night trying to find the best way ... I think this is

    If month=2 then
    If year//4<>0 then
    DMonth=29
    else
    ...
  4. Replies
    19
    Views
    34,271

    Re: Working clock example using 32K watch crystal

    I'm trying to add the calendar.
    Does anyone have an idea how to make a calculation of leap year.
    I tried this
    If day>30+month.0 or (Month=2 and day>28 and year//4<>0) or (Month=2 and day>29 and...
  5. Replies
    19
    Views
    34,271

    Re: Working clock example using 32K watch crystal

    I was playing with TimC RTC code, and I found 1 problem...
    If the interrupt occurs between these lines


    GoSub get_time ' Update minutes and seconds
    TOGGLE LED_0
    LCDOut...
Results 1 to 5 of 5