Product specification
File under Integrated Circuits, IC20
1997 Dec 15
Philips SemiconductorsProduct specification
8-bit microcontrollers
CONTENTS
1FEATURES
2GENERAL DESCRIPTION
3QUICK REFERENCE DATA
4ORDERING INFORMATION
5BLOCK DIAGRAM
6FUNCTIONAL DIAGRAM
7PINNING INFORMATION
7.1Pinning
7.2Pin description
8FUNCTIONAL DESCRIPTION
8.1General
8.2Instruction Set Execution
9MEMORY ORGANIZATION
9.1Program Memory
9.2Internal Data Memory
9.3Addressing
10I/O FACILITIES
11TIMERS/COUNTERS
11.1Timer 0 and Timer 1
11.1.1Timer/Counter Mode Control register (TMOD)
11.1.2Timer/Counter Control Register (TCON)
11.2Timer 2
11.2.1Timer 2 Control Register (T2CON)
11.2.2Capture Mode
11.2.3Automatic Reload Mode
11.2.4Baud Rate Generator Mode
11.3Watchdog Timer T3
12SERIAL PORT (UART)
12.1Serial Port Control Register (SCON)
12.2SM0 and SM1 operating modes (SCON)
13BIT-LEVEL I2C INTERFACE
13.1I2C Interrupt Register (S1INT)
13.2Single-bit Data Register with I2C Auto-clock
(S1BIT)
13.2.1Reading or Writing the S1BIT SFR
13.3Control and Status Register for the I2C-bus
(S1SCS)
14INTERRUPT SYSTEM
14.1Interrupt Enable Register (IE)
14.2Interrupt Priority Register (IP)
14.3Interrupt Vectors
P83C524; P80C528;
P83C528
15IDLE AND POWER-DOWN OPERATION
15.1Power Control Register (PCON)
15.2Idle Mode
15.3Power-down Mode
15.4Wake-up from Power-down Mode
16OSCILLATOR CIRCUIT
17RESET CIRCUIT
17.1Power-on reset
18INSTRUCTION SET
19LIMITING VALUES
20DC CHARACTERISTICS
21AC CHARACTERISTICS
21.1AC Characteristics 16 MHz version
21.2AC Characteristics 24 MHz version
22I2C CHARACTERISTICS (BIT-LEVEL)
23XTAL1 CHARACTERISTICS
24SERIAL PORT CHARACTERISTICS
25TIMING DIAGRAMS
25.1Timing symbol definitions
26PACKAGE OUTLINES
27SOLDERING
27.1Introduction
27.2DIP
27.2.1Soldering by dipping or by wave
27.2.2Repairing soldered joints
27.3PLCC and QFP
27.3.1Reflow soldering
27.3.2Wave soldering
27.3.3Repairing soldered joints
28DEFINITIONS
29LIFE SUPPORT APPLICATIONS
30PURCHASE OF PHILIPS I2C COMPONENTS
1997 Dec 152
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
1FEATURES
• 80C51 CPU
• 32 kbytes on-chip ROM, expandable externally to
64 kbytes Program Memory address space
• P83C524:
– 16 kbytes on-chip ROM, expandable externally from
32 kbytes to 64 kbytes Program Memory address
space (address space 16 k to 32 k not usable)
• P80C528:
– ROMless version of P83C528
• P83C528:
– 32 kbytes on-chip ROM, expandable externally from
32 kbytes to 64 kbytes Program Memory address
space
• EPROM versions are available: see separate data sheet
P87C524 and P87C528
• 512 bytes on-chip RAM, expandable externally to
64 kbytes Data Memory address space
• Four 8-bit I/O ports
• Full-duplex UART compatible with the standard 80C51
and the 8052
• Two standard 16-bit timer/counters
• An additional 16-bit timer (functionally equivalent to the
timer 2 of the 8052)
• On-chip Watchdog Timer (WDT) with an own oscillator
• Bit-level I2C-bus hardware serial I/O Port
• 7-source and 7-vector interrupt structure with 2 priority
levels
• Up to 3 external interrupt request inputs
• Two programmable power reduction modes (Idle and
Power-down)
• Termination of Idle mode by any interrupt, external or
WDT (watchdog) reset
• Wake-up from Power-down by external interrupt,
external or WDT reset
• ROM code protection
• XTAL frequency range: 3.5 MHz to 16 MHz and
3.5 MHz to 24 MHz
• All packaging pin-outs fully compatible to the standard
8051/8052.
2GENERAL DESCRIPTION
The P83C524 and P83C528 single-chip 8-bit
microcontrollers are manufactured in an advanced CMOS
process and are derivatives of the PCB80C51
microcontroller family. These devices provide architectural
enhancements that make them applicable in a variety of
applications in general control systems, especially in those
systems which need a large ROM and RAM capacity on
chip.
The P83C524 and P83C528 contain a non-volatile
16 k × 8 respectively 32 k × 8 read-only program memory,
a volatile 512 bytes × 8 read/write data memory, four 8-bit
I/O ports, two 16-bit timer/event counters (identical to the
timers of the 80C51), a 16-bit timer (identical to the timer 2
of the 8052), a multi-source, two-priority-level, nested
interrupt structure, two serial interfaces (UART and
bit-level I2C-bus), a watchdog timer (WDT) with a separate
oscillator, an on-chip oscillator and timing circuits. For
systems that require extra capability, the P83C524 and
P83C528 can be expanded using standard TTL
compatible memories and logic.
The device also functions as an arithmetic processor
having facilities for both binary and BCD arithmetic plus
bit-handling capabilities. The P83C524 and P83C528
have the same instruction set as the PCB80C51 which
consists of over 100 instructions: 49 one-byte, 46 two-byte
and 16 three-byte. With a 16 MHz crystal, 58% of the
instructions are executed in 750 ns and 40% in 1.5 µs.
Multiply and divide instructions require 3 µs.
1997 Dec 153
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
3QUICK REFERENCE DATA
SYMBOLPARAMETERCONDITIONMIN.MAX.UNIT
P83C524, P80C528, P83C528 (see characteristics tables for extended temperature range versions)
V
DD
I
DD
I
ID
I
PD
P
tot
T
stg
T
amb
4ORDERING INFORMATION
supply voltage range4.55.5V
supply current: operating modes 16 MHzVDD= 5.5 V, f
supply current: Idle mode 16 MHzVDD= 5.5 V, f
= 16 MHz−33mA
CLK
= 16 MHz−6mA
CLK
supply current: Power-down mode2V ≤ VPD≤ VDD max.−100µA
total power dissipation−1W
storage temperature range−65+150°C
operating ambient temperature range−40+85°C
EXTENDED
TYPE NUMBER
NAMEDESCRIPTIONVERSION
PACKAGE
TEMPERATURE
RANGE (°C)
FREQ.
(MHZ)
ROMless
P80C528EBPDIP40plastic dual in-line package;
P80C528EFP−40 to +85
40 leads (600 mil)
SOT129-10 to +703.5 to 16
P80C528IBP0 to +703.5 to 24
P80C528IFP−40 to +85
P80C528EBAPLCC44 plastic leaded chip carrier; 44 leadsSOT187-20 to +703.5 to 16
P80C528EFA−40 to +85
P80C528IBA0 to +703.5 to 24
P80C528IFA−40 to +85
P80C528EBBQFP44plastic quad flat package;
P80C528EFB−40 to +85
P80C528IBB0 to +703.5 to 24
44 leads (lead length 1.3 mm);
body 10 × 10 × 1.75 mm
SOT307-20 to +703.5 to 16
P80C528IFB−40 to +85
ROM
P83C524EBPDIP40plastic dual in-line package;
P83C524EFP−40 to +85
40 leads (600 mil)
SOT129-10 to +703.5 to 16
P83C524IBP0 to +703.5 to 24
P83C524IFP−40 to +85
P83C524EBAPLCC44 plastic leaded chip carrier; 44 leadsSOT187-20 to +703.5 to 16
P83C524EFA−40 to +85
P83C524IBA0 to +703.5 to 24
P83C524IFA−40 to +85
P83C524EBBQFP44plastic quad flat package;
P83C524EFB−40 to +85
P83C524IBB0 to +703.5 to 24
44 leads (lead length 1.3 mm);
body 10 × 10 × 1.75 mm
SOT307-20 to +703.5 to 16
P83C524IFB−40 to +85
1997 Dec 154
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
EXTENDED
TYPE NUMBER
P83C528EBPDIP40plastic dual in-line package;
P83C528EFP−40 to +85
P83C528IBP0 to +703.5 to 24
P83C528IFP−40 to +85
P83C528EBAPLCC44 plastic leaded chip carrier; 44 leadsSOT187-20 to +703.5 to 16
P83C528EFA−40 to +85
P83C528IBA0 to +703.5 to 24
P83C528IFA−40 to +85
P83C528EBBQFP44plastic quad flat package;
P83C528EFB−40 to +85
P83C528IBB0 to +703.5 to 24
P83C528IFB−40 to +85
NAMEDESCRIPTIONVERSION
40 leads (600 mil)
44 leads (lead length 1.3 mm);
body 10 × 10 × 1.75 mm
PACKAGE
TEMPERATURE
RANGE (°C)
SOT129-10 to +703.5 to 16
SOT307-20 to +703.5 to 16
FREQ.
(MHZ)
1997 Dec 155
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
7.2Pin description
Table 1 Pin description for P83C524, P80C528 and P83C528; see note 1
SYMBOL
DESCRIPTION
SOT 129-1 SOT 187-2 SOT 307-2
PIN
P1.0−P1.7 1 to 82−9
(1 n.c.)
1−3,
40−44
(39 n.c.)
Port 1: 8-bit quasi-bidirectional I/O Port. Port 1 can sink/source
one TTL (= 4 LSTTL) input. It can drive CMOS inputs without
external pull-ups, except P1.6 and P1.7 which have open drain
outputs.
RST9104RESET: a HIGH level on this pin for two machine cycles while the
oscillator is running, resets the device. An internal pull-down
resistor permits power-on reset using only a capacitor connected
. After a WDT overflow this pin is pulled HIGH while the
to V
DD
internal reset signal is active.
P3.0−P3.7 10−1711, 13−19
(12 n.c.)
5, 7−13
(6 n.c.)
Port 3: 8-bit quasi-bidirectional I/O Port with internal pull-ups.
Port 3 can sink/source one TTL (= 4 LSTTL) input. It can drive
CMOS inputs without external pull-ups.
Port 3 alternative functions:
RXD/data10115P3.0Serial Port data input (asynchronous) or data
input/output (synchronous)
TXD/clock 11137P3.1Serial Port data output (asynchronous) or clock output
(synchronous)
INT012148P3.2external interrupt 0 or gate control input for timer/event
counter 0
INT113159P3.3external interrupt 1 or gate control input for timer/event
counter 1
T0141610P3.4external input for timer/event counter 0
T1151711P3.5external input for timer/event counter 1
WR161812P3.6external data memory write strobe
RD171913P3.7external data memory read strobe.
The generation or use of a Port 3 pin as an alternative function is
carried out automatically by the P83C528 provided the associated
Special Function Register (SFR) bit is set HIGH.
XTAL2182014Crystal input 2: output of the inverting amplifier that forms the
oscillator. This pin left open-circuit when an external oscillator
clock is used (see Figures 22 and 23).
1997 Dec 1511
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
SYMBOL
DESCRIPTION
SOT 129-1 SOT 187-2 SOT 307-2
XTAL1192115Crystal input 1: input to the inverting amplifier that forms the
oscillator, and input to the internal clock generator. Receives the
external oscillator clock signal when an external oscillator is used
(see Figures 22 and 23).
PIN
V
SS
P2.0-P2.7 21−2824−31
202216Ground: circuit ground potential.
(23 n.c.)
18−25
(17 n.c.)
Port 2: 8-bit quasi-bidirectional I/O Port with internal pull-ups.
During access to external memories (RAM/ROM) that use 16-bit
addresses (MOVX @DPTR) Port 2 emits the high-order address
byte (A8 to A15). Port 2 can sink/source one TTL (= 4 LSTTL)
input. It can drive CMOS inputs without external pull-ups.
PSEN293226Program Store Enable output: read strobe to the external
program memory via Port 0 and Port 2. It is activated twice each
machine cycle during fetches from external program memory.
When executing out of external program memory two activations of
PSEN are skipped during each access to external data memory.
PSEN is not activated (remains HIGH) during no fetches from
external program memory .PSEN can sink/source 8 LSTTL inputs.
It can drive CMOS inputs without external pull-ups.
ALE303327Address Latch Enable output: latches the LOW byte of the
address during access to external memory in normal operation. It
is activated every six oscillator periods except during an external
data memory access. ALE can sink/source 8 LSTTL inputs. It can
drive CMOS inputs without an external pull-up.
EA3135
(34 n.c.)29(28 n.c.)
External Access input: when during RESET, EA is held at a TTL
HIGH level, the CPU executes out of the internal program ROM,
provided the program counter is less than 32768. When EA is held
at a TTL LOW level during RESET, the CPU executes out of
external program memory via Port 0 and Port 2. EA is not allowed
to float.
P0.0-P0.7 32−3936−4330−37Port 0: 8-bit open drain bidirectional I/O Port. It is also the
multiplexed low-order address and data bus during accesses to
external memory (AD0 to AD7). During these accesses internal
pull-ups are activated. Port 0 can sink/source 8 LSTTL inputs.
V
DD
404438Power supply: +5 V power supply pin during normal operation,
Idle mode and Power-down mode.
Note
1. To avoid a 'latch-up' effect at power-on, the voltage on any pin (at any time) must not be higher than VDD+0.5 V or
lower than VSS−0.5 V respectively.
1997 Dec 1512
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
8FUNCTIONAL DESCRIPTION
8.1General
The P83C524, P80C528 and P83C528 are stand-alone
high-performance microcontrollers designed for use in real
time applications such as instrumentation, industrial
control, medium to high-end consumer applications and
specific automotive control applications.
In addition to the 80C51 standard functions, the devices
provide a number of dedicated hardware functions for
these applications. The P83C524 and P83C528 are
control-oriented CPUs with on-chip program and data
memory. They can be extended with external program
memory up to 64 kbytes. They can also access up to
64 kbytes of external data memory. For systems requiring
extra capability, the P83C524 and P83C528 can be
expanded using standard memories and peripherals.
The P83C524, P80C528 and P83C528 have two software
selectable modes of reduced activity for further power
reduction: Idle and Power-down. The Idle mode freezes
the CPU while allowing the RAM, timers, serial ports and
interrupt system to continue functioning. The Power-down
mode saves the RAM contents but freezes the oscillator
causing all other chip functions to be inoperative except
the WDT if it is enabled. The Power-down mode can be
terminated by an external reset, a WDT overflow, and in
addition, by either of the two external interrupts.
9.1Program Memory
The program memory address space of the P83C528
comprises an internal and an external memory portion.
The P83C528 has 32 kbyte of program memory on-chip.
The program memory can be externally expanded up to 64
kbyte. If the EA pin is held HIGH, the P83C528 executes
out of the internal program memory unless the address
exceeds 7FFFH. Locations 8000H through 0FFFFH are
then fetched from the external program memory. If the EA
pin is held LOW, the P83C528 fetches all instructions from
the external program memory. Fig.6 illustrates the
program memory address space.
By setting a mask programmable security bit the ROM
content is protected i.e. it cannot be read out by any test
mode or by any instruction in the external program
memory space. The MOVC instructions are the only ones
which have access to program code in the internal or
external program memory. The EA input is latched during
RESET and is 'don't care' after RESET. This
implementation prevents reading from internal program
code by switching from external program memory to
internal program memory during MOVC instruction or an
instruction that handles immediate data. Table 2 lists the
access to the internal and external program memory by the
MOVC instructions when the security bit has been set to a
logical one. If the security bit has been set to a logical 0
there are no restrictions for the MOVC instructions.
8.2Instruction Set Execution
The P83C524, P80C528 and P83C528 use the powerful
instruction set of the 80C51. Additional SFRs are
incorporated to control the on-chip peripherals. The
instruction set consists of 49 single-byte, 46 two-byte and
16 three-byte instructions. When using a 16 MHz
oscillator, 64 instructions execute in 750 ns and 45
instructions execute in 1.5 s. Multiply and divide
instructions execute in 3 µs (see Chapter 18).
9MEMORY ORGANIZATION
The central processing unit (CPU) manipulates operands
in three memory spaces; these are the 64 kbyte external
data memory (of which the lower 256 bytes reside in the
internal AUX-RAM), 512 byte internal data memory
(consisting of 256 bytes standard RAM and 256 bytes
AUX-RAM) and the 64 kbyte internal and external program
memory.
handbook, halfpage
32767
(1)
16383
00
(1) Only for P83C524.
64 K
32768
INTERNAL
(EA = 1)
(EA = 1)
PROGRAM MEMORY
EXTERNAL
32767
Fig.6 Program Memory Address Space.
EXTERNAL
(EA = 0)
(EA = 0)
MBC456 - 1
1997 Dec 1513
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
Table 2 Internal and external program memory access with security bit set
INSTRUCTION
MOVC in internal program memoryYESYES
MOVC in external program memoryNOYES
9.2Internal Data Memory
The internal data memory is divided into three physically
separated parts: 256 byte of RAM, 256 byte of AUX-RAM,
and a 128 byte special function area (SFR). These parts
can be addressed as follows (see Table 3 and Fig.11):
• RAM 0 to 127 can be addressed directly and indirectly
as in the 80C51. Address pointers are R0 and R1 of the
selected register bank.
• RAM 128 to 255 can only be addressed indirectly.
Address pointers are R0 and R1 of the selected register
bank.
• AUX-RAM 0 to 255 is indirectly addressable as the
external data memory locations 0 to 255 with the MOVX
instructions. Address pointers are R0 and R1 of the
selected register bank and DPTR. When executing from
internal program memory, an access to AUX-RAM 0 to
255 will not affect the ports P0, P2, P3.6 and P3.7.
• the SFRs can only be addressed directly in the address
range from 128 to 255.
ACCESS TO INTERNAL
PROGRAM MEMORY
An access to external data memory locations higher than
255 will be performed with the MOVX DPTR instructions in
the same way as in the 80C51 structure, i.e. with P0 and
P2 as data/address bus and P3.6 and P3.7 as write and
read timing signals (see Figures 7, 8, 9 and 10). Note that
the external data memory cannot be accessed with R0 and
R1 as address pointer.
Fig.11 shows the internal and external data memory
address space. Fig.12 shows the Special Function
Register (SFR) memory map. Four 8-bit register banks
occupy locations 0 through 31 in the lower RAM area. Only
one of these banks may be enabled at a time. The next 16
bytes, locations 32 through 47, contain 128 directly
addressable bit locations.
The stack can be located anywhere in the internal 256 byte
RAM. The stack depth is only limited by the available
internal RAM space of 256 bytes. All registers except the
Program Counter and the four 8-bit register banks reside
in the SFR address space.
ACCESS TO EXTERNAL
PROGRAM MEMORY
Table 3 Internal data memory access
LOCATIONADDRESSED
RAM 0 to 127DIRECT and INDIRECT
RAM 128 to 255INDIRECT only
AUX-RAM 0 to 255INDIRECT only with MOVX
Special Function Register (SFR) 128 to 255DIRECT only
1997 Dec 1514
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
handbook, full pagewidth
S1S2S3S4S5S6S1S2S3S4S5S6
ALE
PSEN
RD
WR
P2P2 OUT
P0P0 OUT
one machine cycle
a. Without a MOVX.
handbook, full pagewidth
S1S2S3S4S5S6S1S2S3S4S5S6
cycle 1cycle 2
one machine cycle
MBC457
ALE
PSEN
RD
WR
P2P2 OUT
P0P0 OUT
b. With a MOVX to the AUX-RAM (read and write).
Fig.7 Internal program memory execution.
1997 Dec 1515
MBC458
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
handbook, full pagewidth
ALE
PSEN
RD
WR
P2
P0
handbook, full pagewidth
cycle 1cycle 2
S1S2S3S4S5S6S1S2S3S4S5S6
P2 OUTDPH OUT
P0 OUT
DPL
OUT
DATA
IN
P2 OUT
MBC459
a. With a MOVX to the External Data Memory (read).
cycle 1cycle 2
S1S2S3S4S5S6S1S2S3S4S5S6
ALE
PSEN
RD
WR
P2
P0
P2 OUTDPH OUT
P0 OUT
DPL
OUT
DATA OUT
b. With a MOVX to the External Data Memory (write).
Fig.8 Internal program memory execution (continued).
P2 OUT
MBC460
1997 Dec 1516
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
handbook, full pagewidth
ALE
PSEN
RD
WR
P2PCH OUT
P0
handbook, full pagewidth
ALE
one machine cycle
S1S2S3S4S5S6S1S2S3S4S5S6
PCH OUTPCH OUTPCH OUTPCH OUT
INST
IN
PCL
OUT
INST
IN
PCL
OUT
INST
IN
PCL
OUT
one machine cycle
INST
IN
PCL
OUT
a. Without a MOVX.
cycle 1
S1S2S3S4S5S6S1S2S3S4S5S6
cycle 2
MBC461
PSEN
RD
WR
P2PCH OUT
P0
P2
P0
INST
IN
PCH OUTPCH OUTADDRH OUTPCH OUT
INST
IN
PCH OUTADDRH OUTPCH OUT
PCL
OUT
PCL
OUT
INST
IN
INST
IN
ADDRL
OUT
ADDRL
OUT
(read)
DATA OUT
(write)
b. With a MOVX to the AUX-RAM (read and write).
Fig.9 External program memory execution.
PCL
OUT
PCL
OUT
MBC462
1997 Dec 1517
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
handbook, full pagewidth
ALE
PSEN
RD
WR
P2PCH OUT
P0
handbook, full pagewidth
INST
cycle 1
S1S2S3S4S5S6S1S2S3S4S5S6
PCH OUTDPH OUTPCH OUT
IN
PCL
OUT
INST
IN
DPL
OUT
DATA
IN
cycle 2
PCL
OUT
a. With a MOVX to the External Data Memory (read).
cycle 1
S1S2S3S4S5S6S1S2S3S4S5S6
cycle 2
MBC463
ALE
PSEN
RD
WR
P2PCH OUT
P0
INST
IN
PCH OUTDPH OUTPCH OUT
PCL
OUT
INST
IN
DPL
OUT
b. With a MOVX to the External Data Memory (write).
Fig.10 External program memory execution (continued).
1997 Dec 1518
DATA OUT
PCL
OUT
MBC464
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
SHARED
ADDRESS LOCATION
handbook, full pagewidth
FF
00
AUX - RAM
256 BYTES
FFFF
UPPER
128 BYTES
INTERNAL
RAM
80
7F
LOWER
128 BYTES
INTERNAL
RAM
00
register
indirect
addressing
FUNCTION
REGISTERS
80
DATA MEMORY
SPECIAL
FFFF
0100
direct byte
addressing
EXTERNAL
DATA
MEMORY
MBC466 - 1
Fig.11 Internal and external data memory address space.
1997 Dec 1519
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
handbook, full pagewidth
REGISTER
MNEMONIC
BIT MNEMONIC /
BIT ADDRESS (HEX)
F7F6F5F4F3F2F1F0F0HB
E7E6E5E4E3E2E1E0
SCI/
SDI/
SCO
SDO
DF
CYD7ACD6FOD5RSID4RSOD3OVD2FID1P
TF2CFEXF2CERCLKCDTCLKCCEXEN2CBTR2
- - -BFPS1BEPT2BDPSBCPT1BBPX1BAPT0B9PX0
B7B6B5B4B3B2B1B0
EAAFES1AEET2ADESACET1ABEX1AAET0A9EX0
CLHDOBBDCRBFDBWBFDASTRD9ENS
DE
CA
C/T2
C9
CP/RL2
DIRECT BYTE
ADDRESS (HEX)
FFHT3
E0HACC
DAHS1INT
D9HS1BIT
D8
D8HS1SCS
D0
D0HPSW
CDHTH2
CCHTL2
CBHRCAP2H
CAHRCAP2L
C8HT2CON
C8
B8
B8HIP
B0HP3
A8
A8HIE
A5HWDCON
SM09FSM19ESM29DREN9CTB89BRB89ATI99RI
9796959493929190
TL1
TF18FTR18ETF08DTR08CIE18BIT18AIE089IT0
PCON
DPH
DPL
SP
8786858483828180
Fig.12 Special Function Register (SFR) memory map.
1997 Dec 1520
98
88
MBC465 - 1
A0HP2A7A6A5A4A3A2A1A0
99HSBUF
98HSCON
90HP1
8DHTH1
8CHTH0
8BH
8AHTL0
89HTMOD
88HTCON
87H
83H
82H
81H
80HP0
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
9.3Addressing
The P83C528 has five modes for addressing:
• Register
• Direct
• Register-Indirect
• Immediate
• Base-Register plus Index-Register-Indirect.
The first three methods can be used for addressing
destination operands. Most instructions have a
'destination/source' field that specifies the data type,
addressing methods and operands involved. For
operations other than MOVs, the destination operand is
also a source operand.
Access to memory addresses is as follows:
• Register in one of the four 8-bit register banks through
Register, Direct or Register-Indirect addressing.
• 512 bytes of internal RAM through Direct or
Register-Indirect addressing. Bytes 0-127 of internal
RAM may be addressed directly/indirectly. Bytes
128-255 of internal RAM share their address location
with the SFRs and so may only be addressed indirectly
as data RAM. Bytes 0-255 of AUX-RAM can only be
addressed indirectly via MOVX.
• SFR through Direct addressing at address locations
128-255.
• External data memory through Register-Indirect
addressing.
• Program memory look-up tables through Base-Register
plus Index-Register-Indirect addressing.
1997 Dec 1521
Philips SemiconductorsProduct specification
h
8-bit microcontrollersP83C524; P80C528; P83C528
10 I/O FACILITIES
The P83C528 has four 8-bit ports. Ports 0-3 are the same
as in the 80C51, with the exception of the additional
function of Port 1. Port lines P1.0 and P1.1 may be used
as inputs for Timer 2, P1.1 may also be used as an
additional (third) external interrupt request input. Port lines
P1.6 and P1.7 may be selected as the SCL and SDA lines
of Serial Port SIO1 (I2C). Because the I2C-bus may be
active while the device is disconnected from VDD, these
pins are provided with open drain drivers. Pins P1.6 and
P1.7 do not have pull-up devices when used as ports.
Ports 0, 1, 2, and 3 perform the following alternative
functions:
• Port 0: provides the multiplexed low-order address and
data bus used for expanding the P83C528 with standard
memories and peripherals.
• Port 1: pins can be configured individually to provide:
external interrupt request input (external interrupt 2);
external inputs for Timer/counter 2; SCL and SDA for
the I2C interface.
• Port 2: provides the high-order address bus when
expanding the P83C528 with external program memory
and/or external data memory.
• Port 3: pins can be configured individually to provide:
external interrupt request inputs (external interrupt 0/1);
external inputs for Timer/counter 0 and
Timer/counter 1; Serial Port receiver input and
transmitter output control-signals to read and write
external data memory.
Bits which are not used for the alternative functions may be
used as normal bidirectional I/O pins. The generation or
use of a Port 1 or Port 3 pin as an alternative function is
carried out automatically by the P83C528 provided the
associated SFR bit is HIGH. Otherwise the port pin is held
at a logical LOW level.
andbook, full pagewidth
2 oscillator
periods
from port latch
read port pin
Q
input data
strong pull-up
INPUT
BUFFER
p2
p1
n
p3
I1
+5 V
I/O PIN
PORT
MLA513
Fig.13 I/O buffers in the P83C528 (Ports 1, 2 and 3 except P1.6 and P1.7).
1997 Dec 1522
Philips SemiconductorsProduct specification
8-bit microcontrollersP83C524; P80C528; P83C528
11 TIMERS/COUNTERS
The P83C528 contains three 16-bit timer/counters, Timer
0, Timer 1 and Timer 2, and one 8-bit timer, the Watchdog
Timer T3. Timer 0, Timer 1 and Timer 2 may be
programmed to carry out the following functions:
• measure time intervals and pulse durations
• count events
• generate interrupt requests.
11.1Timer 0 and Timer 1
Timers 0 and 1 each have a control bit in TMOD SFR that
selects the timer or counter function of the corresponding
timer. In the timer function, the register is incremented
every machine cycle. Thus, one can think of it as counting
machine cycles. Since a machine cycle consists of 12
oscillator periods, the count rate is
frequency.
In the counter function, the register is incremented in
response to a HIGH-to-LOW transition at the
corresponding external input pin, T0 or T1. In this function,
the external input is sampled during S5P2 of every
machine cycle. When the samples show a HIGH in one
cycle and a LOW in the next cycle, the counter is
incremented. Thus, it takes two machine cycles (24
oscillator periods) to recognize a HIGH-to-LOW transition.
There are no restrictions on the duty cycle of the external
input signal, but to ensure that a given level is sampled at
least once before it changes, it should be held for at least
one full machine cycle.
1
⁄12 of the oscillator
When Timer 0 is in Mode 3, Timer 1 can be programmed
to operate in Modes 0, 1 or 2 but cannot set an interrupt
request flag and generate an interrupt. However, the
overflow from Timer 1 can be used to pulse the Serial Port
transmission-rate generator. With a 16 MHz crystal, the
counting frequency of these timer/counters is as follows:
• in the timer function, the timer is incremented at a
frequency of 1.33 MHz (oscillator frequency divided by
12).
• in the counter function, the frequency handling range for
external inputs is 0 Hz to 0.66 MHz.
Both internal and external inputs can be gated to the timer
by a second external source for directly measuring pulse
duration.
The timers are started and stopped under software control.
Each one sets its interrupt request flag when it overflows
from all logic 1's to all logic 0's (respectively, the automatic
reload value), with the exception of Mode 3 as previously
described.
Timer 0 and Timer 1 can be programmed independently to
operate in one of four modes:
Mode 0 8-bit timer/counter with divide-by-32 prescaler
Mode 1 16-bit timer/counter
Mode 2 8-bit timer/counter with automatic reload
Mode 3 Timer 0: one 8-bit timer/counter and one 8-bit
timer. Timer 1: stopped.
1997 Dec 1523
Loading...
+ 53 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.