Tel: (519) 746-7178
Email: info@lumousoft.com
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.
Figure 1 Comment Display 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.
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.
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:
Figure 5 Assembly codes
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.