International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 155 - Number 5 |
Year of Publication: 2016 |
Authors: Altaf Hussain, Muhammad Hamad, Kamran Hafeez, Tabinda Zainab |
10.5120/ijca2016912310 |
Altaf Hussain, Muhammad Hamad, Kamran Hafeez, Tabinda Zainab . Programming a Microcontroller. International Journal of Computer Applications. 155, 5 ( Dec 2016), 21-26. DOI=10.5120/ijca2016912310
Microcontroller is a computer on single integrated circuit that includes a CPU, RAM, some form of ROM, and I/O ports. It has great impact in our life which cannot be ignored. Unlike a general purpose computer, microcontrollers are dedicated to perform a specified task and execute single application. Automatically controlled products like automatic engine control systems, remote controls, power tools, toys, and office machines i.e. photo-copier, printer, and fax machines which are used commonly; are being programmed using microcontroller. Any person working in the field of electronics has the knowledge to use a microcontroller but not necessarily be having good programming skills for it. While programing for a microcontroller, one has to interact with different software tools i.e. Proteus for making circuit diagram, mikroC PRO for source coding, and QL-PROGen for burning hex file in microcontroller. So it is really a tough task to program a microcontroller for such persons. Our work aims to extend the automatic programmer tool [1] that generates mikroC code and its hex file from a block diagram. This enhanced tool provides an integrated platform that allows the user to design circuit diagram, generate its code, and burn the hex file directly into the microcontroller. It provides a set of blocks for business logics; that are used to build an algorithm of application as an input for source code generation. In addition, it provides the feature to compile the generated code and then to burn the hex file directly into the chip. The microcontrollers used in this tool are PIC18F442, PIC18F4520, and PIC18F542; placed in the middle of Circuit Diagram Window of this tool.