The information herein is given to describe certain components and shall not be considered as a guarantee of
characteristics.
Terms of delivery and rights to technical change reserved.
We hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding
circuits, descriptions and charts stated herein.
Information
For further information on technology, delivery terms and conditions and prices please contact your nearest
Infineon Technologies Office in Germany or our Infineon Technologies Representatives worldwide
(www.infineon.com).
Warnings
Due to technical requirements components may contain dangerous substances. For information on the types in
question please contact your nearest Infineon Technologies Office.
Infineon Technologies Components may only be used in life-support devices or systems with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system, or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.
Data Sheet, Feb. 2003
C515C
8-Bit Single-Chip Microcontroller
Microcontrollers
Never stop thinking.
C515C Data Sheet
Revision History:2003-02
Previous Version:2000-08
PageSubjects (major changes since last revision)
Enhanced Hooks Technology™ is a trademark of Infineon Technologies.
We Listen to Your Comments
Any information within this document that you feel is wrong, unclear or missing at all?
Your feedback will help us to continuously improve the quality of this document.
Please send your proposal (including a reference to this document) to:
mcdocu.comments@infineon.com
Features
• Full upward compatibility with SAB 80C515A
• On-chip program memory (with optional memory protection)
– C515C-8R 64 Kbytes on-chip ROM
– C515C-8E 64 Kbytes on-chip OTP
– alternatively up to 64 Kbytes external program memory
• 256 bytes on-chip RAM
• 2 Kbytes of on-chip XRAM
• Up to 64 Kbytes external data memory
• Superset of the 8051 architecture with 8 datapointers
• Up to 10 MHz external operating frequency (1
external clock)
• On-chip emulation support logic (Enhanced Hooks Technology)
• Current optimized oscillator circuit and EMI optimized design
µs instruction cycle time at 6 MHz
C515C8-Bit Single-Chip Microcontroller
(further features are on next page)
SSC (SPI)
Interface
Oscillator
Watchdog
Power
Save Modes
Idle/
Power down
Slow down
On-Chip Emulation Support Module
Port 7Port 6Port 5Port 4
I/OI/OI/OAnalog/
Digital
Input
Full-CAN
Controller
10 Bit ADC
(8 inputs)
Timer 2
Capture/Compare Unit
XRAM
2k x 8
T0
CPU
8 Datapointer
T1
Program Memory
C515C-8R : 64k x 8 ROM
C515C-8E : 64k x 8 OTP
RAM
256 x 8
USART
Port 0
Port 1
Bit8
Port 2
Port 3
I/O
I/O
I/O
I/O
MCA03646
Figure 1C515C Functional Units
Data Sheet1 2003-02
• 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
• 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
or RXDC pin
– Hardware power-down mode
• CPU running condition output pin
• ALE can be switched off
• Multiple separate
V
DD/VSS
pin pairs
• P-MQFP-80-1 package
• Temperature Ranges:
SAB-C515C versions:
SAF-C515C versions:
SAH-C515C versions:
Note: Versions for extended temperature range -40
T
= 0 to 70 °C
A
T
= -40 to 85 °C
A
T
= -40 to 110 °C
A
°C to 110 °C (SAH-C515C) are
available on request.
C515C
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 a 600 ns instruction cycle time (1
µs
at 6 MHz).
Data Sheet2 2003-02
C515C
The C515C-8R contains a non-volatile 64 Kbytes read-only program memory. The
C515C-L is identical to the C515C-8R, except that it lacks the on-chip program memory.
The C515C-8E is the OTP version in the C515C microcontroller with an on-chip
64 Kbytes one-time programmable (OTP) program memory. The C515C is mounted in
a P-MQFP-80-1 package.
If compared to the C515C-8R and C515C-L, the C515C-8E OTP version additionally
provides two features:
• The wake-up from software power down mode can, additionally to the external pin
P3.2/INT0
P4.7/RXDC.
• For power consumption reasons the on-chip CAN controller can be switched off.
Table 1Differences in Internal Program Memory of the C505 MCUs
DeviceInternal Program Memory
wake-up capability, also be triggered alternatively by a second pin
ROMOTP
C515C-LM
––
C515C-8RM64 Kbytes–
C515C-8EM–64 Kbytes
Note: The term C515C refers to all versions described within this document unless
otherwise noted.
Ordering Information
The ordering code for Infineon Technologies’ microcontrollers provides an exact
reference to the required product. This ordering code identifies:
• The derivative itself, i.e. its function set
• The specified temperature rage
• The package and the type of delivery
For the available ordering codes for the C515C please refer to the “Product informationMicrocontrollers”, which summarizes all available microcontroller variants.
Note: The ordering codes for the Mask-ROM versions are defined for each product after
Table 2Pin Definitions and Functions
SymbolPin NumberI/O
1)
Function
P-MQFP-80-1
C515C
RESET
1IRESET
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
V
.
SS
V
AREF
V
AGND
3–Reference voltage for the A/D converter
4–Reference ground for the A/D converter
P6.0-P6.712-5IPort 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.
P7.0 / INT7
23I/OPort 7
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 (
DC characteristics) because of 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.0 INT7
, Interrupt 7 input
I
, in the
IL
Data Sheet6 2003-02
Table 2Pin Definitions and Functions (cont’d)
1)
SymbolPin NumberI/O
Function
P-MQFP-80-1
C515C
P3.0-P3.715-22
15
16
17
18
19
20
21
22
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 (
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
or clock output (synch.) of serial
interface
External interrupt 0 input / timer 0
gate control input
External interrupt 1 input / timer 1
gate control input
WR control output; latches the
data byte from port 0 into the
external data memory
RD control output; enables the
external data memory
Data Sheet7 2003-02
Table 2Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O
1)
Function
P-MQFP-80-1
C515C
P1.0 - P1.7 31-24
31
30
29
28
27
26
25
24
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 (
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
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.
Data Sheet8 2003-02
Table 2Pin Definitions and Functions (cont’d)
1)
SymbolPin NumberI/O
Function
P-MQFP-80-1
XTAL137OXTAL1
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
, in the DC characteristics) because of
IL
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.
C515C
CPUR
PSEN
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.
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.
Data Sheet9 2003-02
Table 2Pin Definitions and Functions (cont’d)
1)
SymbolPin NumberI/O
Function
P-MQFP-80-1
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
EA
49IExternal 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.
Note: For the ROM protection version EA
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.
pin is
latched during reset.
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
, in the DC characteristics) because of
IL
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.
Data Sheet10 2003-02
Table 2Pin Definitions and Functions (cont’d)
1)
SymbolPin NumberI/O
Function
P-MQFP-80-1
C515C
HWPD
69IHardware Power Down
P4.0-P4.772-74, 76-80
72
73
74
76
77
78
79
80
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.
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 (
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 function must
be programmed to a one (1) for that function to
operate. The alternate functions are assigned to
port 4 as follows:
P4.0 ADST
P4.1 SCLKSSC Master Clock Output /
P4.2 SRISSC Receive Input
P4.3 STOSSC Transmit Output
P4.4 SLS
P4.5 INT8
P4.6 TXDCTransmitter output of the CAN
P4.7 RXDCReceiver input of the CAN controller
I
, in the DC characteristics) because of
IL
External A/D converter start pin
SSC Slave Clock Input
Slave Select Input
External interrupt 8 input
controller
Data Sheet11 2003-02
Table 2Pin Definitions and Functions (cont’d)
1)
SymbolPin NumberI/O
Function
P-MQFP-80-1
PE
/SWD75IPower saving mode enable / Start watchdog
timer
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.
C515C
V
SSCLK
V
DDCLK
V
DDE1
V
DDE2
V
SSE1
V
SSE2
V
DD1
V
SS1
13–Ground (0 V) for on-chip oscillator
This pin is used for ground connection of the on-chip
oscillator circuit.
14–Supply voltage for on-chip oscillator
This pin is used for power supply of the on-chip
oscillator circuit.
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.
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.
33–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.
34–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.
Data Sheet12 2003-02
Table 2Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O
1)
Function
P-MQFP-80-1
C515C
V
DDEXT
50–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
V
SSEXT
and P3.7/RD
51–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.
1)
I = Input; O = Output
, P3.6/WR,
,
Data Sheet13 2003-02
C515C
XTAL1
XTAL2
ALE
PSEN
EA
CPUR
PE/SWD
HWPD
RESET
Oscillator Watchdog
OSC & Timing
CPU
8 Datapointers
Programmable
Watchdog Timer
Timer 0
Timer 1
Timer 2
Capture
Compare Unit
XRAM
2k x 8256 x 8
RAMROM/OTP
64k x 8
Emulation
Support
Logic
Port 0
Port 1
Port 2
Multiple
V
V
/
DDSS
Lines
Port 0
8 Bit Digital I/O
Port 1
8 Bit Digital I/O
Port 2
8 Bit Digital I/O
USART
Baud Rate Generator
SSC (SPI) Interface
Full-CAN
Controller
256 Byte
Reg./Data
Interrupt Unit
V
AREF
V
AGND
A/D Converter
S & H
10 Bit
MUX
Figure 4Block Diagram of the C515C
Port 3
Port 4
Port 5
Port 6
Port 7
C515C
Port 3
8 Bit Digital I/O
Port 4
8 Bit Digital I/O
Port 5
8 Bit Digital I/O
Port 6
8 Bit Analog/
Digital Inputs
Port 7
1 Bit Digital I/O
MCB03647
Data Sheet14 2003-02
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% three-byte instructions. With a 6 MHz crystal,
58% of the instructions are executed in 1
PSW
Special Function Register(D0
Bit No. MSBLSB
µs (10 MHz: 600 ns).
)Reset Value: 00
H
H
D7
H
CYACF0RS1RS0OVF1PD0
D6
H
D5
H
D4
H
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 00
01Bank 1 selected, data address 08H-0F
10Bank 2 selected, data address 10H-17
11Bank 3 selected, data address 18H-1F
D3
H
D2
H
D1
H
D0
H
H
PSW
-07
H
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.
Data Sheet15 2003-02
C515C
Memory Organization
The C515C CPU manipulates data and operands in the following five address spaces:
• up to 64 Kbytes of internal/external program memory
• up to 64 Kbytes of external data memory
• 256 bytes of internal data memory
• 256 bytes CAN controller registers / data memory
• 2 Kbytes of internal XRAM data memory
• a 128 byte special function register area
Figure 5 illustrates the memory address spaces of the C515C.
Alternatively
FFFF
Internal
(EA = 1)
External
(EA = 0)
0000
"Code Space"
FFFF
F800
F7FF
F700
H
H
H
H
Indirect
Address
Internal
RAM
FF
H
80
H
Internal
RAM
Direct
Address
Special
Function
Register
7F
H
00
H
FF
H
80
H
MCD02717
H
Internal
XRAM
External
Data
Memory
External
H
"Data Space""Internal Data Space"
(2 KByte)
Int. CAN
Controller
(256 Byte)
F6FF
H
0000
H
Figure 5C515C Memory Map
Data Sheet16 2003-02
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.
SYSCON
Special Function Register(B1
Bit No.MSBLSB
76543210
)C515C-8R Reset Value: X010XX01
H
C515C-8E Reset Value: X010X001
B
B
B1
H
–PMOD
The function of the shaded bits is not described in this section.
EALERMAP–
CSWO XMAP1
XMAP0
SYSCON
BitFunction
XMAP1XRAM/CAN controller visible access control
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 the XRAM/CAN Controller
XMAP1 = 1: Ports 0, 2 and the signals RD
and WR are activated
during accesses to XRAM/CAN Controller. In this
mode, address and data information during
XRAM/CAN Controller accesses are visible externally.
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.
Data Sheet17 2003-02
C515C
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
F700
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
to FFFFH.
H
EA. Table 3 lists the various operating conditions.
Data Sheet18 2003-02
C515C
Table 3Behaviour of P0/P2 and RD
0010X1
EA
= 0MOVX
@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
b) RD
c) XRAM is used
a) P0→Bus
P2
b) RD
c) ext.memory
is used
a) P0
(RD
P2
b) RD
c) XRAM is used
→Bus
/WR-Data)
/WR inactive
→I/O
/WR active
→Bus
/WR-Data)
→I/O
/WR inactive
/WR During MOVX Accesses
XMAP1, XMAP0
a) P0/P2→Bus
b) RD
/WR active
c) ext.memory
is used
a) P0/P2
(RD
b) RD
c) XRAM is used
a) P0→Bus
P2
b) RD
c) ext.memory
is used
a) P0
(RD
P2
b) RD
c) XRAM is used
→Bus
/WR-Data)
/WR active
→I/O
/WR active
→Bus
/WR-Data only)
→I/O
/WR active
a) P0/P2→Bus
b) RD
c) ext.memory
is used
a) P0/P2→Bus
b) RD
c) ext.memory
is used
a) P0→Bus
P2
→I/O
b) RD
c) ext.memory
is used
a) P0→Bus
P2
→I/O
b) RD
c) ext.memory
is used
/WR active
/WR active
/WR active
/WR active
EA
= 1MOVX
@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
b) RD/WR inactive
c) XRAM is used
a) P0→Bus
P2
b) RD
c) ext.memory
is used
a) P2
P0/P2
b) RD
c) XRAM is used
→Ι/0
→I/O
/WR active
→I/O
→I/O
/WR inactive
a) P0/P2→Bus
b) RD
/WR active
c) ext.memory
is used
a) P0/P2
(RD
b) RD
c) XRAM is used
a) P0→Bus
P2
b) RD
c) ext.memory is
used
a) P0
(RD
P2
b) RD
c) XRAM is used
→Bus
/WR-Data)
/WR active
→I/O
/WR active
→Bus
/WR-Data)
→I/O
/WR active
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
Data Sheet19 2003-02
Reset and System Clock
C515C
The reset input is an active low input at pin RESET
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
. Since the reset is synchronized
V
to
DD
allow a power-up reset with an external capacitor only. An automatic reset can be
V
obtained when
is applied by connecting the RESET pin to VSS via a capacitor.
DD
Figure 6shows the possible reset circuitries.
b)a)
&
+
RESET
C515C
RESET
C515C
c)
+
RESET
C515C
MCS02721
Figure 6Reset Circuitries
Figure 7 shows the recommended oscillator circiutries for crystal and external clock
operation.
Data Sheet20 2003-02
C515C
Crystal/Resonator Oscillator ModeDriving from External Source
C
2 - 10 MHz
C
Crystal Mode:
XTAL1
XTAL2XTAL2
C = 20 pF ± 10 pF (incl. stray capacitance)
:Resonator Mode
= depends on selected ceramic resonatorC
N.C.
External Oscillator
Signal
XTAL1
MCT02765
Figure 7Recommended Oscillator Circuitries
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 8External Data Memory Addressing using Multiple Datapointers
Data Sheet21 2003-02
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 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.
The Enhanced Hooks Technology, 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 program execution and data transfer
between the external emulation hardware (ICE-system) and the C500 MCU.
Data Sheet22 2003-02
C515C
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. Two special function registers of the C515C (PCON1 and DIR5) are
located in the mapped special function register area. For accessing the mapped special
function register area, 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”). As long as bit RMAP is set, mapped
special function register area 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 by software, respectively each.
SYSCON
Special Function Register(B1
)C515C-8R Reset Value: X010XX01
H
C515C-8E Reset Value: X010X001
B
B
Bit No.MSBLSB
76543210
B1
H
–PMOD
The function of the shaded bits is not described in this section.
EALERMAP–
CSWO XMAP1
XMAP0
SYSCON
BitFunction
RMAPSpecial function register map bit
RMAP = 0: The access to the non-mapped (standard) special
function register area is enabled (reset value).
RMAP = 1: The access to the mapped special function register
area is enabled.
The 59 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. The SFRs of the C515C are listed in Table 4 and Table 5. In Table 4 they
are organized in groups which refer to the functional blocks of the C515C. The CANSFRs are also included in Table 4. Table 5 illustrates the contents of the SFRs in
numeric order of their addresses. Table 6 list the CAN-SFRs in numeric order of their
addresses.
Data Sheet23 2003-02
C515C
Table 4 Special Function Registers - Functional Block
BlockSymbolNameAddrContents after
Reset
CPUACC
B
DPH
DPL
DPSEL
PSW
SP
SYSCON
A/DConverter
ADCON0
ADCON1
ADDATH
ADDATL
Interrupt
System
IEN0
IEN1
1)
1)
IEN2
1)
IP0
IP1
TCON
T2CON
SCON
1)
1)
1)
IRCON
XRAMXPAGE
SYSCON
PortsP0
P1
P2
P3
P4
P5
DIR5
P6
P7
SYSCON
WatchdogWDTREL
1)
IEN0
1)
IEN1
1)
IP0
Accumulator
B-Register
Data Pointer, High Byte
Data Pointer, Low Byte
Data Pointer Select Register
Program Status Word Register
Stack Pointer
1)
System Control RegisterC515C-8R
C515C-8E
1)
A/D Converter Control Register 0
A/D Converter Control Register 1
A/D Converter Data Register High Byte
A/D Converter Data Register Low Byte
Interrupt Enable Register 0
Interrupt Enable Register 1
Interrupt Enable Register 2
Interrupt Priority Register 0
Interrupt Priority Register 1
Timer Control Register
Timer 2 Control Register
Serial Channel Control Register
Interrupt Request Control Register
Page Address Register for Extended
on-chip XRAM and CAN Controller
1)
System Control RegisterC515C-8R
C515C-8E
Port 0
Port 1
Port 2
Port 3
Port 4
Port 5
Port 5 Direction Register
Port 6, Analog/Digital Input
Port 7
A/D Converter Control Register 0
Power Control Register
Serial Channel Buffer Register
Serial Channel Control Register
Serial Channel Reload Register, low byte
Serial Channel Reload Register, high byte
Control Register
Status Register
Interrupt Register
Bit Timing Register Low
Bit Timing Register High
Global Mask Short Register Low
Global Mask Short Register High
Upper Global Mask Long Register Low
Upper Global Mask Long Register High
Lower Global Mask Long Register Low
Lower Global Mask Long Register High
Upper Mask of Last Message Register
Low
Upper Mask of Last Message Register
High
Lower Mask of Last Message Register
Low
Lower Mask of Last Message Register
High
Message Object Registers:
Message Control Register Low
Message Control Register High
Upper Arbitration Register Low
Upper Arbitration Register High
Lower Arbitration Register Low
Lower Arbitration Register High
Message Configuration Register
Message Data Byte 0
Message Data Byte 1
Message Data Byte 2
Message Data Byte 3
Message Data Byte 4
Message Data Byte 5
Message Data Byte 6
Message Data Byte 7