DOI QR코드

DOI QR Code

Efficient Programming Method in Microcontrollers for Improving Latency

지연시간을 개선하기 위한 마이크로 컨트롤러의 효율적인 프로그래밍 방법

  • Lee, Kyungnam (Dept. of Com. & Info. Eng. Kwangwoon University) ;
  • Kim, Youngmin (Dept. of Com. & Info. Eng. Kwangwoon University)
  • Received : 2019.09.06
  • Accepted : 2019.09.26
  • Published : 2019.09.30

Abstract

Most of the electronics we use today have built-in microcontrollers, which are called embedded systems. In such a small environment, responsiveness is very important for the microcontroller. In this paper, the basic input/output control, timer/counter interrupt operation principle, and understanding of the microcontroller are described. Program logic is proposed to improve throughput and latency by controlling characteristics of service routine and program execution order. The hardware simulations in this paper were verified using ATmega128 and PIC16F877A from Atmel and Microchip.

오늘날 우리가 사용하고 있는 대부분의 전자제품에는 마이크로 컨트롤러가 내장되어 있으며, 이를 내장한 미니컴퓨터를 임베디드 시스템이라고 한다. 이러한 소규모 환경에서는 마이크로 컨트롤러에 응답성이 매우 중요한데 본 논문에서는 마이크로 컨트롤러에 기본적인 입출력 제어, 타이머/카운터 인터럽트 동작원리 및 이해에 대한 내용과 더불어 마이크로 컨트롤러 내의 플래시메모리에 각 프로그램 실행 루틴인 메인 루틴 및 인터럽트 서비스루틴에 대한 특징 및 프로그램 실행 순서를 컨트롤하여 처리율과 레이턴시를 개선하는 프로그램 로직을 제안하고 있다. 본 논문에서의 하드웨어 시뮬레이션은 아트멜사와 마이크로칩사에서 출시한 ATmega128과 PIC16F877A 마이크로 컨트롤러를 이용하여 검증이 실시되었다.

Keywords

References

  1. S. Sachdeva and R. Singh, "Low cost-low speed oscilloscope using graphical lcd and atmega 128 microcontroller," International Journal of Research in Engineering and Technology (IJRET), vol.3, no.6, pp.123-126, 2014. DOI: 10.15623/ijret.2014.0306022
  2. N Senthil Kumar, M Saravanan, S Jeevananthan, and Satish Shah, "Microprocessors and Interfacing," Oxford: university press, pp.391-392, 2012.
  3. M. Sani, M. Rahman, M. Noor, K. Kadirgama, and M. Izham, "Iop conference series: Materials science and engineering," 2011.
  4. G. Gridling and B. Weiss, "Introduction to microcontrollers," Vienna University of Technology Institute of Computer Engineering Embedded Computing Systems Group, 2007.
  5. Microchip, ATmega128 Datasheet, https://www.microchip.com/wwwproducts/en/ATmega128.
  6. R. Hari Sudhan, M. Ganesh Kumar, A. Prakash, S. Roopa Devi, and P. Sathiya, "ARDUINO ATMEGA-328 MICROCONTROLLER, INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH (IJIREEICE), Vol.3, no.4, pp. 27-29, 2015.
  7. X. Chen, G. Yu and H. Cheng, "Approach to External Events of Real-Time Operating System Based on Polling," 2010 Second International Conference on Computer Modeling and Simulation, Sanya, Hainan, 2010. DOI: 10.1109/ICCMS.2010.312
  8. D. Brylow and J. Palsberg, "Deadline analysis of interrupt-driven software," in IEEE Transactions on Software Engineering, vol.30, no.10, pp.634-655, 2004. DOI: 10.1109/TSE.2004.64
  9. G. J. Lipovski, "Introduction to microcontrollers: architecture, programming, and interfacing for the freescale 68hc12," 2004.