10

Programming in C

Chapter Outline

  • Learn C programming for 8051
  • Learn the 8051 memory constitution, constants, variables and data types, arrays structures and unions, pointers, loops and decisions, functions, library functions, in-line assembly, modules and programs, presuming that the reader has prior knowledge in C and has read standard textbooks in C
  • Understand the C-compilers for 8051, program build process and development tools— GNU, SDCC and Keil
  • Learn the programming in C by examples
10.1 PROGRAMMING IN C

A C program consists of the following parts:

  1. preprocessor directives having include, define and typedef commands, global declarations and macros,
  2. main function and
  3. functions

10.1.1 Use of High-level Language Like‘C’

A high-level ...

Get Microcontrollers: Architecture, Programming, Interfacing and System Design, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.