Skip to Main Content
8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
book

8051 Microcontroller (Internals, Instructions, Programming and Interfacing)

by Subrata Ghosal
May 2024
Intermediate to advanced content levelIntermediate to advanced
503 pages
17h 2m
English
Pearson India
Content preview from 8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
APPENDIX B
8051 Programs Using C
Although the usage of assembly language for any processor delivers most compact and effi cient codes, in
some cases, high-level languages, such as C, are used for code development. In such cases, a porting issue
would be coming to convert the high-level source code into the target processor’s code. In this appendix,
we take several problems and solve them using C. Note that these C codes are not going to change much
if the microcontroller (8051) is changed. In most cases, the included fi lename is to be changed to generate
the code of the target processor and some registers’ names are to be modifi ed. It is needless to mention that
these codes would need more memory area of the processor and may not be optimum in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

Subrata Ghoshal

Publisher Resources

ISBN: 9781282655034Publisher Website