beefy wrote:Thanks for the advice AC.
Why avoid pull down resistors though (do you mean use pull ups instead ??). I like the idea of strong pull downs (1k) in a noisy environment like plasma. It's also a recommended practise to avoid spurious triggering of the interrupt.
Generally saying, pull down resistors are not a very good idea because they need to be fairly large to have an effect (like you also are saying) and they also act as pull-downs when not needed, i.e. when you have a positive signal and what to pull the input high.
For noise reduction it is recommended to use low pass filter, not strong pull-down resistors.
http://www.digikey.com/en/articles/techzone/2012/apr/protecting-inputs-in-digital-electronicsWhen you say "It's also a recommended practice to avoid spurious triggering of the interrupt." Recommended by who? Yes, it is used, yes, it has some effect, but it is not a good practice in my opinion.
Noise must be handled primarily where it is generated. There are many things which can be done, like proper shielding, not just shielding wires, but also electronics should be in shielded boxes, use of filters on mains inputs and so on. I dislike pull-down resistors and avoid if I can, but use it if absolutely necessary.
beefy wrote:I'm using an AVR micro.
The interrupts can be triggered on either a raising or falling edge and I may be using both. The code will simply change the interrupt on the fly, from raising to lowering and visa versa.
The PICs I am using have an interrupt setting type called something like "Interrupt on state change". It means that an interrupt will be generated every time the input goes from high to low or from low to high. This makes changing the configuration on the fly unnecessary. Doesn't this exist in AVR? Isn't this what you want to do?