Controller: ST7FLITE09 can someone tell me how I can disable my external interrupt?? I have a timer interrupt, so it's not possible to disable all Interrupts. I looked in the manual and I understood it like I have to set the Input for disable and enable So I set the Input, (PAOR7;PAOR1) for enable and if I want to disable I set it back to zero. So that they are still Inputs, but in floating mode! But it doesn't work! I tested some stuff and I think it is a problem of the interrupts! My external interrupts are one rising and one falling edge, which are connected with the transformed Line Sense Voltage. Ok, hope to hear something interesting from you! Bagus_lah
What are the instructions you use to switch from interrupt enable to disable mode? If you are using bset and bres instructions then use it with care or simply use OR, AND instructions to modify the I/O registers.
Othercase may be you are getting the pending interrupt. [ This message was edited by: Jatin on 20-04-2004 13:55 ]
What are the instructions you use to switch from interrupt enable to disable mode? I use the instruction with modifieing the I/O Register. With SetBit(PAOR,0) I enable the External Interrupt 0 and disable with ClrBit(PAOR,0). Hope this is OK, for what can I use the AND instruction??? The rising edge works so far, now I have the Problem with the falling edge only mode!! If I activate the falling mode it happens the same as in the falling edge mode and in the Rising and falling mode! The Interrupts are always on if the falling edge/ low level are on the pin! When it rise up, it they'll get stopped! Hope you understand what I mean! ??? again and shorter: I set falling edge and if I come to the low level, I get every 23 mikrosec an ext0 interrupt until the high level is reached! I changed the controller with a new one and it also doesn't work! Thanks for your help and hope to get a answer again, Bagus_lah [ Diese Nachricht wurde editiert von : Bagus_lah on 20-04-2004 16:44 ]