05-10-2012, 04:52 PM
The 8051 Microcontroller and Embedded Systems
_the_8051_microcontroller_and_embedded_systems_using_assembly_and_c-2nd-ed_by_mazidi.pdf (Size: 4.2 MB / Downloads: 129)
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
PIN DESCRIPTION
Port 0 is also designated as AD0-AD7,
allowing it to be used for both address
and data
When connecting an 8051/31 to an
external memory, port 0 provides both
address and data
The 8051 multiplexes address and data
through port 0 to save pins
ALE indicates if P0 has address or data
When ALE=0, it provides data D0-D7
When ALE=1, it has address A0-A7
EXPLAINING INTEL HEX FILE
Intel hex file is a widely used file
format
Designed to standardize the loading of
executable machine codes into a ROM chip
Loaders that come with every ROM
burner (programmer) support the Intel
hex file format
In many newer Windows-based
assemblers the Intel hex file is produced
automatically (by selecting the right
setting)