cool.man
Full Member level 6
Hi,
I am using PIC18f252 and CCS compiler.
What i want to do is that whenever Interrupt comes at PIN_B1,it enables the interrupt on PIN_B0 and when no interrupt on PIN_B1,the interrupt on PIN_B0 disable's.
My theme is that i have a switch on a PIN_B1 and pulses coming from outside are at PIN_B0.when Switch is "ON" interrupt generate on PIN_B1 which enables the interrupt on PIN_B0 and pulses read by the microcontroller.
When the switch is at "OFF" position,interrupt at PIN_B1 and PIN_B0 should be disable.
Can anyone give me a basic idea how to do that.
I am using PIC18f252 and CCS compiler.
What i want to do is that whenever Interrupt comes at PIN_B1,it enables the interrupt on PIN_B0 and when no interrupt on PIN_B1,the interrupt on PIN_B0 disable's.
My theme is that i have a switch on a PIN_B1 and pulses coming from outside are at PIN_B0.when Switch is "ON" interrupt generate on PIN_B1 which enables the interrupt on PIN_B0 and pulses read by the microcontroller.
When the switch is at "OFF" position,interrupt at PIN_B1 and PIN_B0 should be disable.
Can anyone give me a basic idea how to do that.