Hi,
I have a little problem with interrupt.
I want to set PIN_A5 to low for 4 minutes. Then I want to set PIN_A5 to lhigh for 6 minutes. Unfortunately it doesn't work. I use a PIC 16F818. Below a part of my code:
Code:
#define INTS_PER_SECOND 61 // (8000000/(4*128*256))
#int_rtcc // This function is called every time
void clock_isr() { // the RTCC (timer0) overflows (255->0).
// For this program this is apx 61 times
if(--int_count==0) { // per second.
++seconds;
int_count=INTS_PER_SECOND;
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum