This book provides a complete intermediate-level discussion of MICROCONTROLLER programming using
the C programming language. It covers both the adaptations to C necessary for targeting an
embedded environment, and the common components of a successful development project.
C is the language of choice for programming larger MICROCONTROLLERs (MCU), those based on 32-bit
cores. These parts are often derived
from their general-purpose
counterparts, and are both as
complex and feature-rich. As a result, C (and C++) compilers are necessary and readily available for
these MCUs.
是初學(xué)入們,嵌入式的好教材!@簡(jiǎn)單易懂
This sample displays a basic integer calculator powered
by the 8051 MICROCONTROLLER. Although Keil C51 has a
full floating point math library the evaluation version
is restricted to 2k of object code, so we have constrained
this sample to integer maths in order to fit within this limit.
The program for this design was written in C using the
Keil uVision 2 IDE for which Proteus VSM provides
a Debug Monitor driver.
Instructions for configuring Proteus to run in conjunction
with the Keil environment can be found by editing the
8051 MICROCONTROLLER on the schematic (point at it and
press CTRL-E) and then clicking on the help button
on the Edit Component dialogue form.
The P89LPC938 is a single-chip MICROCONTROLLER, available in low cost packages, based on
a high performance processor architecture that executes instructions in two to four clocks,
six times the rate of standard 80C51 devices. Many system-level functions have been
incorporated into the P89LPC938 in order to reduce component count, board space, and
system cost.
Abstract
A new intelligent milometer base on a MICROCONTROLLER can count the sum. By taking full use of the processor 89s51 and E² PROM (AT24C02) and sensor of magnetism, it can count the sum of fully distance and the course of development.