Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
40Activity
0 of .
Results for:
No results containing your search query
P. 1
Programming in C

Programming in C

Ratings: (0)|Views: 1,946|Likes:
Published by api-19646376

More info:

Published by: api-19646376 on Nov 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Home Automation, Networking, and Entertainment Lab
Dept. of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
Chung-Ping Young
\u694a\u4e2d\u5e73
8051 PROGRAMMI NG I N C
The 8051 Microcontroller and Embedded
Systems: Using Assembly and C
Mazidi, Mazidi and McKinlay
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
2
HANEL
WHY
PROGRAM
8051 I N C
\ue001Compilers produce hex files that is
downloaded to ROM of microcontroller
\ue002The size of hex file is the main concern
\ue000Microcontrollers have limited on-chip ROM
\ue000Code space for 8051 is limited to 64K bytes
\ue001C programming is less time consuming,
but has larger hex file size
\ue001The reasons for writing programs in C
\ue002I t is easier and less time consuming to
write in C than Assembly
\ue002C is easier to modify and update
\ue002You can use code available in function
libraries
\ue002C code is portable to other microcontroller
with little of no modification
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
3
HANEL
DATA TYPES
\ue001A good understanding of C data types
for 8051 can help programmers to
create smaller hex files

\ue002Unsigned char
\ue002Signed char
\ue002Unsigned int
\ue002Signed int
\ue002Sbit (single bit)
\ue002Bit and sfr

Activity (40)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
mayur151088 liked this
Sharon Ci liked this
Sanidhya Mohan liked this
Milos MaTa Matic liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->