lese dir das mal durch.
http://www.mikrocontroller.net/topic/22469