Ok, added the option_reg to set up the counter to count ra4, low to high, WDT with a 1:1 prescale.
Removed the count = display. Display should now increment? I can then use the value in display and send it out to the digits?
What I was trying to do there was have display = count so that display would continue being incremented and I could do all the math and segment work with count word. This is becuase I need to count 21600 interupts, and them send that out as a 1 to the 7 segments. Sort of like a custom interupt postscaler I guess.
Thanks for your help and insight everyone. Dave I already owe you one!
display var word
OPTION_REG = %11101000
INTCON = %10100000
display = 0 ' set initial value of counter display (This should appear on the 7 seg displays.)
TMR0 = $00 ' set timer value to 0
on interrupt goto setdisplay
disable
setdisplay:
display = display + 1
INTCON.2 = 0 ' clear overflow flag
TMR0 = $00 ' reload TMR0
resume
enable
Bookmarks