Abstract:Developing embedded system using single-chip microprocessor, we are often faced with dealing with multi- duties at the same time. In order to implement multi-duties in sing-chip system of fewer resource, a new method of program design based on event driving is put forward. This method is simple, which can be applied for most single-chip application system with timer interruption, making some complex programming simple, logical control with real-time.