I want to use port PB0 in entry interrupt falling edge.
Configuration : PBDDR = 0xF6; EICR = 0x80; PBOR = 0x01; PB0 is to 0 When I validate the interrupt PB0 (PBOR = 0x01), the interrupt occurs?! The interrupt must occur on a falling edge and not on a low level. How to solve my problem? Thanks, Murielle
What i have understood from your question is that you want to have the interrupt only when falling edge is detected .For this,you can set your interrupt sensitivity as falling edge only with IS1x bits as 00 and IPB bit as 1.
For PortB interrupt the bits are IS31 and IS30. So to set the interrupt as falling edge only ... Set the register value as 1000 0000 ===> 0x80 The value in this register is to be updated only when the interrupts are disabled. [ This message was edited by: Ranjeet on 08-07-2003 14:00 ]