Visual microcontroller programming using extended S-system Petri nets

  • Authors:
  • Kok Mun Ng;Zainal Alam Haron

  • Affiliations:
  • Faculty of Electrical Engineering, Universiti Teknologi Mara, Shah Alam, Malaysia;Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Batu Pahat, Malaysia

  • Venue:
  • WSEAS Transactions on Computers
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we present the development work on a visual microcontroller programming tool based on an extended form of S-System Petri Nets (SSPN). By using the extended form of SSPNs we were able to describe in visual form subroutines, interrupts, I/O operations, arithmetic operations, and other programming constructs in a microcontroller application program. Construction of the visual programming tool included the development of a drawing editor which utilized directed graphs as internal model for created SSPN diagrams, and a parser to check for correct diagram and sentence syntax. The parser developed uses context-free diagram and string grammars for the diagram and sentence syntax checking, and upon successful parsing the tool automatically translates the SSPN-represented application program into assembly code for a target microcontroller.