1997-07-01
Previous Releases :09.96
PageSubjects (changes since last revision)
4
19
52, 53
56, 57
62
SSC transfer rate at 10 MHz = 2.5 MHz
Figure reference corrected
Power saving modes : description of hardware power down mode added
Icc specification has been extended
for Master Mode corrected
t
SCLK
Edition 1997-07-01
Published by Siemens AG,
Bereich Halbleiter, MarketingKommunikation, Balanstraße 73,
81541 München
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
•
•
64k byte on-chip ROM (external program execution is possible)
•
256 byte on-chip RAM
•
2K byte of on-chip XRAM
•
Up to 64K byte external data memory
•
Superset of the 8051 architecture with 8 datapointers
•
Up to 10 MHz external operating frequency (1
•
On-chip emulation support logic (Enhanced Hooks Technology
•
Current optimized oscillator circuit and EMI optimized design
•
Eight ports : 48+1 digital I/O lines, 8 analog inputs
– Quasi-bidirectional port structure (8051 compatible)
– Port 5 selectable for bidirectional port structure (CMOS voltage levels)
•
Full-CAN controller on-chip
– 256 register/data bytes are located in external data memory area
– max.1 MBaud at 8-10 MHz operating frequency
•
Three 16-bit timer/counters
– Timer 2 can be used for compare/capture functions
µ
s instruction cycle time at 6 MHz external clock)
TM
)
C515C
(further features are on next page)
Figure 1
C515C Functional Units
Enhanced Hooks Technology
Semiconductor Group31997-07-01
TM
is a trademark of Siemens AG
.
Features (continued) :
•
10-bit A/D converter with multiplexed inputs and built-in self calibration
•
Full duplex serial interface with programmable baudrate generator (USART)
•
SSC synchronous serial interface (SPI compatible)
– Master and slave capable
– Programmable clock polarity / clock-edge to data phase relation
– LSB/MSB first selectable
– 2.5 MHz transfer rate at 10 MHz operating frequency
•
Seventeen interrupt vectors, at four priority levels selectable
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
•
CPU running condition output pin
•
ALE can be switched off
•
Multiple separate VCC/VSS pin pairs
•
P-MQFP-80-1 package
•
Temperature Ranges :SAB-C515C-8R
SAF-C515C-8R
SAH-C515C-8R
T
= 0 to 70 ° C
A
T
= -40 to 85 ° C
A
T
= -40 to 110 ° C
A
C515C
pin
The C515C is an enhanced, upgraded version of the SAB 80C515A 8-bit microcontroller which
additionally provides a full CAN interface, a SPI compatible synchronous serial interface, extended
power save provisions, additional on-chip RAM, 64K of on-chip program memory, two new external
interrupts and RFI related improvements. With a maximum external clock rate of 10 MHz it achieves
s at 6 MHz). The C515C is mounted in a P-MQFP-80 package.
a 600 ns instruction cycle time (1
Ordering Information
TypeOrdering CodePackageDescription
SAB-C515C-8RMQ67121-DXXXX P-MQFP-80-1with mask programmable ROM (10 MHz)
SAF-C515C-8RMQ67121-DXXXXP-MQFP-80-1with mask programmable ROM (10 MHz)
Note: Versions for extended temperature ranges – 40 ° C to 110 ° C (SAH-C515C-LM and SAH-
C515C-8RM) are available on request. The ordering number of ROM types (DXXXX
extensions) is defined after program release (verification) of the customer.
µ
(8-Bit CMOS microcontroller)
ext. temp. – 40 ° C to 85 ° C
ext. temp. – 40 ° C to 85 ° C
Semiconductor Group41997-07-01
C515C
Figure 2
Logic Symbol
Semiconductor Group51997-07-01
C515C
Figure 3
C515C Pin Configuration (P-MQFP-80-1, Top View)
Semiconductor Group61997-07-01
Table 1
Pin Definitions and Functions
SymbolPin NumberI/O*)Function
P-MQFP-80
C515C
RESET
VAREF3–
VAGND4–
P6.0-P6.712-5I
*) I = Input
O = Output
1I
RESET
A low level on this pin for the duration of two machine
cycles while the oscillator is running resets the C515C. A
small internal pullup resistor permits power-on reset
using only a capacitor connected to VSS.
Reference voltage for the A/D converter
Reference ground for the A/D converter
Port 6
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 high/low input
voltages and for the eight multiplexed analog inputs.
Semiconductor Group71997-07-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*)Function
P-MQFP-80
C515C
P3.0-P3.715-22
15
16
17
18
19
20
21
22
I/O
Port 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
, in the DC
IL
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.) or
data input/output (synch.) of serial
interface
P3.1 TXDTransmitter data output (asynch.) or
clock output (synch.) of serial
interface
P3.2 INT0
External interrupt 0 input / timer 0
gate control input
is an 1-bit quasi-bidirectional I/O port with internal pull-up
resistor. When a 1 is written to P7.0 it is pulled high by an
internal pull-up resistor, and in that state can be used as
input. As input, P7.0 being externally pulled low will
source current ( I
, in the DC characteristics) because of
IL
the internal pull-up resistor. If P7.0 is used as interrupt
input, its output latch must be programmed to a one (1).
The secondary function is assigned to the port 7 pin as
follows:
P7.0INT7
Interrupt 7 input
Port 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
, in the DC
IL
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.0INT3
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.
XTAL137OXTAL1
Output of the inverting oscillator amplifier.
C515C
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.
CPUR
46OCPU running condition
This output pin is at low level when the CPU is running
and program fetches or data accesses in the external
data memory area are executed. In idle mode, hardware
and software power down mode, and with an active
RESET signal CPUR is set to high level.
CPUR can be typically used for switching external
memory devices into power saving modes.
, in the DC
IL
*) I = Input
O = Output
Semiconductor Group101997-07-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*)Function
P-MQFP-80
PSEN47OThe 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.
C515C
EA49IExternal Access Enable
When held high, the C515C executes instructions always
from the internal ROM. When held low, the C515C
fetches all instructions from external program memory.
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 C515C. 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
characteristics) because of the internal pullup resistors.
Port 5 can also be switched into a bidirectional mode, in
which CMOS levels are provided. In this bidirectional
mode, each port 5 pin can be programmed individually as
input or output.
, in the DC
IL
*) I = Input
O = Output
Semiconductor Group111997-07-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*)Function
P-MQFP-80
HWPD69IHardware Power Down
A low level on this pin for the duration of one machine
cycle while the oscillator is running resets the C515C.
A low level for a longer period will force the part to power
down mode with the pins floating.
C515C
P4.0-P4.772-74, 76-80
72
73
74
76
77
78
79
80
I/OPort 4
is an 8-bit quasi-bidirectional I/O port with internal pull-up
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 SSC pins, the CAN controller input/output lines, and
the external interrupt 8 input. The output latch
corresponding to a secondary functionmust be
programmed to a one (1) for that function to operate.
The alternate functions are assigned to port 4 as follows:
P4.0ADSTExternal A/D converter start pin
P4.1SCLKSSC Master Clock Output /
P4.2SRISSC Receive Input
P4.3STOSSC Transmit Output
P4.4SLS
P4.5INT8External interrupt 8 input
P4.6TXDCTransmitter output of the CAN controller
P4.7RXDCReceiver input of the CAN controller
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.
*) I = Input
O = Output
Semiconductor Group121997-07-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*)Function
P-MQFP-80
VSSCLK13–Ground (0 V) for on-chip oscillator
This pin is used for ground connection of the on-chip
oscillator circuit.
VCCCLK14–Supply voltage for on-chip oscillator
This pin is used for power supply of the on-chip oscillator
circuit.
C515C
VCCE1
VCCE2
32
68
–Supply voltage for I/O ports
These pins are used for power supply of the I/O ports
during normal, idle, and power-down mode.
VSSE1
VSSE2
35
70
–Ground (0 V) for I/O ports
These pins are used for ground connections of the I/O
ports during normal, idle, and power-down mode.
VCC133–Supply voltage for internal logic
This pins is used for the power supply of the internal logic
circuits during normal, idle, and power down mode.
VSS134–Ground (0 V) for internal logic
This pin is used for the ground connection of the internal
logic circuits during normal, idle, and power down mode.
VCCEXT50–Supply voltage for external access pins
This pin is used for power supply of the I/O ports and
control signals which are used during external accesses
(for Port 0, Port 2, ALE, PSEN
, P3.6/WR, and P3.7/RD).
VSSEXT51–Ground (0 V) for external access pins
This pin is used for the ground connection of the I/O ports
and control signals which are used during external
accesses (for Port 0, Port 2, ALE, PSEN
, P3.6/WR, and
P3.7/RD).
N.C.2, 71–Not connected
These pins should not be connected.
*) I = Input
O = Output
Semiconductor Group131997-07-01
C515C
Figure 4
Block Diagram of the C515C
Semiconductor Group141997-07-01
C515C
CPU
The C515C 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% threebyte instructions. With a 6 MHz crystal, 58% of the instructions are executed in 1 µs (10 MHz :
600 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 Group151997-07-01
Memory Organization
The C515C CPU manipulates data and operands in the following five address spaces:
– up to 64 Kbyte of internal/external program memory
– up to 64 Kbyte of external data memory
– 256 bytes of internal data memory
– 256 bytes CAN controller registers / data memory
– 2K bytes of internal XRAM data memory
– a 128 byte special function register area
Figure 5 illustrates the memory address spaces of the C515C.
C515C
Figure 5
C515C Memory Map
Semiconductor Group161997-07-01
C515C
Control of XRAM/CAN Controller Access
The XRAM in the C515C is a memory area that is logically located at the upper end of the external
memory space, but is integrated on the chip. Because the XRAM and the CAN controller is used in
the same way as external data memory the same instruction types (MOVX) must be used for
accessing the XRAM. Two bits in SFR SYSCON, XMAP0 and XMAP1, control the accesses to the
XRAM and the CAN controller.
Special Function Register SYSCON (Address B1H) Reset Value : X010XX01
Bit No.MSBLSB
76543210
B1
H
BitFunction
XMAP1XRAM/CAN controller visible access control
–PMOD
The function of the shaded bits is not described in this section.
Control bit for RD/WR signals during XRAM/CAN Controller accesses. If
addresses are outside the XRAM/CAN controller address range or if
XRAM is disabled, this bit has no effect.
XMAP1 = 0 : The signals RD and WR are not activated during accesses to
XMAP1 = 1 : Ports 0, 2 and the signals RD and WR are activated during
EALERMAP–
the XRAM/CAN Controller
accesses to XRAM/CAN Controller. In this mode, address
and data information during XRAM/CAN Controller accesses
are visible externally.
–XMAP1
XMAP0
SYSCON
B
XMAP0Global XRAM/CAN controller access enable/disable control
XMAP0 = 0 : The access to XRAM and CAN controller is enabled.
XMAP0 = 1 : The access to XRAM and CAN controller is disabled (default
after reset). All MOVX accesses are performed via the
external bus. Further, this bit is hardware protected.
Bit XMAP0 is hardware protected. If it is reset once (XRAM/CAN controller access enabled) it
cannot be set by software. Only a reset operation will set the XMAP0 bit again.
The XRAM/CAN controller can be accessed by read/write instructions (MOVX A,DPTR, MOVX
@DPTR,A), which use the 16-bit DPTR for indirect addressing. For accessing the XRAM or CAN
controller, the effective address stored in DPTR must be in the range of F700H to FFFFH.
The XRAM can be also accessed by read/write instructions (MOVX A,@Ri, MOVX @Ri,A), which
use only an 8-bit address (indirect addressing with registers R0 or R1). Therefore, a special page
register XPAGE which provides the upper address information (A8-A15) during 8-bit XRAM
accesses. The behaviour of Port 0 and P2 during a MOVX access depends on the control bits
XMAP0 and XMAP1 in register SYSCON and on the state of pin EA
operating conditions.
Semiconductor Group171997-07-01
. Table 2 lists the various
Semiconductor Group181997-07-01
= 0EA = 1
EA
XMAP1, XMAP0XMAP1, XMAP0
0010X10010X1
MOVX
@DPTR
MOVX
@ Ri
DPTR
<
XRAM/CAN
address
range
DPTR
≥
XRAMCAN
address
range
XPAGE
<
XRAMCAN
addr.page
range
XPAGE
≥
XRAMCAN
addr.page
range
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2
(RD/WR-Data)
b)RD/WR
inactive
c)XRAM is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0
(RD/WR-Data)
P2→I/O
b)RD/WR
inactive
c)XRAM is used
→Bus
→Bus
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2→Bus
(RD/WR-Data)
b)RD/WR active
c)XRAM is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0→Bus
(RD/WR-Data
only)
P2→I/O
b)RD/WR active
c)XRAM is used
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2→Bus
b)RD/WR active
c) ext.memory
is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2→I/0
b)RD/WR
inactive
c)XRAM is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P2→I/O
P0/P2→I/O
b)RD/WR
inactive
c)XRAM is used
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2→Bus
(RD/WR-Data)
b)RD/WR active
c)XRAM is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0→Bus
(RD/WR-Data)
P2→I/O
b)RD/WR active
c)XRAM is used
a)P0/P2→Bus
b)RD/WR active
c)ext.memory
is used
a)P0/P2→Bus
b)RD/WR active
c) ext.memory
is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
a)P0→Bus
P2→I/O
b)RD/WR active
c)ext.memory
is used
modes compatible to 8051/C501 family
Table 2
Behaviour of P0/P2 and RD
C515C
/WR During MOVX Accesses
C515C
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 (12 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
Figure 7 shows the recommended oscillator circiutries for crystal and external clock operation.
Figure 7
Recommended Oscillator Circuitries
Semiconductor Group191997-07-01
C515C
Multiple Datapointers
As a functional enhancement to the standard 8051 architecture, the C515C contains eight 16-bit
datapointers instead of only one datapointer. The instruction set uses just one of these datapointers
at a time. The selection of the actual datapointer is done in the special function register DPSEL.
Figure 8 illustrates the datapointer addressing mechanism.
Figure 8
External Data Memory Addressing using Multiple Datapointers
External Data Memory
MCD00779
Semiconductor Group201997-07-01
C515C
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 supprt 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.
The Enhanced Hooks TechnologyTM, which requires embedded logic in the C500 allows the C500
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.
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 programm execution and data transfer between the external emulation
hardware (ICE-system) and the C500 MCU.
Semiconductor Group211997-07-01
Loading...
+ 48 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.