2003-07-08 12:06 AM
2003-07-02 05:33 AM
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, Murielle2003-07-03 12:23 AM
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.
2003-07-03 01:21 AM
I try with PBOR = 0x00 (falling edge and low level) but it doesnt work.
What is IPB? Best regards, Murielle2003-07-03 02:50 AM
The EICR register config. is like this -
IS11 IS10 IPB IS21 IS20 IPA TLIS TLIE Make IS11 & IS10 as 00 & IPB as 1 so register value is 0x20.2003-07-03 03:02 AM
I use a ST7FLITE0.
In the datasheet the EICR is like this : IS31 IS30 IS21 IS20 IS11 IS10 IS01 IS00 There are 4 external interrupts. Best regards, Murielle2003-07-08 12:06 AM
Ok.
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 ]