An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

The book introduction: Compiler chain;C51 Basics - The 8051 Architecture; Declaring Variables And Constants; Program Structure And Layout; C Language Extensions For 8051 Programming; Pointers In C51; Accessing External Memory Mapped Peripherals ; Linking Issues And Stack Placement; Other C51 Extensions; Miscellaneous Points; Some C51 Programming Tricks; ...

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Mike Beach, Chris Hills

Hitex development tools

2003

Abstract

If you've flicked through this publication, you may be left thinking that it is necessary to be an expert to produce workable programs with C51. Nothing could be further from the truth. It is perfectly possible to write real commercial programs with nothing more than a reasonable knowledge of the ANSI C language.

However, to get the maximum performance from the 8051, knowing a few tricks is very useful. This is particularly true if you are working on a very cost-sensitive project where needing a bigger RAM or EPROM can result in an unacceptable on-cost. After all, if cost was not a consideration, we would all be using 80C166s and 68000s!

Whilst the C51 Primer is really aimed at users of the Keil C51 Compiler, it is applicable in part to compilers such as IAR and Tasking. However, as these compilers do not allow such low-level access and have fewer 8051-specific extensions, they are le ss likely to be used on projects where getting maximum performance is essential.

The C51 Primer Will Help You:

  • Find your way around the basic 8051 architecture.
  • Make a sensible choice of memory model and special things to watch out for.
  • Locate things at specific addresses.
  • Make best use of structures.
  • Use bit-addressable memory.
  • Think in terms of chars rather than ints.
  • Get the best out of the various pointer types.
  • Get a modular structure into programs.
  • Access on and off-chip ports and peripherals.
  • Deal with interrupts.
  • Use registerbanks.
  • Deal with the stack.
  • Understand RAM overlaying.
  • Interface to assembler code.
  • Use special versions like the 80C517 and 87C751.
  • Use assembler tricks in C.
  • Help the optimiser to produce the smallest, fastest code.

Citation

Mike Beach, Chris Hills, An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family, Hitex development tools, 2003

Collection

Ngành CÔNG NGHỆ KỸ THUẬT ĐIỆN – ĐIỆN TỬ (7510301)

Related document

An Introduction To The Use Of The Keil C51 Compiler On The 8051 FamilyFundamentals of electric circuits Building Automation: Communication Systems with EIB/KNX,LON and BACnet

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Fundamentals of electric circuits Building Automation: Communication Systems with EIB/KNX,LON and BACnet

QR code

An Introduction To The Use Of The Keil C51 Compiler On The 8051 Family

Content

  • Thứ Sáu, 09:36 06/05/2022

Tin tiêu điểm

PGS.TS Nguyễn Thị Hồng Nga, Giám đốc - Trung tâm Đào tạo Sau đại học trao tặng 02 đầu sách ngoại văn cho Trung tâm Thông tin - Thư viện

Thứ Sáu, 07:37 24/05/2024
Hướng dẫn khai thác Bộ sưu tập tài nguyên giáo dục mở (OER)

Hướng dẫn khai thác Bộ sưu tập tài nguyên giáo dục mở (OER)

Thứ Bảy, 15:58 04/05/2024

Truy cập hàng triệu sách điện tử miễn phí với The Online Books Page

Thứ Hai, 08:38 22/01/2024
5 khóa học miễn phí về thiết kế đồ họa

5 khóa học miễn phí về thiết kế đồ họa

Thứ Tư, 09:33 13/12/2023

7 khóa học “Kỹ thuật cơ khí” sinh viên ngành Cơ khí cần biết

Thứ Sáu, 13:57 08/12/2023

Các bài đã đăng

Electric Vehicle Efficient Power and Propulsion Systems

Thứ Ba, 13:54 02/07/2024

Smart Sustainable Manufacturing Systems

Thứ Ba, 13:47 02/07/2024

Green Technology and Renewable Energy Projects

Thứ Ba, 13:40 02/07/2024

Performance and Safety Enhancement Strategies in Vehicle Dynamics and Ground Contac

Thứ Ba, 13:30 02/07/2024

Keeping Autonomous Driving Alive

Thứ Ba, 13:22 02/07/2024

How to do Discourse Analysis: A Toolkit

Thứ Sáu, 09:27 06/05/2022

An Introduction to Discourse Analysis: Theory and Method (4th edition)

Thứ Sáu, 09:07 06/05/2022

Programming Language Pragmatics (Fourth Edition)

Thứ Sáu, 09:02 06/05/2022

Giải tích: Giáo trình lý thuyết và Bài tập có hướng dẫn giải – Tập 1

Thứ Năm, 18:06 05/05/2022

Đầu tư tài chính

Thứ Năm, 15:47 05/05/2022