Code Generation from JGrafchart to ATMEL AVR
Ana María Pinto Llorente · Lund University Publications Student Papers (Lund University) · 2005
This master thesis has been development at the Department of Automatic Control in Lund University between October 2003 and February 2004 under the supervision of Karl-Erik Årzen.The topic of this master thesis has been to investigate and implement the code generation for an AVR Mega8 microcontroller from JGrafchart, program development by the Department of Automatic Control.This project concerns two items. The first is the code generation for a subset of JGrafchart. The main goal is to obtain a C program that can be compiled for an ATMEL AVR Mega8 processor using the cross-compiler avr-gcc. The obtained program will follow the same execution model as JGrafchart. The second goal was to achieve a bidirectional communication between the host machine, a PC running JGrafchart, and the target machine, the AVR microcontroller. The on-line communication is necessary in order to provide animation of the execution in the target on the host and to provide user interface possibilities from the host to the target. To achieve the animation, a new execution model will be created in JGrafchart. Both, the code generation and the on-line communication have been development in Java language as part of JGrafchart.