23.4Repairing soldered joints
24DEFINITIONS
25LIFE SUPPORT APPLICATIONS
1997 Apr 082
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
1FEATURES
• 80C51 Central Processing Unit
• 8 kbytes ROM, expandable externally to 64 kbytes
• 256 bytes RAM, expandable externally to 64 kbytes
• Two standard 16-bit timer/counters
• An additional 16-bit timer/counter coupled to four
capture registers and three compare registers
• An 8-bit ADC with 8 multiplexed analog inputs
• Two 8-bit resolution, Pulse Width Modulated outputs
• Five 8-bit I/O ports plus one 8-bit input port shared with
analog inputs
• Full-duplex UART compatible with the standard 80C51
• On-chip Watchdog Timer
• Oscillator frequency: 3.5 to 16 MHz.
2GENERAL DESCRIPTION
The P80C562/P83C562 (hereafter generally referred to as
P8xC562) single-chip 8-bit microcontroller is
manufactured in an advanced CMOS process and is a
derivative of the 80C51 microcontroller family.
The P8xC562 has the same instruction set as the 80C51.
Two versions of the derivative exist:
• With 8 kbytes mask-programmable ROM
• ROMless version of the P8xC562.
This I/O intensive device provides architectural
enhancements to function as a controller in the field of
automotive electronics, specifically engine management
and gear box control.
The P8xC562 contains a non-volatile 8 kbyte read only
program memory, a volatile 256 byte read/write data
memory, six 8-bit I/O ports, two 16-bit timer/event counters
(identical to the timers of the 80C51), an additional 16-bit
timer coupled to capture and compare latches, a
fourteen-source, two-priority-level, nested interrupt
structure, an 8-input ADC, a dual DAC with pulse width
modulated outputs, a serial interface (UART), a
Watchdog Timer and on-chip oscillator and timing circuits.
For systems that require extra capability, the P8xC562 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 instruction set consists of
over 100 instructions: 49 one-byte, 45 two-byte and
17 three-byte. With a 16 MHz crystal, 58% of the
instructions are executed in 0.75 µs and 40% in 1.5 µs.
Multiply and divide instructions require 3 µs.
3ORDERING INFORMATION
PACKAGE
TYPE NUMBER
NAMEDESCRIPTIONVERSION
P80CE562EHA
P80C562EBA
P80C562EFA
(1)
(1)
(1)
P83C562EHA/nnn
P83C562EBA/nnn
P83C562EFA/nnn
PLCC68 plastic leaded chip carrier; 68 leads SOT188-23.5 to 16−40 to +125
(2)
(2)
(2)
Notes
1. ROMless type.
2. ROM coded type; nnn denotes the ROM code number.
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
EA
ALE
PSEN
P2.7/A15
P2.6/A14
P2.5/A13
27
28
29
30
31
32
33
34
n.c.
n.c.
XTAL 2
P3.4/T0
P3.3/INT1
P3.5/T1
P3.7/RD
P3.6/WR
Fig.3 Pinning configuration for PLCC68 (SOT188-2) package.
1997 Apr 086
35
36
V
XTAL 1
SS
37
38
39
40
41
42
43
SS
n.c.
V
P2.0/A8
P2.1/A9
P2.3/A11
P2.2/A10
P2.4/A12
MBH349
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
6.2Pin description
Table 1 PLCC68 (SOT188-2)
To avoid latch-up at Power-on, the voltage at any pin at any time must lie within the range V
SYMBOLPINDESCRIPTION
V
DD
2Power supply, digital part (+5 V). Power supply pins during normal operation and
power reduction modes.
STADC3Start ADC operation: Input starting analog-to-digital conversion (ADC operation can
also be started by software). This pin must not float.
PWM04Pulse Width Modulation output 0.
PWM15Pulse Width Modulation output 1.
EW6Enable Watchdog Timer: enable for Watchdog Timer and disable Power-down mode.
This pin must not float.
P4.0/CMSR0
to
7to12P4.0 to P4.5: 8-bit quasi-bidirectional I/O port lines;
CMSR0 to CMSR5: Compare and Set/Reset outputs for Timer T2.
P4.5/CMSR5
P4.6/CMT013P4.6 to P4.7: 8-bit quasi-bidirectional I/O port lines;
P4.7/CMT114
CMT0 to CMT1: Compare and toggle outputs for Timer T2.
RST15Reset: Input to reset the P8x562; also generated when the Watchdog Timer overflows.
P1.0/CT0I
to
16 to 19P1.0 to P1.3: 8-bit quasi-bidirectional I/O port lines;
CT0I to CT3I: Capture timer inputs for Timer 2.
P1.3/CT3I
P1.4/T220P1.4: 8-bit quasi-bidirectional I/O port line;
WR30P3.6: 8-bit quasi-bidirectional I/O port line;
WR: External Data Memory Write strobe.
RD31P3.7: 8-bit quasi-bidirectional I/O port line;
P3.7/
RD: External Data Memory Read strobe.
n.c.32, 33Not connected.
XTAL234Crystal Oscillator Output: output of the inverting amplifier that forms the oscillator.
Left open-circuit when an external oscillator clock is used.
+0.5VtoVSS− 0.5 V.
DD
1997 Apr 087
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
SYMBOLPINDESCRIPTION
XTAL135Crystal Oscillator Input: 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.
V
SS
n.c.38Not connected.
P2.0/A08
to
P2.7/A15
PSEN47Program Store Enable: read strobe to the external program memory via Port 0 and 2.
ALE48Address Latch Enable: latches the low byte of the address during access of external
EA49External Access: if, during RESET, EA is HIGH the CPU executes out of the internal
P0.7/AD7
to
P0.0/AD0
AV
REF-
AV
REF+
AV
SS
AV
DD
P5.7/ADC7
to
P5.0/ADC0
36, 37Digital ground pins.
39 to 46P2.0 to P2.7: 8-bit quasi-bidirectional I/O port lines;
A08 to A15: High-order address byte for external memory.
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 and can drive CMOS inputs without external pull-ups.
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 and can drive
CMOS inputs without an external pull-up. To prohibit the toggling of the ALE pin (RFI
noise reduction) the RFI bit in the Power Control Register must be set by software.
program memory provided the program Counter is less than 8192. If, during RESET,
EA is LOW the CPU executes out of external program memory via Port 0 and Port 2.
EA is not allowed to float. EA is latched during RESET and don’t care after RESET.
50 to 57P0.7 to P0.0: 8-bit open drain bidirectional I/O port lines;
AD7 to AD0: Multiplexed Low-order address and Data bus for external memory.
58Low-end of ADC (analog-to-digital conversion) reference resistor.
59High-end of ADC (analog-to-digital conversion) reference resistor.
60Ground, analog part. For ADC receiver and reference voltage.
61Power supply, analog part (+5 V). For ADC receiver and reference voltage.
62 to 68,1P5.7 to P5.0: 8-bit input port lines;
ADC7 to ADC0: eight analog ADC inputs
1997 Apr 088
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
7FUNCTIONAL DESCRIPTION
The P8xC562 is a stand-alone high-performance
microcontroller designed for use in real-time applications
such as instrumentation, industrial control and specific
automotive control applications.
In addition to the 80C51 standard functions, the device
provides a number of dedicated hardware functions for
these applications.
The P8xC562 is a control-oriented CPU with on-chip
program and data memory. It can be extended with
external program memory up to 64 kbytes. It can also
access up to 64 kbytes of external data memory.
For systems requiring extra capability, the P8xC562 can
be expanded using standard memories and peripherals.
The P8xC562 has 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.
8MEMORY ORGANIZATION
The Central Processing Unit (CPU) manipulates operands
in three memory spaces; these are the 64 kbyte external
data memory, 256 byte internal data memory and the
64 kbyte internal and external program memory.
The internal data memory is divided into 3 sections: the
lower 128 bytes of RAM, the upper 128 bytes of RAM and
the 128 byte Special Function Register memory
(see Fig.4). Figure 5 shows the Special Function
Registers memory map. Internal RAM locations 0 to 127
are directly and indirectly addressable. Internal RAM
locations 128 to 155 are only indirectly addressable.
The Special Function Register locations 128 to 255 are
only directly addressable.
The internal data RAM contains four register banks (each
with eight registers), 128 addressable bits, a scratch pad
area and the stack. The stack depth is limited by the
available internal data RAM and its location is determined
by the 8-bit Stack Pointer. All registers except the Program
Counter and the four 8-register banks reside in the
Special Function Register address space. These memory
mapped registers include arithmetic registers, pointers,
I/O ports, interrupt system registers, ADC and PWM
registers, timers and serial port registers. There are
120 addressable bit locations in the SFR address space.
The P8xC562 contains 256 bytes of internal data RAM
and 52 Special Function Registers. It provides a
non-paged program memory address space to
accommodate relocatable code. Conditional branches are
performed relative to the Program Counter.
The register-indirect jump permits branching relative to a
16-bit base register with an offset provided by an 8-bit
index register. 16-bit jumps and calls permit branching to
any location in the contiguous 64 kbyte program memory
address space.
8.1Program Memory
The program memory address space of the P83C562
consists of internal and external memory. The P83C562
has 8 kbytes of program memory on-chip. The program
memory can be externally expanded up to 64 kbytes. If the
EA pin is held HIGH, the P83C562 executes out of the
internal program memory unless the address exceeds
1FFFH then locations 2000H through to 0FFFFH are
fetched from the external program memory. If theEA pin is
held LOW, the P83C562 fetches all instructions from the
external memory. Figure 4 illustrates the program
memory address space.
By setting a mask programmable security bit (i.e. user
dependent) the ROM content is protected i.e. it cannot be
read at any time 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.
TheEA input is latched during reset and is ‘don’t care’ after
reset. This implementation prevents from reading internal
program code by switching from the external program
memory to internal program memory during MOVC
instruction or an instruction that handles immediate data.
Table 2 lists the access to internal and external program
memory by the MOVC instructions when the security bit
has been set to a logic 1. If the security bit has been set to
a logic 0 there are no restrictions for the MOVC
instructions.
Table 2 Memory access by the MOVC instruction
MOVC
INSTRUCTION
MOVC in internal
program memory
MOVC in external
program memory
PROGRAM MEMORY ACCESS
INTERNALEXTERNAL
YESYES
NOYES
1997 Apr 089
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
8.2Addressing
The P8xC562 has five methods for addressing source
operands:
• 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 addressing is as follows:
• Registers in one of the four 8-register banks through
Register, Direct or Register-Indirect
handbook, full pagewidth
64K
• 256 bytes of internal data RAM through Direct or
Register-Indirect. Bytes 0 to 127 may be addressed
directly/indirectly. Bytes 128 to 155 share their address
locations with the SFR registers and so may only be
addressed indirectly as data RAM
• Special Function Registers through Direct at address
locations 128 to 255
• External data memory through Register-Indirect
• Program memory look-up tables through Base-Register
plus Index-Register-Indirect.
The P8xC562 is classified as an 8-bit device since the
internal ROM, RAM, Special Function Registers,
Arithmetic Logic Unit and external data bus are all 8-bits
wide. It performs operations on bit, nibble, byte and
double-byte data types.
Facilities are available for byte transfer, logic and integer
arithmetic operations. Data transfer, logic and conditional
branch operations can be performed directly on Boolean
variables to provide excellent bit handling.
8191
0
8192
INTERNAL
(EA = 1)
PROGRAM MEMORY
EXTERNAL
8191
0
EXTERNAL
(EA = 0)
OVERLAPPED SPACE
255
INDIRECT ONLY
127
DIRECT AND
INDIRECT
0
INTERNAL DATA MEMORY
Fig.4 Memory map.
SPECIAL
FUNCTION
REGISTERS
MBC745
64K
0
EXTERNAL
DATA MEMORY
1997 Apr 0810
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
DIRECT
handbook, full pagewidth
REGISTER
MNEMONIC
BIT ADDRESS
BYTE
ADDRESS (HEX)
T3
PWMP
PWM1
PWM0
IP1
RTE
STE
# TMH2
# TML2
CTCON
TM2CON
IEN1
ACC
PSW
# CTH3
# CTH2
# CTH1
# CTH0
CMH2
CMH1
CMH0
TM2IR
FFH
FEH
FDH
FCH
FEFFFD FC FB FA F9 F8
B
F6F7F5 F4 F3 F2 F1 F0
EEEFED EC EB EA E9 E8
E6E7E5 E4 E3 E2 E1 E0
Reserved for I
D6D7D5 D4 D3 D2 D1 D0
CECFCD CC CB CA C9 C8
2
C-bus
F8H
F0H
EFH
EEH
EDH
ECH
EBH
EAH
E8H
E0H
DBH
DAH
D9H
D8H
D0H
CFH
CEH
CDH
CCH
CBH
CAH
C9H
C8H
SFRs containing
directly addressable
bits
# ADCH
ADCON
# P5
P4
# denotes read-only registers
C6C7C5 C4 C3 C2 C1 C0
Fig.5 Special Function Register memory map.
1997 Apr 0811
C6H
C5H
C4H
C0H
MBH346
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
DIRECT
handbook, full pagewidth
REGISTER
MNEMONIC
BIT ADDRESS
BYTE
ADDRESS (HEX)
IP0
P3
# CTL3
# CTL2
# CTL1
# CTL0
CML2
CML1
CML0
IEN0
P2
S0BUF
S0CON
P1
TH1
TH0
TL1
TL0
TMOD
TCON
PCON
BEBFBD BC BB BA B9 B8
B6B7B5 B4 B3 B2 B1 B0
AEAFAD AC AB AA A9 A8
A6A7A5 A4 A3 A2 A1 A0
9E9F9D 9C 9B 9A 99 98
969795 94 93 92 91 90
8E8F8D 8C 8B 8A 89 88
B8H
B0H
AFH
AEH
ADH
ACH
ABH
AAH
A9H
A8H
A0H
99H
98H
90H
8DH
8CH
8BH
8AH
89H
88H
87H
SFRs containing
directly addressable
bits
DPH
DPL
SP
P0
# denotes read-only registers
868785 84 83 82 81 80
Fig.6 Special Function Register memory map (continued).
1997 Apr 0812
83H
82H
81H
80H
MGA151
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
9I/O FACILITIES
The P8xC562 has six 8-bit ports. Ports 0 to 3 are the same
as in the 80C51, with the exception of the additional
functions of Port 1. The parallel I/O function of Port 4 is
equal to that of Ports 1, 2 and 3. Port 5 has a parallel input
port function, but has no function as an output port.
Ports 0 to 5 perform the following alternative functions:
Port 0 Provides the multiplexed low-order address and
data bus used for expanding the P8xC562 with
standard memories and peripherals.
Port 1 is used for a number of special functions:
• 4 capture inputs (or external interrupt request inputs if
capture information is not utilized)
• External counter input
• External counter reset input.
Port 2 Provides the high-order address bus when
expanding the P8xC562 with external program
memory and/or external data memory.
Port 3 Pins can be configured individually to provide:
• External interrupt request inputs
• Counter inputs
• Serial port receiver input and transmitter output
• Control signals to READ and WRITE external data
memory.
Port 4 Can be configured to provide signals indicating a
match between timer counter T2 and its compare
registers.
Port 5 May be used in conjunction with the ADC interface.
Unused analog inputs can be used as digital inputs.
As Port 5 lines may be used as inputs to the ADC,
these digital inputs have an inherent hysteresis to
prevent the input logic from drawing too much
current from the power lines when driven by analog
signals. Channel-to-channel crosstalk should be
taken into consideration when both digital and
analog signals are simultaneously input to Port 5
(see Chapter 20).
All ports are bidirectional with the exception of Port 5 which
is an input port. Alternative function bits which are not used
may be used as normal bidirectional I/O pins.
The generation or use of a Port 1, Port 3 or Port 4 pin as
an alternative function is carried out automatically by the
P8xC562 provided the associated Special Function
Register bit is set HIGH.
In addition to the standard 8-bit ports, the I/O facilities of
the P8xC562 also include a number of special I/O lines.
handbook, full pagewidth
from port latch
input data
read port pin
2 oscillator
periods
Q
strong pull-up
INPUT
BUFFER
Fig.7 I/O buffers in the P8xC562 (Ports 2, 3, 4 and P1.0 to P1.5).
1997 Apr 0813
+5 V
p2
p1
n
p3
I/O PIN
PORT
I1
MLA513
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
10 PULSE WIDTH MODULATED OUTPUTS
Two pulse width modulated output channels are provided
with the P8xC562. These channels output pulses of
programmable length and interval. The repetition
frequency is defined by an 8-bit prescaler PWMP which
generates the clock for the counter. Both the prescaler and
counter are common to both PWM channels. The 8-bit
counter counts modulo 255 i.e. from 0 to 254 inclusive.
The value of the 8-bit counter is compared to the contents
of two registers: PWM0 and PWM1.
Provided the contents of either of these registers is greater
than the counter value, the output of PWM0 or PWM1 is
set LOW. If the contents of these registers are equal to, or
less than the counter value, the output will be HIGH.
The pulse width ratio is therefore defined by the contents
of the registers PWM0 and PWM1.
handbook, full pagewidth
The pulse width ratio is in the range of 0 to 255/255 and
may be programmed in increments of 1/255.
When using an oscillator frequency of 16 MHz for
example, the above formula would give a repetition
frequency range of 123 Hz to 31.4 kHz.
By loading the PWM registers with either 00H or FFH, the
PWM outputs can be retained at a constant HIGH or LOW
level respectively. When loading FFH to the PWM
registers, the 8-bit counter will never actually reach this
value. Both
PWMn output pins are driven by push-pull
drivers, and are not shared with any other function.
PMW0
I
N
T
f
E
R
N
A
L
B
U
S
osc
1/2
PRESCALER
PWMP
8-BIT COMPARATOR
8-BIT COUNTER
8-BIT
COMPARATOR
PWM1
Fig.8 Functional diagram of Pulse Width Modulated outputs.
OUTPUT
BUFFER
OUTPUT
BUFFER
PWM0
PWM1
MBC746
1997 Apr 0814
Philips SemiconductorsProduct specification
8-bit microcontrollerP83C562; P80C562
10.1Prescaler Frequency Control Register (PWMP)
Table 3 Prescaler Frequency Control Register (SFR address FEH)
The completion of the 8-bit ADC conversion is flagged by
ADCI in the ADCON register and the result is stored in
Special Function Register ADCH.
An ADC conversion in progress is unaffected by an
external or software ADC start. The result of a completed
conversion remains unaffected provided ADCI = 1. While
ADCS = 1 or ADCI = 1, a new ADC start will be blocked
and consequently lost.
An ADC conversion already in progress is aborted when
the Idle or Power-down mode is entered. The result of a
completed conversion (ADCI = 1) remains unaffected
when entering the Idle mode.
If ADCI is cleared by software and ADCS is set at the same
time, a new analog-to-digital conversion with the same
channel number, may be started. However, it is
recommended to reset ADCI before ADCS is set.
11.1Analog input pins
The analog input circuitry consists of an 8-input analog
multiplexer and an ADC with 8-bit resolution. The analog
reference voltage and analog power supplies are
connected via separate input pins. The conversion takes
24 machine cycles i.e. 18 µs at an oscillator frequency of
16 MHz.
The ADC is controlled using the ADC Control Register
(ADCON). Input channels are selected by the analog
multiplexer, using bits AADR.0 to AADR.2 in ADCON.
handbook, full pagewidth
ADC0
ADC1
ADC2
ADC3
ADC4
ADC5
ADC6
ADC7
ANALOG INPUT
MULTIPLEXER
ADCON
8-BIT ADC
1234567012345670
INTERNAL BUS
Fig.9 Functional diagram of analog input.
STADC
analog reference
supply (analog part)
ground (analog part)
ADCH
MBH350
1997 Apr 0816
Loading...
+ 36 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.