As far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes
and circuits implemented within components or assemblies.
The information describes the type of component and shall not be considered as assured characteristics.
Terms of delivery and rights to change design reserved.
For questions on technology, delivery and prices please contact the Semiconductor Group Offices in Germany or the Siemens Companies
and Representatives worldwide (see address list).
Due to technical requirements components may contain dangerous substances. For information on the types in question please contact
your nearest Siemens Office, Semiconductor Group.
Siemens AG is an approved CECC manufacturer.
Packing
Please use the recycling operators known to you. We can also help you – get in touch with your nearest sales office. By agreement we
will take packing material back, if it is sorted. You must bear the costs of transport.
For packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs incurred.
Components used in life-support devices or systems must be expressly authorized for such purpose!
Critical components
written approval of the Semiconductor Group of Siemens AG.
1 A critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the
failure of that life-support device or system, or to affect its safety or effectiveness of that device or system.
2 Life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain hu-
man life. If they fail, it is reasonable to assume that the health of the user may be endangered.
1
of the Semiconductor Group of Siemens AG, may only be used in life-support devices or systems
2
with the express
8-Bit CMOS Microcontroller
Advance Information
Full upward compatibility with SAB 80C515A/83C515A-5
•
•
Up to 24 MHz external operating frequency
– 500 ns instruction cycle at 24 MHz operation
•
32K byte on-chip ROM (with optional ROM protection)
– alternatively up to 64K byte external program memory
•
Up to 64K byte external data memory
•
256 byte on-chip RAM
•
1K byte on-chip RAM (XRAM)
•
Six 8-bit parallel I/O ports
•
One input port for analog/digital input
•
Full duplex serial interface (USART)
– 4 operating modes, fixed or variable baud rates
•
Three 16-bit timer/counters
– Timer 0 / 1 (C501 compatible)
– Timer 2 for 16-bit reload, compare, or capture functions
Power saving modes
– Slow down mode
– Idle mode (can be combined with slow down mode)
– Software power down mode with wake-up capability through INT0
– Hardware power down mode
On-chip emulation support logic (Enhanced Hooks Technology
•
P-MQFP-80-1 package
•
Temperature Ranges:SAB-C515A
SAF-C515A
SAH-C515A
SAK-C515
T
= 0 to 70 ° C
A
T
= – 40 to 85 ° C
A
T
= – 40 to 85 ° C
A
T
= – 40 to 110 ° C (max. operating frequency: 18 MHz)
A
TM
C515A
pin
)
The C515A is an upward compatible version of the SAB 80C515A/83C515A-5 8-bit microcontroller
which additionally provides an improved 10-bit A/D converter, ALE switch-off capability, on-chip
emulation support, ROM protection, and enhanced power saving mode capabilities. With a
maximum external clock rate of 24 MHz it achieves a 500 ns instruction cycle time (1
The C515A is mounted in a P-MQFP-80 package.
Ordering Information
TypeOrdering CodePackageDescription
(8-Bit CMOS microcontroller)
SAB-C515A-4RMQ67121-DXXXX P-MQFP-80-1 with mask programmable ROM (18 MHz)
SAF-C515A-4RMQ67121-DXXXXP-MQFP-80-1 with mask programmable ROM (18 MHz)
ext. temp. – 40 ° C to 85 ° C
SAB-C515A-4R24M Q67121-DXXXX P-MQFP-80-1 with mask programmable ROM (24 MHz)
SAF-C515A-4R24M Q67121-DXXXXP-MQFP-80-1 with mask programmable ROM (24 MHz)
ext. temp. – 40 ° C to 85 ° C
SAB-C515A-LMQ67121-C1068P-MQFP-80-1 for external memory (18 MHz)
SAF-C515A-LMQ67121-C1069P-MQFP-80-1 for external memory (18 MHz)
ext. temp. – 40 ° C to 85 ° C
SAB-C515A-L24MQ67121-C1070P-MQFP-80-1 for external memory (24 MHz)
µ
s at 12 MHz).
SAF-C515A-L24MQ67127-C2020P-MQFP-80-1 for external memory (24 MHz)
ext. temp. – 40 ° C to 85 ° C
Note: Versions for extended temperature ranges – 40 ° C to 110 ° C and – 40 ° C to 125 ° C
(SAH-C515A and SAK-C515A) are available on request. The ordering number of ROM
types (DXXXX extensions) is defined after program release (verification) of the customer.
Semiconductor Group41997-10-01
C515A
XTAL1
XTAL2
ALE
PSEN
EA
RESET
PE / SWD
HWPD
V
AREF
V
AGND
V
CC
C515A
V
SS
Port 0
8-Bit Digit. I / O
Port 1
8-Bit Digit. I / O
Port 2
8-Bit Digit. I / O
Port 3
8-Bit Digit. I / O
Port 4
8-Bit Digit. I / O
Port 5
8-Bit Digit. I / O
Port 6
8-Bit Analog /
Digital Input
MCL03240
Figure 2
Logic Symbol
Additional Literature
For further information about the C515A the following literature is available:
TitleOrdering Number
C515A 8-Bit CMOS Microcontroller User’s ManualB158-H7051-X-X-7600
C500 Microcontroller Family
B158-H6987-X-X-7600
Architecture and Instruction Set User’s Manual
C500 Microcontroller Family - Pocket Guide B158-H6986-X-X-7600
is an 8-bit quasi-bidirectional I/O port with internal pullup resistors. Port 4 pins that have 1’s written to them are
pulled high by the internal pull-up resistors, and in that
state can be used as inputs. As inputs, port 4 pins being
externally pulled low will source current ( I
characteristics) because of the internal pull-up resistors.
P4 also contains the external A/D converter control pin.
The output latch corresponding to a secondary function
must be programmed to a one (1) for that function to
operate. The secondary function is assigned to port 6 as
follows:
P4.0 / ADST
Power Saving Mode
A low level on this pin allows the software to enter the
power down, idle, and slow down mode. In case the low
level is also seen during reset, the watchdog timer
function is off on default.
Use of the software controlled power saving modes is
blocked when this pin is held on high level. A high level
during reset performs an automatic start of the
watchdog timer immediately after reset.
When left unconnected this pin is pulled high by a weak
internal pull-up resistor.
Note: If PE
watchdog is disabled (testmode)!
external A/D converter start pin
Enable
/SWD is low and V
, in the DC
IL
/ Start Watchdog Timer
is low the oscillator
AREF
RESET
1I
RESET
A low level on this pin for the duration of two machine
cycles while the oscillator is running resets the C515A.
A small internal pullup resistor permits power-on reset
VAREF3–
VAGND4–
P6.0-P6.712-5I
using only a capacitor connected to V
Reference Voltage for the A/D converter
Reference Ground for the A/D converter
Port 6
SS
.
is an 8-bit unidirectional input port to the A/D converter.
Port pins can be used for digital input, if voltage levels
simultaneously meet the specifications for high/low input
voltages and for the eight multiplexed analog inputs.
*) I = Input
O = Output
Semiconductor Group71997-10-01
Table 1
Pin Definitions and Functions (cont’d)
C515A
SymbolPin Number
(P-MQFP-80)
P3.0-P3.715-22
15
16
17
18
19
20
21
22
I/O*)Function
I/OPort 3
is an 8-bit quasi-bidirectional I/O port with internal pullup
resistors. Port 3 pins that have 1's written to them are
pulled high by the internal pullup resistors, and in that
state can be used as inputs. As inputs, port 3 pins being
externally pulled low will source current (I IL, in the DC
characteristics) because of the internal pullup resistors.
Port 3 also contains the interrupt, timer, serial port and
external memory strobe pins that are used by various
options. The output latch corresponding to a secondary
function must be programmed to a one (1) for that
function to operate. The secondary functions are
assigned to the pins of port 3, as follows:
P3.0 / RxDReceiver data input (asynch.)
(asynch.) or clock output
(synch.) of serial interface
timer 0 gate control input
timer 1 gate control input
WR control output; latches
the data byte from port 0 into
the external data memory
the external data memory
*) I = Input
O = Output
Semiconductor Group81997-10-01
Table 1
Pin Definitions and Functions (cont’d)
C515A
SymbolPin Number
(P-MQFP-80)
P1.0 - P1.731-24
31
30
29
28
27
26
25
24
I/O*)Function
I/OPort 1
is an 8-bit quasi-bidirectional I/O port with internal pullup
resistors. Port 1 pins that have 1's written to them are
pulled high by the internal pullup resistors, and in that
state can be used as inputs. As inputs, port 1 pins being
externally pulled low will source current (I IL, in the DC
characteristics) because of the internal pullup resistors.
The port is used for the low-order address byte during
program verification. Port 1 also contains the interrupt,
timer, clock, capture and compare pins that are used by
various options. The output latch corresponding to a
secondary function must be programmed to a one (1) for
that function to operate (except when used for the
compare functions). The secondary functions are
assigned to the port 1 pins as follows:
P1.0 / INT3 / CC0Interrupt 3 input /
Input to the inverting oscillator amplifier and input to the
internal clock generator circuits. To drive the device
from an external clock source, XTAL2 should be driven,
while XTAL1 is left unconnected.Minimum and
maximum high and low times as well as rise/fall times
specified in the AC characteristics must be observed.
XTAL137–XTAL1
Output of the inverting oscillator amplifier.
P2.0-P2.738-45I/OPort 2
is an 8-bit quasi-bidirectional I/O port with internal pullup
resistors. Port 2 pins that have 1's written to them are
pulled high by the internal pullup resistors, and in that
state can be used as inputs. As inputs, port 2 pins being
externally pulled low will source current (I
characteristics) because of the internal pullup resistors.
Port 2 emits the high-order address byte during fetches
from external program memory and during accesses to
external data memory that use 16-bit addresses
(MOVX @DPTR). In this application it uses strong
internal pullup resistors when issuing 1's. During
accesses to external data memory that use 8-bit
addresses (MOVX @Ri), port 2 issues the contents of
the P2 special function register.
, in the DC
IL
PSEN
47OThe Program Store Enable
output is a control signal that enables the external
program memory to the bus during external fetch
operations. It is activated every six oscillator periods,
except during external data memory accesses. The
signal remains high during internal program execution.
ALE48OThe Address Latch Enable
output is used for latching the address into external
memory during normal operation. It is activated every
six oscillator periods, except during an external data
memory access. ALE can be switched off when the
program is executed internally.
*) I = Input
O = Output
Semiconductor Group101997-10-01
Table 1
Pin Definitions and Functions (cont’d)
C515A
SymbolPin Number
I/O*)Function
(P-MQFP-80)
EA49IExternal Access Enable
When held high, the C515A executes instructions from
the internal ROM (C515A-4R) as long as the PC is less
than 8000H. When held low, the C515A fetches all
instructions from external program memory. For the
C515A-L this pin must be tied low.
P0.0-P0.752-59I/OPort 0
is an 8-bit open-drain bidirectional I/O port. Port 0 pins
that have 1's written to them float, and in that state can
be used as high-impedance inputs.
Port 0 is also the multiplexed low-order address and
data bus during accesses to external program and data
memory. In this application it uses strong internal pullup
resistors when issuing 1's. Port 0 also outputs the code
bytes during program verification in the C515A-4R.
External pullup resistors are required during program
verification.
P5.0-P5.767-60I/OPort 5
is an 8-bit quasi-bidirectional I/O port with internal pullup
resistors. Port 5 pins that have 1's written to them are
pulled high by the internal pullup resistors, and in that
state can be used as inputs. As inputs, port 5 pins being
externally pulled low will source current (I IL, in the DC
characteristics) because of the internal pullup resistors.
HWPD
69IHardware Power Down
A low level on this pin for the duration of one machine
cycle while the oscillator is running resets the C515A. A
low level for a longer period will force the C515A into
Hardware Power Down Mode with the pins floating.
N.C.2, 13, 14, 23,
46, 50, 51, 68,
70, 71
*) I = Input
O = Output
–Not connected
These pins of the P-MQFP-80 package need not be
connected.
Semiconductor Group111997-10-01
C515A
XTAl1
XTAL2
ALE
PSEN
EA
PE / SWD
RESET
HWPD
Oscillator
Watchdog
OSC & Timing
CPU
Programmable
Watchdog Timer
Timer 0
Timer 1
Timer 2
USART
Baud Rate
Generator
RAMXRAM
256 x 8
1 K x 832 K x 8
ROM
Emulation
Support
Logic
Port 0
Port 1
Port 2
Port 3
Port 4
Port 0
8-Bit Digit. I / O
Port 1
8-Bit Digit. I / O
Port 2
8-Bit Digit. I / O
Port 3
8-Bit Digit. I / O
Port 4
8-Bit Digit. I / O
V
AREF
V
AGND
Interrupt
Unit
A/D Converter
10-Bit
S&H
Analog
MUX
Port 5
Port 6
C515A
Port 5
8-Bit Digit. I / O
Port 6
8-Bit Analog /
Digital Input
MCB03242
Figure 4
Block Diagram of the C515A
Semiconductor Group121997-10-01
C515A
CPU
The C515A is efficient both as a controller and as an arithmetic processor. It has extensive facilities
for binary and BCD arithmetic and excels in its bit-handling capabilities. Efficient use of program
memory results from an instruction set consisting of 44 % one-byte, 41 % two-byte, and 15%
three-byte instructions. With a 18 MHz crystal, 58% of the instructions are executed in 666 ns
(24 MHz : 500 ns).
Special Function Register PSW (Address D0H) Reset Value : 00H
Bit No.MSBLSB
H
D7
CYAC
H
D6
H
D5
F0
H
D4
RS1RS0OVF1PD0
BitFunction
CYCarry Flag
Used by arithmetic instruction.
ACAuxiliary Carry Flag
Used by instructions which execute BCD operations.
F0General Purpose Flag
RS1
RS0
Register Bank select control bits
These bits are used to select one of the four register banks.
RS1RS0Function
00Bank 0 selected, data address 00H-07
01Bank 1 selected, data address 08H-0F
10Bank 2 selected, data address 10H-17
11Bank 3 selected, data address 18H-1F
H
D3
H
D2
H
D1
H
D0
H
PSW
H
H
H
H
OVOverflow Flag
Used by arithmetic instruction.
F1General Purpose Flag
PParity Flag
Set/cleared by hardware after each instruction to indicate an odd/even
number of “one” bits in the accumulator, i.e. even parity.
Semiconductor Group131997-10-01
Memory Organization
The C515A CPU manipulates operands in the following five address spaces:
– up to 64 Kbyte of program memory (32K on-chip program memory for C515A-4R)
– up to 64 Kbyte of external data memory
– 256 bytes of internal data memory
– 1K bytes of internal XRAM data memory
– a 128 byte special function register area
Figure 5 illustrates the memory address spaces of the C515A.
Alternatively
C515A
Ext.
FFFF
H
Ext.
Data
Memory
Internal
XRAM
(1 KByte)
FBFF
H
FFFF
FC00
H
H
Indirect
8000
H
7FFF
H
Ext.
Addr.
Internal
RAM
Data
Memory
Int.
EA = 1)
Ext.
EA = 1)
Internal
RAM
0000
H
0000
H
"Code Space""Data Space""Internal Data Space"
Direct
Addr.
Special
Function
Regs.
7F
H
00
H
MCB03243
FF
80
H
H
Figure 5
C515A Memory Map
Semiconductor Group141997-10-01
C515A
Reset and System Clock
The reset input is an active low input at pin RESET. Since the reset is synchronized internally, the
RESET pin must be held low for at least two machine cycles (24 oscillator periods) while the
oscillator is running. A pullup resistor is internally connected to VCC to allow a power-up reset with
an external capacitor only. An automatic reset can be obtained when VCC is applied by connecting
the RESET pin to VSS via a capacitor. Figure 6 shows the possible reset circuitries.
Figure 6
Reset Circuitries
Semiconductor Group151997-10-01
C515A
Figure 7 shows the recommended oscillator circuitries for crystal and external clock operation.
Crystal Oscillator ModeDriving from External Source
C
3.5 - 24
MHz
C
Crystal Mode:C = 20 pF 10 pF
(Incl. Stray Capacitance)
Figure 7
Recommended Oscillator Circuitries
XTAL1
XTAL2
N.C.
External Oscillator
Signal
XTAL1
XTAL2
MCS03245
Semiconductor Group161997-10-01
C515A
Enhanced Hooks Emulation Concept
The Enhanced Hooks Emulation Concept of the C500 microcontroller family is a new, innovative
way to control the execution of C500 MCUs and to gain extensive information on the internal
operation of the controllers. Emulation of on-chip ROM based programs is possible, too.
Each production chip has built-in logic for the support of the Enhanced Hooks Emulation Concept.
Therefore, no costly bond-out chips are necessary for emulation. This also ensure that emulation
and production chips are identical.
1)
The Enhanced Hooks Technology
together with an EH-IC to function similar to a bond-out chip. This simplifies the design and reduces
costs of an ICE-system. ICE-systems using an EH-IC and a compatible C500 are able to emulate
all operating modes of the different versions of the C500 microcontrollers. This includes emulation
of ROM, ROM with code rollover and ROMless modes of operation. It is also able to operate in
single step mode and to read the SFRs after a break.
TM
, which requires embedded logic in the C500 allows the C500
Port 0, port 2 and some of the control lines of the C500 based MCU are used by Enhanced Hooks
Emulation Concept to control the operation of the device during emulation and to transfer
informations about the program execution and data transfer between the external emulation
hardware (ICE-system) and the C500 MCU.
1 “Enhanced Hooks Technology” is a trademark and patent of Metalink Corporation licensed to Siemens.
Semiconductor Group171997-10-01
C515A
Special Function Registers
The registers, except the program counter and the four general purpose register banks, reside in
the special function register area. The special function register area consists of two portions: the
standard special function register area and the mapped special function register area. One special
function register of the C515A (PCON1) is located in the mapped special function register area. For
accessing this mapped special function register, bit RMAP in special function register SYSCON
must be set. All other special function registers are located in the standard special function register
area which is accessed when RMAP is cleared (“0“).
Special Function Register SYSCON (Address B1H) Reset Value : XX10XX01
Bit No.MSBLSB
76543210
B1
H
BitFunction
RMAPSpecial function register map bit
–Reserved bits for future use. Read by CPU returns undefined values.
As long as bit RMAP is set, the mapped special function register area (SFR PCON1) can be
accessed. This bit is not cleared by hardware automatically. Thus, when non-mapped/mapped
registers are to be accessed, the bit RMAP must be cleared/set respectively by software.
––
The functions of the shaded bits are not described in this section.
RMAP = 0: The access to the non-mapped (standard) special function
RMAP = 1: The access to the mapped special function register area (SFR
EALERMAP–
register area is enabled.
PCON1) is enabled.
–
XMAP1
XMAP0
SYSCON
B
The 49 special function registers (SFRs) in the standard and mapped SFR area include pointers
and registers that provide an interface between the CPU and the other on-chip peripherals. All
SFRs with addresses where address bits 0-2 are 0 (e.g. 80H, 88H, 90H, 98H, …, F8H, FFH) are
bitaddressable. The SFRs of the C515A are listed in table 2 and table 3. In table 2 they are
organized in groups which refer to the functional blocks of the C515A. Table 3 illustrates the
contents of the SFRs in numeric order of their addresses.
Semiconductor Group181997-10-01
Loading...
+ 40 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.