Module1 Embedded C
Module1 Embedded C
5/19/15
BICARD
N. P. PAWAR
Disadvantages of Assembly
Language
Difficult
BICARD
N. P. PAWAR
It
5/19/15
BICARD
N. P. PAWAR
Advantages of Embedded
C
Easy
to Portable
Easy to Modify
Easy to Understand the Code
Easy to used same code for other
Microcontroller
Disadvantage
Execution is slower
It Required More Memory
5/19/15
BICARD
N. P. PAWAR
Declaration in Embedded C
Example
8051 Microcontroller
For Port = sfr led=0x80
sfr=special function register
led =variable name
0x80 = Port 0 address
we can use same if,if-else,while,dowhile loops but for loop can be use like
this
for(i=0;i<100;i++);
5/19/15
BICARD
N. P. PAWAR