Korawy
Member level 3
- Joined
- Sep 8, 2011
- Messages
- 61
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Activity points
- 1,776
Hi all,,
Im controlling a robot through RF Module.
I test the RF and it works fine when i put the code in main program (using mikroc),Later i tried to make an interrupt from this RF, But interrupt not occur.
I initialized an Interrupt routine so that when portb.f0=1 the interrupt occurs, but that doesnt happen.
This is how i initializes the interrupt:
I test the interrupt using switch in proteus and it works fine, but in real that doesnt happen.
I think that the period of "1" from the RF receiver (which is less than 1000us) doesnot activate the interrupt, Is that true??!
Im controlling a robot through RF Module.
I test the RF and it works fine when i put the code in main program (using mikroc),Later i tried to make an interrupt from this RF, But interrupt not occur.
I initialized an Interrupt routine so that when portb.f0=1 the interrupt occurs, but that doesnt happen.
This is how i initializes the interrupt:
Code:
INTCON.F7=1;
INTCON.F6=0;
INTCON.F4=1;
RCON.F7=0;
INTCON2.F6=1;
I test the interrupt using switch in proteus and it works fine, but in real that doesnt happen.
I think that the period of "1" from the RF receiver (which is less than 1000us) doesnot activate the interrupt, Is that true??!