O'Reilly logo

Microcontrollers: Architecture, Programming, Interfacing and System Design, 2nd Edition by Raj Kamal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required