I do clear it at the top. Do I have to clear it while inside the interrupt routine?
I do clear it at the top. Do I have to clear it while inside the interrupt routine?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I clear it here
T1CON = %00100000 ' stop TMR1
PIR1.0 = 0 ' clear bit 0 TMR1 interrupt flag
TMR1H = $8C
TMR1L = $A0 ' loads 36000 - gives 24 mS on CRO
T1CON = %00100001 ' start TMR1
joe, I think you answered my question. It does have to be in the ISR.
So syntax..... bcf PIR1.0m will this work?
You clear it at the beginning, find...but it's likely not set at the beginning...
What happens when the flag gets set during program execution?
Refer to the datasheet!
Almost, but I think the wording should be 'will continuously fire'...in other words, if the flag stays set (or clear as the case might be), the program returns to the main loop and gets interrupted again straight away.
But then again...I would never doubt the word of a select beverage...![]()
Bookmarks