Lumousoft
  • Home
  • Products
  • Support
    • FAQs
    • Learning
  • About Us
  • Contact Us
  • Products & Consulting

    • PIC

    • Splitwasher Basic
    • Splitwasher Premium
    • ARM

    • Under Development
    • CONSULTING

    • Embedded project
    • Others
  • What's News

  • Lumousoft Inc. is specializing in graphic language design for embedded system. It has own compiler which is suitable for graphic and RTOS. Lumousoft graphic language is 100% module-based language even its library is built in module without the interaction of other language.
  • Free Download

  • Lumousoft Splitwasher 2018 for PIC
  • And More

  • Why Lumousoft
  • Learning Center
  • FAQs
  • About Us
  • Contact Us
  • Send us message

  • Tel: (519) 746-7178

  • Email: info@lumousoft.com

A simple block code example – library code and a simple main code

The following block code is from Lumousoft GMIDE PIC library, which is used to handle addition operation. The data type of variable to be handled can be 1-byte, 2-bytes, 4-bytes or 8- bytes and constant (signed or unsigned). The variable can also be either in the form of direct or indirect address. In the graphic program each block can be either displayed in comment or code. The figure 1 and figure2 respectively show comment and code display.

Comment Format

Figure 1 Comment Display Format

Code Format

Figure 2 Code Display Format

The comment and code display format can be flipped through the block management dialog. Clicks on the block that you want to change the display format, the following dialog pops up as shown in figure 3.

In block management dialog as shown in figure 3, the code is written in the upper left text editor block, on the right hand site it is the tab for variable setup. The bottom tab is used for comment edition and displaying message from system compilation. Swap the display format of comment or code just is simply by clicking on the radio button on the middle right hand side.

Code Format

Figure 3 Block Manager Dialog

The right figure is a vary simple example for addition of “ a=b+c ”. The variable ‘ a ’ is int data type ( 4-bytes) ; ‘ b ’ is short type(2-bytes), and the ‘ c ’ is char type(1-byte) . On the left hand side of figure 4,the block is the libray files pic and pic1 that system include.

Main Module

Figure 4 Main Moudle Code

Click on the menu button “ compile ” on the top of GMIDE interface. The following assembly codes and machine codes will be generated as illustrated in below figure 5 and figure 6:

Assembly code

Figure 5 Assembly codes

Main Module

Figure 6 Machine Codes

This example shows that Lumousoft graphic software can display Pseudocode that is very helpful for software management and keep consistency with code. And lumousoft library is also made of graphic modules and be able to efficiently handle different data type and complicated algorithms.

©Lumousoft Inc. 2013 - 2018.   

Links

Elektronik Forum EEWeb : EEWEb Germany is an online community for electronics and electrical engineers and hobbyist. It offers electrical engineering and electronics forum. It also has electrical and electronic design articles, and resources in the area of RF design, analog design, embedded design, PCB design, test and measure.

Power Electronics News: Power Electronics News offers electrical engineering news focused on Power and Power solutions. Up to date solutions and products featuring the latest innovations in power solutions.

PCBWeb : A free CAD application for designing and manufacturing electronics hardware.