??? 04/21/10 13:59 Read: times |
#175217 - External Interrupt on both Falling edge & rising edge |
Hello forum,
i am using AT89S52 in a dimmer project and iam using a ZCD directly from mains without isolation. The 230V Mains hot side is connected thru a 1Meg resistor to the external interrupt pin P3.3 and neutral is connected to circuit Gnd thru another 1Meg resistor. i got this from an AVR application note and thought i could use this on 8051 which too has internal clamp diodes on I/o pins. the above setup results in a square wave on ext.int pin, now the problem is normal 8051/2 like 89S52 can be configured to respond to falling edge of a signal and not to rising edge. how can i cause interrupt on both the edges of the square wave signal ? need help on this, Regards, Arun |