Re: Can anyone give me sample code for timer in pic16f676
The PIC16F676 is one of the more resource limited mid-range controllers that Microchip offers.
It has just two timers and neither has a auto reload function.
This makes it a challenge to code a long interval timeout that does not drift.
It seems unlikely that the Original Poster(OP) wants a long winded description on the use of fraction interval dividers to realize low jitter, zero drift event notifications.
It would be useful for the OP specify just how precise the 30 minute interval must be.
Is plus or minus one minute close enough?
Or does it need to be within one millisecond?