Académique Documents
Professionnel Documents
Culture Documents
External
Interrupts
Interrupt
control
ROM for
program
code
On-Chip
RAM
Timer/
counters
BUS
Control
I/O
Ports
Serial
Port
CPU
Oscillator
ROM
(byte)
RAM
(byte)
Timer/c
ounter
INT
Source
I/O
pins
pins
8951
4K
128
32
40
8952
8K
256
32
40
8953
12K
256
32
40
8955
20K
256
32
40
898252
8K
256
32
40
898051
1K
64
16
20
892051
2K
128
16
20
Interrupt priority
Interrupt enable
Serial data buffer register
Timer/Counter control register
Timer mode control register
Serial port control register
Power control register
ROM
EA = 1
0000
4K
On-Chip RAM: arranged in two parts;
128 byte internal data RAM
128 byte Special Function Register
FF
Special
Function
Register
7F
Internal
data
RAM
00
EA = 0
64K 1000
External
data
RAM
FFFF
80
00FF
12
crystal frequency
Tinst =
C1
XTAL1
30pF
C2
Quartz crystal
oscillator
XTAL2
30pF
GND
Data Pointer
The Data Pointer (DPTR), used to access external code or data memory, is a 16-bit
register at address 82h (DPL) and 83h (DPH).
The following three instructions write 55h into external RAM location 1000h:
MOV
MOV
MOVX
A, #55h
DPTR, #1000h
@DPTR, A
Carry Flag: CF is dual purpose bit. It is set 1 if there is a carry out of bit 7 during an add or
if there is a borrow into bit 7 during a subtract. CF is also the Boolean Accumulator
serving as a 1-bit register for Boolean operation.
Auxiliary Carry: When adding binary-coded-decimal (BCD) values, the AC flag is set if a
carry was generated out of bit 3 into bit 4.