Why use C?
The C language was development at Bell Labs in the early 1970’s by Dennis Ritchie and Brian Kernighan. One of the first platforms for implementation was the PDP-11 running under a UNIX environment.
Since its introduction, it has evolved and been standardized throughout the computing industry as an established development language. The PC has become a cost effective development platform using C++ or other favored versions of the ANSI standard.
C is a portable language intended to have minimal modification when
transferring programs from one computer to another. This is fine when working with PC’s and mainframes, but Microcontrollers and Microprocessors are different breed. The main program flow will basically remain unchanged, while the various setup and port/peripheral control will be micro specific. An example of this is the port direction registers on a PICmicro MCU are set 1=Input 0=Output, whereas the H8 is 0=Input and 1=Output.
The use of C in Microcontroller applications has been brought about by
manufacturers providing larger program and RAM memory areas in addition to faster operating speeds. An example quoted to me – as a non believer – was: to create a stopclock function would take 2/3 days in C or 2 weeks in assembler.
‘Ah’ I hear you say as you rush to buy a C compiler – why do we bother to write in assembler? It comes down to code efficiency – a program written in assembler is typically 80% the size of a C version. Fine on the larger program memory sized devices but not so efficient on smaller devices. You pay the money and take you PIC!!
Keyword :
microcontroller ,pic microcontroller ,microcontrollers ,microcontroller programming ,variables ,tutorial ,the c programming language ,registers ,memory ,language ,how to ,embedded systems ,embedded microcontroller ,download ,c programming ,c language ,c compiler ,winavr ,unsigned char ,tutorials ,sponsored links ,software ,project ,programming microcontrollers in c ,programmers ,programmer ,pointers ,source code ,programming language ,programming in c ,picmicro ,pic microcontrollers ,peripherals ,operators ,mplab ide ,microprocessors ,microcontroller beginner ,microchip ,memory model ,interfacing ,instruction ,expression ,embedded software ,embedded microcontrollers ,embedded c programming ,embedded c ,controllers ,controller ,configuration ,compilers ,classes ,c tutorial ,c programming tutorial ,c compilers ,beginner’s guide ,avr microcontroller ,avr butterfly ,assembly language programming ,assembly language ,assembly ,arduino ,architecture , microcontrollers , microcontroller.

