Monday, September 7, 2015

KTechlab: An Integrated Development Environment

KTechlab: An Integrated Development Environment

Being an integrated development environment (IDE) for PIC microcontrollers and electronics, KTechlab essentially enables you to do design and simulation tasks. It is an open source software released under the terms of General Public License v2 (GNU GPL).

Sneha Ambastha 


KTechlab presents an integrated environment for electronic design and automation (EDA) tasks. It is considered to be an educational tool to design and simulate circuits related to PIC microcontrollers and other electronics. KTechlab features an extensive circuit designer that helps auto-routing along with simulation of logic elements and common electroniccomponents.
KTechlab features include:
1. Allows auto-routing and supports real-time simulation and debugging
2. Enables use of C, Assembly and high-level programming languages
3. Provides a pictorial format for microcontroller programming

 
 Fig. 1: KTechlab 

Many-in-one design tool
KTechlab has several components well integrated to help designers. Some of these are described below:

Circuit Simulator. It can simulate linear devices, non-linear devices and logics too. KTechlab can further be integrated with external simulators like gpsim so as to allow in-circuit simulation of PICs.

Editor. It can act as a schematic editor to provide a rich and real-time feedback of the simulation.

 
 Fig. 2: Visual Editor

Visual Editor. It has a flowchart editor that allows KTechlab to construct PIC programs visually. This makes it easy to program a microcontroller. The editor provides a microcontroller with all its ports defined as input or output. A designer can easily program that microcontroller by dragging arrows from those ports or by drawing a flowcode for those ports.

For example, let us program a PIC16F84 microcontroller to blink an LED. To do that, we will have to set any one port as output. Let us do that for PORTB,0 pin. The two ways in which it can be programmed are:

 
 Fig. 3: Compilation and simulation side by side

1. Click the arrow on the PORTB,0 pin and drag it to the left.

2. Click ‘advanced’ on the microcontroller and set PORTB,0 pin as output by resetting last bit te of te tris register of port B. Then draw the flowcode and save it.

Compiler. KTechlab has a high-level programming language called Microbe. It is basically a compiler for the PIC microcontrollers. Due to its similarity to Basic language, it is also called MicroBasic. It acts as a companion program to KTechlab. PIC16F84, PIC16F628, PIC16F627 and PIC16F877 are the microcontrollers’ Microbe supports.

Assembler and disassembler. KTechlab can integrate both an assembler and a disassembler via gpasm and gpdasm.

What users think about this tool

  
Every designer reviews a tool before using it, in order to check if it would be of any use to him. No one can get a better review than from the users and the developers themselves. Following are the remarks from sourceforge.net, kde-apps.org and edaboard.com communities:

1. “This is terrific program. Comparable to MultiSim by National Instruments. I use it on Kubuntu 9.04 AMD64. I plan on installing it on my laptop with Kubuntu 10.4 to see how it works. Thanks for a great program. Keep up the good work.”

2. “Great application that’s a pleasure to use! It compiled and ran perfectly on SUSE 10.2. Now if we can just get PCB design support, that would be fantastic!”

Download latest version of the software: click here
How to install KTechlab
Following is the way to compile and then install KTechlab on Linux:
1. Use a terminal and navigate to the top-level source directory
2. Run the shell script:

simple-setup.sh

This command compiles KTechlab into the directory simple-build, installs it into the directory simple-install and sets up the user-specific settings (syscoca, mime database) for the current user.

sh simple-setup.sh3. Launch KTechlab by running the script simple-launch.sh

sh simple-launch.sh

KTechLab should start running at this point.

 
Installing KTechlab on Ubuntu. We can also install this tool on the latest version of Ubuntu. However, we need to use the Debian version:

http://launchpadlibrarian.net/
50881922/ktechlab_0.3.7-9ubuntu1_
i386.deb


To download this package we have to install wget:

apt-get install wget

Then we can download ktechlab_0.3.7-9ubuntu1_i386.deb using the command:

wget-http://old releases.ubuntu.com/
ubuntu/pool/universe/k/ktechlab/
ktechlab_0.3.7-9ubuntu1_i386.deb


Enter the following command to install ktechlab_0.3.7-9ubuntu1_i386.deb:

dpkg -i ktechlab_0.3.7-9ubuntu1_i386.
deb


A claim of dependence will appear as libpopt0, but we can ignore it.
After the installation, exit the Ubuntu Lucid:

exitNow, to run KTechlab enter the command:

schroot p Ktechlab

Allowing multiple users on same build. An already compiled and installed version of KTechlab allows multiple-user access. In order to do this, run the script:

ktechlab-user-setup.shfrom the simple-install/bin/ directory:

sh simple/install/bin/ktechlab-user-
setup.sh
Then you can launch KTechlab as usual:

sh simple-launch.sh


Source : http://electronicsforu.com/electronicsforu/circuitarchives/view_article.asp?sno=2451&title%20=%20KTechlab%3A+An+Integrated+Development+Environment&id=13868&article_type=15&b_type=new

No comments: