The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN

WHY HANEL


PROGRAM 8051 IN C


‰Compilers produce hex files that is downloaded to ROM of microcontroller


¾The size of hex file is the main concern


ƒMicrocontrollers have limited on-chip ROMƒCode space for 8051 is limited to 64K bytes


‰C programming is less time consuming, but has larger hex file size‰The reasons for writing programs in C


¾It is easier and less time consuming to write in C than Assembly¾C is easier to modify and update¾You can use code available in function libraries¾C code is portable to other microcontroller with little of no modification

Free download pdf