Thursday, September 7, 2017

Embedded C

Embedded C

The General Term for Programming a Microcontroller or Embedded Device using ‘C’ programming language syntax is called Embedded C

Why and what is its convenience?
 The native Programming language for a Microcontroller is it’s Assembly instructions. It varies from Controller to controller and we Have to learn it’s own instructions to program each type. But if we use a Software tool called C cross Compiler for that particular Microcontroller we can program It using  C language syntax C is the most popular general purpose high level language mostly used for system level programming High level language means the capability to use  single consolidated statements to represent, many separate steps involved for commanding a processor to execute a task For example in C we can write if(Var1>var2) but in PIC Micro assembly we can’t do it Arbitrary memory address access and pointer arithmetic is an important feature that makes C a perfect fit for

INTRODUCTON TO C LANGUAGE

C is a structure oriented programming language used for developing system applications that forms a major portion of operating systems such as Windows, UNIX  and Linux The main advantage of C is that system management like operations more convenient in C because direct memory access which is a basic requirement when we deal with low level hardware C language is gradually replacing (or almost replaced, at least in some controllers) assembly language in many embedded applications because it has several advantages over native assembly language. The importance and convenience is so high that latest  microcontroller Architectures are designed to be specified as C friendly which means the instructions are prepared with a view that programming will be written in C  The most important one is that it allows us to work on the program logic at a level higher than the assembly  language; thus, programming productivity is greatly improved.