Schau dir auch diesen Artikel an:
http://www.mikrocontroller.net/artic...ogik_ansteuern