Search 8052.com...
and the web!
User (Email)
Password
Forgot password?
Create Account
8052 TCP/IP
8052 CD-ROM
A D V E R T I S E M E N T - Please visit our sponsors to support this site
2002-04-15
24-bit data acquisition system from TI delivers industry's highest performance and integration
2002-03-27
Ceibo & Keil Offers 8051 C++ Compiler
2002-03-04
Altium significantly reduces entry point for 8051 embedded developers
Currently online:
15
guests and the following registered users:
maziar navahan
8051 Tutorial Index
Introduction
Introduction
Chapter 1 -
Types of Memory
Code Memory
Internal RAM
External RAM
Special Function Registers (SFRs)
Bit Memory
Chapter 2 -
Special Function Registers
What are SFRs?
Types of SFRs
Standard SFR Descriptions
Non-Standard SFRs
Chapter 3 -
Basic Registers
The Accumulator
"R" Registers
B Register
Data Pointer (DPTR)
Program Counter (PC)
Stack Pointer (SP)
Chapter 4 -
Addressing Modes
Immediate Addressing
Direct Addressing
Indirect Addressing
External Direct Addressing
External Indirect Addressing
Chapter 5 -
Program Flow
Conditional Branching
Direct Jumps
Direct Calls
Return from Subroutines
Interrupts
Chapter 6 - Low-Level Information
Instruction Set, Timing, and Low-Level Info
Chapter 7 -
Timers
How Timers Count
Measuring Time
How Long do Timers Take to Count?
Timer SFRs
TMOD SFR
Mode 0 - 13-bit Timer
Mode 1 - 16-bit Timer
Mode 2 - Auto-reload Timer
Mode 3 - Split Timer
TCON SFR
Initializing a Timer
Reading a Timer
Reading a Timer Value
Detecting a Timer Overflow
Timing the Length of an Event
Timers as Event Counters
Chapter 8 -
Serial Port Operation
Setting the Serial Port Mode
Setting the Baud Rate
Writing to the Serial Port
Reading from the Serial Port
Chapter 9 -
Interrupts
Events that trigger Interrupts
Setting Up Interrupts
Polling Sequence
Interrupt Priorities
What Happens When an Interrupt Occurs?
What Happens When an Interrupt Ends?
Serial Interrupts
Register Protection
Common Bugs in Interrupts
Additional Features in 8052
Introduction to 8052
256 bytes of additional Internal RAM
New SFRs for 8052's Third Timer
T2CON SFR
Timer 2 as a Baud-Rate Generator
Timer 2 in Auto-Reload Mode
Timer 2 in Capture Mode
Timer 2 Interrupt
Reference
8052 Instruction Set
SUGGESTIONS? COMMENTS? CORRECTIONS?
We've made every effort to make this tutorial as complete, accurate, and easy to read as possible. However, if you have any suggestions, comments, or corrections, please
e-mail us and let us know.
(C) Copyright 1997 - 2001 by
Vault Information Services
. All Rights Reserved.
Information provided "as-is" without warranty. Please
see details
.
Contact us
for usage and copy permission.