View Single Post
Old 07-14-2009, 03:46 AM   #2002 (permalink)
squiggles
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
The 1N4148 diode pulls PWM low while !CLEAR is active
Actually this is not guaranteed. The ATmega8 output when low can be as high as 0.7V. The diode forward voltage will be 0.7V or more meaning you are only certain of pulling the PWM signal down to 1.4V which is around the threshold of the input low condition of the CMOS NAND gate input. If you really want to have a hardware circuit I would use an AND gate with PWM and !CLEAR as inputs. (or a NAND gate followed by a NAND Invertor). Or (shudder) a transistor circuit.

Having diodes in digital logic circuits is something to avoid....except zeners as voltage protection devices.
  Reply With Quote