The Vih of most CMOS circuits is not 1/2Vcc but less than that, because of the inherent PMOS/NMOS differences. This also happens to make the inputs TTL compatible. Peter -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.