I tried your INT code mod and sample code here (added Counter VAR Word) and it compiled okay.
A couple questions:
What are you try to do that is not happening?
And excuse my ignorance, but what is ISIS?
I tried your INT code mod and sample code here (added Counter VAR Word) and it compiled okay.
A couple questions:
What are you try to do that is not happening?
And excuse my ignorance, but what is ISIS?
Louie
looks like an Egyptian goddessbut what is ISIS?
https://en.wikipedia.org/wiki/Isis
but it probably this
http:/'s/www.picmicros.org.uk/Interfacing/TUTORIAL.htm
* There is no problem with compiling. It's okay.
* There are buttons tied PORTA.0, PORTA.1, PORTA.2 - PORTB.4 and PORTB.6. I want to get interrupt every logic change on this ports. If you look at IOCA and IOCB registers, these ports are enabled for interrupt.
* ISIS is a simulation program.
DT_INTS does not clear the ioc int flag you need to do that yourself either in your isr or when you ready to rearm the interrupt
I'm wrong there, I was thinking of ioca/b int issues I had some years back . but after having another look it was with a 16f1825 which has an individual ioc flag for every ioc pin , but it won't hurt to rule that out anyway
Hello everyone..
I read this post today. And added MOVF PORTA, W - MOVF PORTB, W. Now it's working as it should be.
Code:RABC : @ MOVF PORTA, W @ MOVF PORTB, W COUNTER = COUNTER + 1 @ INT_RETURN
Hello,
i have a working code which uses
CMP_INT and TMR1_INT.
I want when TMR1_INT event triggered ,
to change the period (or Frequency as entered) and reload the TMR1 with a new value.
Is this possible to put mutiple instances of e.g.
@Freq = 416 ; Frequency of Interrupts in Hz 416Hz
??
Thank you.
"Freq " would be a label and cannot be redefinedIs this possible to put mutiple instances of e.g. @Freq = 416
you can however
@Freq1 = 416
@Freq2 = 410
@Freq3 = 466
if you need to change the tmr1 interrupt rate the tmr1 reload value needs to be a var
Bookmarks