Browse > Article
http://dx.doi.org/10.9708/jksci.2013.18.7.047

Clock Pulse Synchronization of MCU Timers in Embedded Systems  

Lee, Hyung-Bong (Dept. of Computer Science & Engineering, Gangneung-Wonju National University)
Kwon, Ki-Hyeon (Dept. of Electronics, Information & Communication Engineering, Kangwon National University)
Abstract
Most of the applications implemented in embedded systems use timers equipped in MCU. The purposes of timer usage of the applications lie in a wide range of areas such as implementing software timers of real-time operating systems to measuring processing time of sensors. The elapsed times measured by the applications are various in length as well as in precision ranging from several us to several hundreds of ms. The paper analyzes the timing error factors caused by un- synchronizing timer clock pulse when timers are manipulated, and proposes a method of how to synchronize timer clock pulse to reduce the timing errors. As a result of an experiment, this paper shows that an error of 230us is reduced within 10us in case of appling the proposed method to a 4096Hz timer prescaled from 32768Hz by 8.
Keywords
Emdedded Systems; Timer Measurement Error; Timer Clock Pulse Synchronization; Prescaling;
Citations & Related Records
Times Cited By KSCI : 1  (Citation Analysis)
연도 인용수 순위
1 SungHak Chung, "A Study on the Improvement Alternatives using USN Technology on Bicycle and Infrastructures", Journal of The Korea Society of Computer and Information, Vol. 15, No. 8, pp. 173-180, Aug. 2010.   과학기술학회마을   DOI   ScienceOn
2 Hyung Bong Lee, Lae-Jeong Park, Jung-Ho Moon, Tae-Yun Chung, "Design and Implementation of a TDMA-based Bidirectional Linear Wireless Sensor Network", Journal of KIISE : Computing Practices and Letters, Vol. 14, No. 4, pp. 341-351, Jun. 2008.
3 Hyung-Bong Lee, Jung-Ho Moon, and Tae-Yun Chung, "An Image-based Remote Snow Height Measurement System using a USN", Journal of IEMEK, Vol 2, No. 2, pp. 76-85, Nov. 2010.
4 C. Hallinan, "Embedded Linux Primer, Second Edition" PRENTICE HALL, pp. 9-35, 2011.
5 Hyung-Bong Lee, Ki-Hyeon Kwon, Lae-Jeong Park, Tae-Yun Chung, and Qishi Wuo, "A Lightweight Lap Time Measurement System for Alpine Ski Sport using a TDMA-based Linear-Wireless Sensor Network", International Journal of Distributed Sensor Network(IJDSN), Vol. 2012, pp. 1-15, Mar. 2012.
6 Hyung-Bong Lee, Lae-Jeong Park, Sung-Wook Park, Tae-Yun Chung, and Jung-Ho Moon, "Interactive Remote Control of Legacy Home Appliances through a Virtually Wired Sensor Network", IEEE Transactions on Consumer Electronics, Vol. 56, Issue 4, pp. 2241-2248, Dec. 2010.   DOI   ScienceOn
7 Hyung-Bong Lee, "Synchronization of Timers in Embedded Systems", Proceedings of the 39th KIPS Spring Conference 2013, Vol. 20, No. 1, pp. 13-14, May 2013.
8 Atmel Corporation, "8-bit Microcontroller with 64K/128K/256K Bytes In-System Programmable Flash", Atmel Documents, 2012. (http://www.atmel.com/Images/doc2549.pdf, accessed May. 2013)
9 WinAvr Projects, http://winavr.sourceforge.net/, accessed May 2013.
10 Atmel Corporation, "AVR Studio 4.19", Atmel Tools, 2012. (http://www.atmel.com/tools/STUDIOARCHIVE.aspx, accessed May. 2013)