Yet again, you've come up trumps - worse still I knew about the positive edge/falling edge for triggering an interrupt ...since I'm using weak internal pullups, I selected negative, but I never made...
Type: Posts; User: HankMcSpank; Keyword(s):
Yet again, you've come up trumps - worse still I knew about the positive edge/falling edge for triggering an interrupt ...since I'm using weak internal pullups, I selected negative, but I never made...
Many thanks Darrel.
I have a problemetette - my program runs fine, but then when I press a switch (to generate an IOC), an interrupt *is* triggered, but it then seems to loop in my interrupt...
Just a quickie, re IOC interrupts....how do I know which one to use? (previously I was using IOC with a 16f690 & used RABC_INT then, but the PIC I'm using now doesn't have a PORT B)
From DT's...
We're straying off (probably better to visit the ongoing related thread - http://www.picbasic.co.uk/forum/showthread.php?t=13690), but just to clarify....I'm not even calculating phase wrt to this...
It all works well above a certain phase shift (depending on the signal frequency)...just when you get to the lower regions that this quirk kicks in.
I'm sure you're sorted for a phase shift cct,...
Be warned...it's still very much a work in progress, I've just revisited this one & noticed a whopping proble. On the basis that a picture is worth a thousand words, I just posted up a youtube video,...
Excellent news....and thanks for the quick response (I'm off to divide 2147483647 by 32767 .....just because)
I'm needing to use DIV32 in my program, this from the compiler manual...
"...blah, blah, blah...........ON INTERRUPT must be
DISABLEd from before the multiply until after the DIV32. If ON...
thanks for the clarification Darrel!
I look forward to the day where I don't have to read something 10 times ...and still not be 100% sure what it means! Until then please humour me - I'm using...
Just wondering if doing something like this is a 'no no' wrt to the interrupt handlers...
CPM1_Interrupt_Handler:
@ INT_DISABLE CMP1_INT
[do some stuff here]
@ INT_ENABLE CMP2_INT
Thanks...there's some top tips there.
Just a thought here - is it even possible to get reliable results with mechanical switches & interupts?
By this I mean, a mechanical switch normally...
mister_e.... I'd like to get interupts working on my 16F690 ....I visited Darrel's website & on the very first example "Hello World", he shows the code along with a short schematic - the interupt is...
Oops - double post....removed.