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
SSC Control Register
SSC Transmit Buffer
SSC Receive Register
SSC Flag Register
SSC Interrupt Enable Register
SSC Mode Test Register
Timer 0/1 Control Register
Timer 0, High Byte
Timer 1, High Byte
Timer 0, Low Byte
Timer 1, Low Byte
Timer Mode Register
Comp./Capture Enable Reg.
Comp./Capture Reg. 1, High Byte
Comp./Capture Reg. 2, High Byte
Comp./Capture Reg. 3, High Byte
Comp./Capture Reg. 1, Low Byte
Comp./Capture Reg. 2, Low Byte
Comp./Capture Reg. 3, Low Byte
Com./Rel./Capt. Reg. High Byte
Com./Rel./Capt. Reg. Low Byte
Timer 2, High Byte
Timer 2, Low Byte
Timer 2 Control Register
Power Control Register
Power Control Register 1C515C-8R
C515C-8E
1)
This special function register is listed repeatedly since some bits of it also belong to other functional blocks.
2)
Bit-addressable special function registers
3)
“X” means that the value is undefined and the location is reserved.
4)
This SFR is a mapped SFR. For accessing this SFR, bit PDIR in SFR IP1 must be set.
5)
The notation “n” in the message object address definition defines the number of the related message object.
6)
“X” means that the value is undefined and the location is reserved. “U” means that the value is unchanged by
a reset operation. “U” values are undefined (as “X”) after a power-on reset operation.
7)
SFR is located in the mapped SFR area. For accessing this SFR, bit RMAP in SFR SYSCON must be set.
93
94
95
AB
AC
96
88
8C
8D
8A
8B
89
C1
C3
C5
C7
C2
C4
C6
CB
CA
CD
CC
C8
87
88
88
2)
H
H
H
H
H
H
2)
H
H
H
H
H
H
H
H
H
H
H
H
H
H
H
H
H
2)
H
H
7)
H
7)
H
2)
07
H
3)
XX
H
3)
XX
H
XXXXXX00
XXXXXX00
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
00
H
0XXXXXXX
0XX0XXXX
3)
B
3)
B
3)
B
3)
B
Data Sheet26 2003-02
Table 5Contents of the SFRs, SFRs in Numeric Order
unchanged by a reset operation. “U” values are undefined (as “X”) after a power-on reset operation.
Data Sheet31 2003-02
C515C
Digital I/O Ports
The C515C allows for digital I/O on 49 lines grouped into 6 bidirectional 8-bit ports and
one 1-bit port. Each port bit consists of a latch, an output driver and an input buffer. Read
and write accesses to the I/O ports P0 through P7 are performed via their corresponding
special function registers P0 to P7. The port structure of port 5 of the C515C is especially
designed to operate either as a quasi-bidirectional port structure, compatible to the
standard 8051-Family, or as a genuine bidirectional port structure. This port operating
mode can be selected by software (setting or clearing the bit PMOD in the SFR
SYSCON).
The output drivers of port 0 and 2 and the input buffers of port 0 are also used for
accessing external memory. In this application, port 0 outputs the low byte of the external
memory address, time-multiplexed with the byte being written or read. Port 2 outputs the
high byte of the external memory address when the address is 16 bits wide. Otherwise,
the port 2 pins continue emitting the P2 SFR contents.
Analog Input Ports
Ports 6 is available as input port only and provides two functions. When used as digital
inputs, the corresponding SFR P6 contains the digital value applied to the port 6 lines.
When used for analog inputs the desired analog channel is selected by a three-bit field
in SFR ADCON0 or SFR ADCON1. Of course, it makes no sense to output a value to
these input-only ports by writing to the SFR P6. This will have no effect.
If a digital value is to be read, the voltage levels are to be held within the input voltage
specifications (
V
IL/VIH
). Since P6 is not bit-addressable, all input lines of P6 are read at
the same time by byte instructions.
Nevertheless, it is possible to use port 6 simultaneously for analog and digital input.
However, care must be taken that all bits of P6 that have an undetermined value caused
by their analog function are masked.
Data Sheet32 2003-02
C515C
Port Structure Selection of Port 5
After a reset operation of the C515C, the quasi-bidirectional 8051-compatible port
structure is selected. For selection of the bidirectional (CMOS) port 5 structure the bit
PMOD of SFR SYSCON must be set. Because each port 5 pin can be programmed as
an input or an output, additionally, after the selection of the bidirectional mode the
direction register DIR5 of port 5 must be written. This direction register is mapped to the
port 5 register. This means, the port register address is equal to its direction register
address. Figure 10 illustrates the port and direction register configuration.
Int. Bus, Bit 7
Write to IP 1
Instruction sequence for the programming of the direction registers:
ORL IP1, #80H ; Set bit PDIR
D
RQ
Write port x direction register with value YYH;#OYYHDIRx,MOV
Q
PDIR
Delay:
2.5 Machine Cycles
Figure 10Port Register, Direction Register
Enable
Enable
Write to Port
Port Register
Direction Register
Read Port
Internal
Bus
MCS02649
Data Sheet33 2003-02
C515C
Timer / Counter 0 and 1
Timer / Counter 0 and 1 can be used in four operating modes as listed in Table 7:
Table 7Timer/Counter 0 and 1 Operating Modes
ModeDescriptionTMODTimer/Counter Input Clock
M1M0internalexternal (max)
f
08-bit timer/counter with a
00
divide-by-32 prescaler
116-bit timer/counter01
/6 × 32f
OSC
f
/6f
OSC
OSC
OSC
/12 × 32
/12
28-bit timer/counter with 8-bit
10
autoreload
3Timer/counter 0 used as
11
one 8-bit timer/counter and
one 8-bit timer / Timer 1
stops
In the “timer” function (C/
Therefore the count rate is
T = ‘0’) the register is incremented every machine cycle.
f
/6.
OSC
In the “counter” function the register is incremented in response to a 1-to-0 transition at
its corresponding external input pin (P3.4/T0, P3.5/T1). Since it takes two machine
f
cycles to detect a falling edge the max. count rate is
INT1 (P3.2, P3.3) can be programmed to function as a gate to facilitate pulse width
/12. External inputs INT0 and
OSC
measurements. Figure 11 illustrates the input clock logic.
P3.4/T0
P3.5/T1
OSC
÷
6
C/T = 0
C/T = 1
Control
f
/6
OSC
Timer 0/1
Input Clock
Gate
(TMOD)
P3.2/INT0
P3.3/INT1
=1
TR0
TR1
_
<
1
&
MCS03117
Figure 11Timer/Counter 0 and 1 Input Clock Logic
Data Sheet34 2003-02
C515C
Timer / Counter 2 with Compare/Capture/Reload
The timer 2 of the C515C provides additional compare/capture/reload features, which
allow the selection of the following operating modes:
• Compare: up to 4 PWM signals with 16-bit/600 ns resolution
• Capture: up to 4 high speed capture inputs with 600 ns resolution
• Reload: modulation of timer 2 cycle time
The block diagram in Figure 12 shows the general configuration of timer 2 with the
additional compare/capture/reload registers. The I/O pins which can used for timer 2
control are located as multifunctional port functions at port 1.
P1.5/
T2EX
P1.7/
T2
OSC
Sync.
T2I0
T2I1
Sync.
&
÷6
f
OSC
÷12
T2PS
Bit1616 Bit16 Bit16 Bit
Comparator
Comparator
Comparator
EXEN2
Reload
EXF2
Reload
Timer 2
TH2TL2
Compare
Comparator
Capture
_
<
1
TF2
Input/
Output
Control
Interrupt
Request
P1.0/
INT3/
CC0
P1.1/
INT4/
CC1
P1.2/
INT5/
CC2
P1.2/
INT6/
CCL3/CCH3
CCL2/CCH2
CCL1/CCH1
CRCL/CRCH
CC3
MCB02730
Figure 12 Timer 2 Block Diagram
Data Sheet35 2003-02
C515C
Timer 2 Operating Modes
The timer 2, which is a 16-bit-wide register, can operate as timer, event counter, or gated
timer. A roll-over of the count value in TL2/TH2 from all 1’s to all 0’s sets the timer
overflow flag TF2 in SFR IRCON, which can generate an interrupt. The bits in register
T2CON are used to control the timer 2 operation.
Timer Mode: In timer function, the count rate is derived from the oscillator frequency. A
prescaler offers the possibility of selecting a count rate of 1/6 or 1/12 of the oscillator
frequency.
Gated Timer Mode: In gated timer function, the external input pin T2 (P1.7) functions as
a gate to the input of timer 2. If T2 is high, the internal clock input is gated to the timer.
T2 = 0 stops the counting procedure. This facilitates pulse width measurements. The
external gate signal is sampled once every machine cycle.
Event Counter Mode: In the event counter function. the timer 2 is incremented in
response to a 1-to-0 transition at its corresponding external input pin T2 (P1.7). In this
function, the external input is sampled every machine cycle. Since it takes two machine
cycles (12 oscillator periods) to recognize a 1-to-0 transition, the maximum count rate is
1/12 of the oscillator frequency. There are no restrictions on the duty cycle of the external
input signal, but to ensure that a given level is sampled at least once before it changes,
it must be held for at least one full machine cycle.
Reload of Timer 2: Two reload modes are selectable:
In mode 0, when timer 2 rolls over from all 1’s to all 0’s, it not only sets TF2 but also
causes the timer 2 registers to be loaded with the 16-bit value in the CRC register, which
is preset by software.
In mode 1, a 16-bit reload from the CRC register is caused by a negative transition at the
corresponding input pin P1.5/T2EX. This transition will also set flag EXF2 if bit EXEN2
in SFR IEN1 has been set.
Data Sheet36 2003-02
C515C
Timer 2 Compare Modes
The compare function of a timer/register combination operates as follows: the 16-bit
value stored in a compare or compare/capture register is compared with the contents of
the timer register; if the count value in the timer register matches the stored value, an
appropriate output signal is generated at a corresponding port pin and an interrupt can
be generated.
Compare Mode 0
In compare mode 0, upon matching the timer and compare register contents, the output
signal changes from low to high. lt goes back to a low level on timer overflow. As long as
compare mode 0 is enabled, the appropriate output pin is controlled by the timer circuit
only and writing to the port will have no effect. Figure 13 shows a functional diagram of
a port circuit when used in compare mode 0. The port latch is directly controlled by the
timer overflow and compare match signals. The input line from the internal bus and the
write-to-latch line of the port latch are disconnected when compare mode 0 is enabled.
Port Circuit
Compare Register
Circuit
Compare Reg.
16 Bit
Comparator
Bit16
Timer Register
Timer Circuit
Compare
Match
Timer
Overflow
Internal
Bus
Write to
Latch
Figure 13Port Latch in Compare Mode 0
S
D
Latch
CLK
R
Read Latch
Q
Port
Q
Read Pin
V
DD
Port
Pin
MCS02661
Data Sheet37 2003-02
C515C
Compare Mode 1
If compare mode 1 is enabled and the software writes to the appropriate output latch at
the port, the new value will not appear at the output pin until the next compare match
occurs. Thus, it can be choosen whether the output signal has to make a new transition
(1-to-0 or 0-to-1, depending on the actual pin-level) or should keep its old value at the
time when the timer value matches the stored compare value.
In compare mode 1 (see Figure 14) the port circuit consists of two separate latches. One
latch (which acts as a “shadow latch”) can be written under software control, but its value
will only be transferred to the port latch (and thus to the port pin) when a compare match
occurs.
Port Circuit
Read Latch
Compare Register
Circuit
Compare Reg.
16 Bit
Comparator
16 Bit
Timer Register
Timer Circuit
Compare
Match
Internal
Bus
Write to
Latch
D
Shadow
Latch
CLK
Q
Figure 14Compare Function in Compare Mode 1
D
Port
Latch
Read Pin
Q
QCLK
V
DD
Port
Pin
MCS02662
Data Sheet38 2003-02
C515C
Serial Interface (USART)
The serial port is full duplex and can operate in four modes (one synchronous mode,
three asynchronous modes) as illustrated in Table 8.
Table 8USART Operating Modes
SCONDescription
Mode
SM0SM1
000Shift register mode, fixed baud rate
Serial data enters and exits through R
the shift clock; 8-bit are transmitted/received (LSB first)
1018-bit UART, variable baud rate
10 bits are transmitted (through T
R
×D)
×D; T×D outputs
×D) or received (at
2109-bit UART, fixed baud rate
11 bits are transmitted (through T
×D)
R
×D) or received (at
3119-bit UART, variable baud rate
Like mode 2
For clarification some terms regarding the difference between “baud rate clock” and
“baud rate” should be mentioned. In the asynchronous modes the serial interfaces
require a clock rate which is 16 times the baud rate for internal synchronization.
Therefore, the baud rate generators/timers have to provide a “baud rate clock” (output
signal in Figure 15to the serial interface which - there divided by 16 - results in the
actual “baud rate”. Further, the abbreviation
f
refers to the oscillator frequency
OSC
(crystal or external clock operation).
The variable baud rates for modes 1 and 3 of the serial interface can be derived either
from timer 1 or from a dedicated baud rate generator (see Figure 15).
Data Sheet39 2003-02
Timer 1
Overflow
f
OSC
Baud
Rate
Generator
(SRELH
SRELL)
6÷÷
ADCON0.7
(BD)
0
1
Mode 2
Mode 0
Mode 1
Mode 3
SCON.7
SCON.6
(SM0/
SM1)
Only one mode
can be selected
C515C
PCON.7
2
(SMOD)
0
1
Baud
Rate
Clock
Note: The switch configuration shows the reset state.
MCS02733
Figure 15Block Diagram of Baud Rate Generation for the Serial Interface
Table 9 below lists the values/formulas for the baud rate calculation of the serial
interface with its dependencies of the control bits BD and SMOD.
Table 9Serial Interface - Baud Rate Dependencies
Serial Interface
Operating Modes
Active Control
Bits
Baud Rate Calculation
BDSMOD
Mode 0 (Shift
––
f
OSC
/ 6
Register)
Mode 1 (8-bit UART)
Mode 3 (9-bit UART)
0XControlled by timer 1 overflow:
SMOD
(2
× timer 1 overflow rate) / 32
1XControlled by baud rate generator
(2
(32
SMOD
× f
OSC
) /
× baud rate generator overflow rate)
f
Mode 2 (9-bit UART)–0
1
Data Sheet40 2003-02
OSC
f
OSC
/ 32
/ 16
C515C
SSC Interface
The C515C microcontroller provides a Synchronous Serial Channel unit, the SSC. This
interface is compatible to the popular SPI serial bus interface. Figure 16 shows the block
diagram of the SSC. The central element of the SSC is an 8-bit shift register. The input
and the output of this shift register are each connected via a control logic to the pin P4.2
/ SRI (SSC Receiver In) and P4.3 / STO (SSC Transmitter Out). This shift register can
be written to (SFR STB) and can be read through the Receive Buffer Register SRB.
f
OSC
Clock Divider
Clock Selection
Receive Buffer Register
Interrupt
SCIEN
Int. Enable Reg.
SSCCONSCF
Control RegisterStatus Register
Control Logic
Shift Register
SRB
STB
Pin
Control
Logic
Internal Bus
P4.1/SCLK
P4.2/SRI
P4.3/STO
P4.4/SLS
MCB02735
Figure 16 SSC Block Diagram
The SSC has implemented a clock control circuit, which can generate the clock via a
baud rate generator in the master mode, or receive the transfer clock in the slave mode.
The clock signal is fully programmable for clock polarity and phase. The pin used for the
clock signal is P4.1 / SCLK. When operating in slave mode, a slave select input is
provided which enables the SSC interface and also will control the transmitter output.
The pin used for this is P4.4 / SLS
.
The SSC control block is responsible for controlling the different modes and operation of
the SSC, checking the status, and generating the respective status and interrupt signals.
Data Sheet41 2003-02
C515C
CAN Controller
The on-chip CAN controller is the functional heart which provides all resources that are
required to run the standard CAN protocol (11-bit identifiers) as well as the extended
CAN protocol (29-bit identifiers). It provides a sophisticated object layer to relieve the
CPU of as much overhead as possible when controlling many different message objects
(up to 15). This includes bus arbitration, resending of garbled messages, error handling,
interrupt generation, etc. In order to implement the physical layer, external components
have to be connected to the C515C.
The internal bus interface connects the on-chip CAN controller to the internal bus of the
microcontroller. The registers and data locations of the CAN interface are mapped to a
specific 256 bytes wide address range of the external data memory area (F700
F7FF
) and can be accessed using MOVX instructions. Figure 17 shows a block
H
diagram of the on-chip CAN controller.
H
to
Data Sheet42 2003-02
C515C
TXDCRXDC
Messages
Handlers
BTL-Configuration
TX/RX Shift Register
Intelligent
Memory
Interrupt
Register
CRC
Gen./Check
Messages
Bit
Timing
Logic
Timing
Generator
Clocks
(to all)
Control
Status +
Control
Status
Register
to internal Bus
Bit
Stream
Processor
Error
Management
Logic
MCB02736
Figure 17 CAN Controller Block Diagram
The TX/RX Shift Register holds the destuffed bit stream from the bus line to allow the
parallel access to the whole data or remote frame for the acceptance match test and the
parallel transfer of the frame to and from the Intelligent Memory.
The Bit Stream Processor (BSP) is a sequencer controlling the sequential data stream
between the TX/RX Shift Register, the CRC Register, and the bus line. The BSP also
controls the EML and the parallel data stream between the TX/RX Shift Register and the
Intelligent Memory such that the processes of reception, arbitration, transmission, and
error signalling are performed according to the CAN protocol. Note that the automatic
retransmission of messages which have been corrupted by noise or other external error
conditions on the bus line is handled by the BSP.
Data Sheet43 2003-02
C515C
The Cyclic Redundancy Check Register (CRC) generates the Cyclic Redundancy
Check code to be transmitted after the data bytes and checks the CRC code of incoming
messages. This is done by dividing the data stream by the code generator polynomial.
The Error Management Logic (EML) is responsible for the fault confinement of the
CAN device. Its counters, the Receive Error Counter and the Transmit Error Counter, are
incremented and decremented by commands from the Bit Stream Processor. According
to the values of the error counters, the CAN controller is set into the states error active,
error passive and busoff.
The Bit Timing Logic (BTL) monitors the busline input RXDC and handles the busline
related bit timing according to the CAN protocol. The BTL synchronizes on a recessive
to dominant busline transition at Start of Frame (hard synchronization) and on any further
recessive to dominant busline transition, if the CAN controller itself does not transmit a
dominant bit (resynchronization). The BTL also provides programmable time segments
to compensate for the propagation delay time and for phase shifts and to define the
position of the Sample Point in the bit time. The programming of the BTL depends on the
baudrate and on external physical delay times.
The Intelligent Memory (CAM/RAM array) provides storage for up to 15 message
objects of maximum 8 data bytes length. Each of these objects has a unique identifier
and its own set of control and status bits. After the initial configuration, the Intelligent
Memory can handle the reception and transmission of data without further CPU actions.
Switch-off Capability of the CAN Controller (C515C-8E only)
For power consumption reasons, the on-chip CAN controller in the C515C-8E can be
switched off by setting bit CSWO (bit 2) in SFR SYSCON. When the CAN controller is
switched off its clock signal is turned off and the operation of the CAN controller is
stopped. This switch-off state of the CAN controller is equal to its state in software power
down mode. After clearing bit CSWO again the CAN controller has to be reconfigured.
Data Sheet44 2003-02
C515C
10-Bit A/D Converter
The C515C includes a high performance / high speed 10-bit A/D-Converter (ADC) with
8 analog input channels. It operates with a successive approximation technique and
uses self calibration mechanisms for reduction and compensation of offset and linearity
errors. The A/D converter provides the following features:
• 8 multiplexed input channels (port 6), which can also be used as digital inputs
• 10-bit resolution
• Single or continuous conversion mode
• Internal or external start-of-conversion trigger capability
• Interrupt request generation after each conversion
• Using successive approximation conversion technique via a capacitor array
• Built-in hidden calibration of offset and linearity errors
The main functional blocks of the A/D converter are shown in Figure 19.
The A/D converter uses basically two clock signals for operation: the input clock
(= 1/tIN) and the conversion clock f
the C515C system clock
f
equal to
. The conversion clock is limited to a maximum frequency of 2 MHz and
OSC
therefore must be adapted to
f
which is applied at the XTAL pins. The input clock fIN is
OSC
f
OSC
ADC
(= 1/t
). These clock signals are derived from
ADC
by programming the conversion clock prescaler. The
f
IN
table in Figure 18 shows the prescaler ratios and the resulting A/D conversion times
which must be selected for typical system clock rates.
Data Sheet45 2003-02
C515C
ADCL
f
OSC
48÷
MUX
÷
Clock Prescaler
Conversion Clock f
Input ClockINf
ADC
A/D
Converter
_
<
Conditions:f
ADC max
MCU System
2 MHzfIN= f
ADCLConversion
Clock Rate
(
f
)
OSC
2 MHz0.5
4 MHz01
6 MHz01.5
8 MHz02
10 MHz11.25
Figure 18 A/D Converter Clock Selection
=
OSC
Clock
f
[MHz]
ADC
1
CLP
MCS02748
Data Sheet46 2003-02
C515C
Internal
IEN1 (B8 )
EXEN2EX6EX5
H
SWDT
EX3EX4EX2EADC
Bus
Port 6
f
OSC
V
AREF
V
AGND
IRCON (C0 )
EXF2
P6 (DB )
P6.7
ADCON1 (DC )
ADCL
ADCON0 (D8 )
BD
Conversion
Clock
Prescaler
H
TF2
IEX6
H
P6.5
P6.6
H
--
H
ADEXCLK
MUX
IEX5
P6.4
-
BSY
S & H
Conversion
Clock
Input
Clock
IEX4
-
ADM
f
f
ADC
IN
IEX3
P6.2P6.3
MX2
MX2
Single/
Continuous
Mode
IADC
IEX2
P6.1
P6.0
MX0
MX1
MX0
MX1
A/D
Converter
ADDATH
(D9 )
.2
.3
.4
.5
.6
.7
.8
MSB
ADDATL
(DA )
HH
-
-
-
-
-
-
LSB
.1
P4.0/ADST
Write to
ADDATL
Start of
Conversion
Internal
Bus
Shaded bit locations are not used in ADC-functions.
MCB02747
Figure 19A/D Converter Block Diagram
Data Sheet47 2003-02
C515C
Interrupt System
The C515C provides 17 interrupt sources with four priority levels. Seven interrupts can
be generated by the on-chip peripherals (timer 0, timer 1, timer 2, serial interface,
A/D converter, SSC interface, CAN controller), and ten interrupts may be triggered
externally (P1.5/T2EX, P3.2/INT0, P3.3/INT1, P1.4/INT2, P1.0/INT3
P1.2/INT5, P1.3/INT6, P7.0/INT7
, P4.5/INT8). The wake-up from power-down mode
interrupt has a special functionality which allows to exit from the software power-down
mode by a short low pulse at pin P3.2/INT0
.
In the C515C the 17 interrupt sources are combined to six groups of two or three interrupt
sources. Each interrupt group can be programmed to one of the four interrupt priority
levels. Figure 20 to Figure 22 give a general overview of the interrupt sources and
illustrate the interrupt request and control flags.
, P1.1/INT4,
Data Sheet48 2003-02
C515C
Highest
P3.2/
INT0
IT0
TCON.0
IE0
TCON.1
EX0
IEN0.0
0003
H
Priority Level
Lowest
Priority Level
A/D Converter
IRCON.0
Timer 0
Overflow
Status
SIE
CR.2
Error
EIE
CR.3
Message
Transmit
CAN Controller Interrupt Sources
Message
Receive
TXIE
MCR0.3/2
RXIE
MCR0.5/4
_
_
<
1
<
1
TCON.5
IADC
TF0
CR.1
see Note
INTPND
MCR0.0/1
EADC
IEN1.0
ET0
IEN0.1
ECANIE
IEN2.1
0043
000B
008B
H
IP1.0IP0.0
H
H
Polling Sequence
P1.4/
INT2
I2FR
T2CON.5
Bit addressable
Request Flag is
cleared by hardware
Note: Each of the 15 CAN controller message objects provides the bits/flags in the shaded area.
IE0
TF0
IE1
TF1
RI / TI
TF2 / EXF2
IADC
IEX2
IEX3
IEX4
IEX5
IEX6
–
CAN controller008B
External Interrupt 700A3
External Interrupt 800AB
SSC interface0093
H
H
H
H
–
–
–
TC / WCOL
Data Sheet52 2003-02
C515C
Fail Save Mechanisms
The C515C offers two on-chip peripherals which monitor the program flow and ensure
an automatic “fail-safe” reaction for cases where the controller’s hardware fails or the
software hangs up:
• A programmable watchdog timer (WDT) with variable time-out period from
512 microseconds up to approx. 1.1 seconds at 6 MHz.
• An oscillator watchdog (OWD) which monitors the on-chip oscillator and forces the
microcontroller into reset state in case the on-chip oscillator fails; it also provides the
clock for a fast internal reset after power-on.
Programmable Watchdog Timer
The watchdog timer in the C515C is a 15-bit timer, which is incremented by a count rate
of
f
/12 up to f
OSC
upper 7 bit of the watchdog timer can be written. Figure 23 shows the block diagram of
the watchdog timer unit.
/192. For programming of the watchdog timer overflow rate, the
OSC
/6
f÷2
OSC
WDT Reset Request
-------WDTS
External HW Reset
External HW Power-Down
PE/SWD
Control Logic
-
WDT
SWDT-
-
-
-
07
÷16
148
IP0 (A9 )
H
WDTPSEL
6
-
-
-
--
IEN0 (A8 )
-
-
-
-
IEN1 (B8 )
H
H
WDTL
WDTH
WDTREL (86 )
H
MCB02755
07
Figure 23Block Diagram of the Programmable Watchdog Timer
The watchdog timer can be started by software (bit SWDT) or by hardware through pin
PE
/SWD, but it cannot be stopped during active mode of the C515C. If the software fails
to refresh the running watchdog timer an internal reset will be initiated on watchdog timer
overflow. For refreshing of the watchdog timer the content of the SFR WDTREL is
transferred to the upper 7-bit of the watchdog timer. The refresh sequence consists of
Data Sheet53 2003-02
C515C
two consecutive instructions which set the bits WDT and SWDT each. The reset cause
(external reset or reset caused by the watchdog) can be examined by software (flag
WDTS). It must be noted, however, that the watchdog timer is halted during the idle
mode and power down mode of the processor.
Oscillator Watchdog
The oscillator watchdog unit serves for four functions:
• Monitoring of the on-chip oscillator’s function
The watchdog supervises the on-chip oscillator's frequency; if it is lower than the
frequency of the auxiliary RC oscillator in the watchdog unit, the internal clock is
supplied by the RC oscillator and the device is brought into reset; if the failure
condition disappears (i.e. the on-chip oscillator has a higher frequency than the RC
oscillator), the part executes a final reset phase of typ. 1 ms in order to allow the
oscillator to stabilize; then the oscillator watchdog reset is released and the part starts
program execution again.
• Fast internal reset after power-on
The oscillator watchdog unit provides a clock supply for the reset before the on-chip
oscillator has started. The oscillator watchdog unit also works identically to the
monitoring function.
• Restart from the hardware power down mode
If the hardware power down mode is terminated the oscillator watchdog has to control
the correct start-up of the on-chip oscillator and to restart the program. The oscillator
watchdog function is only part of the complete hardware power down sequence;
however, the watchdog works identically to the monitoring function.
• Control of external wake-up from software power-down mode
When the software power-down mode is left by a low level at the P3.2/INT0
oscillator watchdog unit assures that the microcontroller resumes operation
(execution of the power-down wake-up interrupt) with the nominal clock rate. In the
power-down mode the RC oscillator and the on-chip oscillator are stopped. Both
oscillators are started again when power-down mode is released. When the on-chip
oscillator has a higher frequency than the RC oscillator, the microcontroller starts
operation after a final delay of typ. 1 ms in order to allow the on-chip oscillator to
stabilize.
pin, the
Data Sheet54 2003-02
C515C
P3.2/
INT0
XTAL1
XTAL2
EWPD
Power-Down
(PCON1.7)Mode Activated
Control
Logic
Start/
Stop
RC
Oscillator
f
RC
f
1
÷5÷2
3 MHz
Frequency
Comparator
Start/
f
2
Stop
On-Chip
Oscillator
OWDS
f
2<1
Control
f
Logic
Delay
Power-Down Mode
Wake-Up Interrupt
_
<
1
IP0 (A9 )
H
Internal
Reset
Internal
Clock
Figure 24Block Diagram of the Oscillator Watchdog
MCB02757
Data Sheet55 2003-02
C515C
Power Saving Modes
The C515C provides two basic power saving modes, the idle mode and the power down
mode. Additionally, a slow down mode is available. This power saving mode reduces the
internal clock rate in normal operating mode and it can be also used for further power
reduction in idle mode.
• Idle mode
The CPU is gated off from the oscillator. All peripherals are still provided with the clock
and are able to work. Idle mode is entered by software and can be left by an interrupt
or reset.
• Power down mode
The operation of the C515C is completely stopped and the oscillator is turned off. This
mode is used to save the contents of the internal RAM with a very low standby current.
Software power down mode: Software power down mode is entered by software
and can be left by reset or by a short low pulse at pin P3.2/INT0
C515C-8E only).
Hardware power down mode: Hardware power down mode is entered when the pin
HWPD
is put to low level.
• Slow-down mode
The controller keeps up the full operating functionality, but its normal clock frequency
is internally divided by 32. This slows down all parts of the controller, the CPU and all
peripherals, to 1/32
th
of their normal operating frequency. Slowing down the frequency
significantly reduces power consumption. The slow down mode can be combined with
the idle mode.
(or P4.7/RXDC,
Table 11 gives a general overview of the entry and exit conditions of the power saving
modes.
In the power down mode of operation,
consumption. It must be ensured, however, that
down mode is invoked, and that
V
is restored to its normal operating level, before the
DD
V
can be reduced to minimize power
DD
V
is not reduced before the power
DD
power down mode is terminated.
If e.g. the idle mode is left through an interrupt, the microcontroller state (CPU, ports,
peripherals) remains preserved. If a power saving mode is left by a hardware reset, the
microcontroller state is disturbed and replaced by the reset state of the C515C.
If WS (bit 4) is SFR PCON1 is set (C515C-8E only), pin P4.7/RXDC
is alternatively
selected as wake-up pin for the software power down mode. If WS (bit 4) is SFR PCON1
is cleared (C515C-8E only), pin P3.2/INT0
is selected as wake-up pin for the software
power down mode.
For the C515C-8R, P3.2/INT0
is always selected as wake-up pin.
Data Sheet56 2003-02
Table 11Power Saving Modes Overview
C515C
ModeEntering
(2-Instruction
Example)
Idle modeORL PCON, #01
ORL PCON, #20
Software
Power-Down
ORL PCON, #02
ORL PCON, #40
Mode
Hardware
HWPD
= lowHWPD = highC515C is put into its reset
Power-Down
Mode
Leaving byRemarks
Occurrence of an
H
interrupt from a
H
peripheral unit
Hardware Reset
CPU clock is stopped;
CPU maintains their data;
peripheral units are active (if
enabled) and provided with
clock
Hardware ResetOscillator is stopped;
H
H
Short low pulse at
pin P3.2/INT0
(or P4.7/RXDC
,
contents of on-chip RAM
and SFR’s are maintained;
C515C-8E only)
state and the oscillator is
stopped;
ports become floating
outputs
Slow Down
Mode
ORL PCON, #10
ANL PCON, #0EF
H
or
Hardware Reset
Oscillator frequency is
H
reduced to 1/32 of its
nominal frequency
Data Sheet57 2003-02
C515C
OTP Memory Operation (C515C-8E only)
The C515C-8E contains a 64 Kbytes one-time programmable (OTP) program memory.
With the C515C-8E fast programming cycles are achieved (1 byte in 100
several levels of OTP memory protection can be selected.
For programming of the device, the C515C-8E must be put into the programming mode.
This typically is done not in-system but in a special programming hardware. In the
programming mode the C515C-8E operates as a slave device similar as an EPROM
standalone memory device and must be controlled with address/data information,
control lines, and an external 11.5 V programming voltage. Figure 25 shows the pins of
the C515C-8E which are required for controlling of the OTP programming mode.
µs). Also
V
SSDD
MCP03651
P0-7
EA/
V
PP
PROG
PRD
RESET
PSEN
PSEL
A0-7
A8-A15
PALE
PMSEL0
PMSEL1
XTAL1
XTAL2
V
Port 2Port 0
C515C-8E
Figure 25 Programming Mode Configuration of the C515C-8E
Figure 26P-MQFP-80-1 Pin Configuration of the C515C-8E in Programming
Mode (top view)
Data Sheet59 2003-02
C515C
The following Table 12 contains the functional description of all C515C-8E pins which
are required for OTP memory programming.
Table 12 Pin Definitions and Functions in Programming Mode
SymbolPin Number I/O
1)
Function
RESET
1IReset
PMSEL0
PMSEL11516
This input must be at static “0” (active) level during the
whole programming mode.
I
I
Programming mode selection pins
These pins are used to select the different access
modes in programming mode. PMSEL1,0 must satisfy
a setup time to the rising edge of PALE. When the logic
level of PMSEL1,0 is changed, PALE must be at low
level.
PMSEL1PMSEL0Access Mode
00Reserved
01Read version bytes
10Program/read lock bits
11Program/read OTP memory
byte
PSEL
17 IBasic programming mode select
This input is used for the basic programming mode
selection and must be switched according Figure 27.
PRD
18IProgramming mode read strobe
This input is used for read access control for OTP
memory read, version byte read, and lock bit read
operations.
PALE19IProgramming address latch enable
PALE is used to latch the high address lines. The high
address lines must satisfy a setup and hold time to/from
the falling edge of PALE. PALE must be at low level
whenever the logic level of PMSEL1,0 is changed.
XTAL236IXTAL2
Input to the oscillator amplifier.
XTAL137OXTAL1
Output of the inverting oscillator amplifier.
Data Sheet60 2003-02
Table 12 Pin Definitions and Functions in Programming Mode (cont’d)
SymbolPin Number I/O
1)
Function
C515C
A0/A8 A7/A15
PSEN
PROG
/V
EA
PP
38 - 45IAddress lines
P2.0-7 are used as multiplexed address input lines
A0-A7 and A8-A15. A8-A15 must be latched with PALE.
47IProgram store enable
This input must be at static “0” level during the whole
programming mode.
48IProgramming mode write strobe
This input is used in programming mode as a write
strobe for OTP memory program and lock bit write
operations. During basic programming mode selection
a low level must be applied to PROG
.
49IExternal Access / Programming voltage
This pin must be at 11.5 V (
V
) voltage level during
PP
programming of an OTP memory byte or lock bit. During
an OTP memory read operation this pin must be at high
level (
V
). This pin is also used for basic programming
IH
mode selection. At basic programming mode selection
a low level must be applied to EA
/VPP.
D0 - 752 - 58I/OData lines 0-7
During programming mode, data bytes are read or
written from or to the C515C-8E via the bidirectional
D0-7 which are located at port 0.
V
SS
V
DD
N.C.2-12, 20-31,
1)
I = Input; O = Output
13, 34, 35,
51, 70
14, 32, 33,
50, 69
46, 60-67,
69, 71-80
–Circuit ground potential
must be applied to these pins in programming mode.
–Power supply terminal
must be applied to these pins in programming mode.
–Not Connected
These pins should not be connected in programming
mode.
Data Sheet61 2003-02
C515C-8E Basic Programming Mode Selection
The basic programming mode selection scheme is shown in Figure 27.
C515C
V
DD
Clock
(XTAL1/XTAL2)
RESET
PSEN
PMSEL1, 0
PROG
PRD
PSEL
5 V
Stable
"0"
"0"
0.1
"0"
"1"
PALE
EA/
V
PP
0 V
"0"
V
PP
V
IH
Ready for access
mode selection
During this period signals
are not actively driven
The C515C-8E has two programmable lock bits which, when programmed according
Table 14, provide four levels of protection for the on-chip OTP code memory. The state
of the lock bits can also be read.
Data Sheet63 2003-02
Table 14 Lock Bit Protection Types
C515C
Lock Bits at
D1, D0
Protection
Level
Protection Type
D1D0
11Level 0The OTP lock feature is disabled. During normal
operation of the C515C-8E, the state of the EA
pin is
not latched on reset.
10Level 1During normal operation of the C515C-8E, MOVC
instructions executed from external program memory
are disabled from fetching code bytes from internal
memory. EA
is sampled and latched on reset. An OTP
memory read operation is only possible according to
ROM verification mode 2, as it is defined for a
protected ROM version of the C515C-8R. Further
programming of the OTP memory is disabled
(reprogramming security).
01Level 2Same as level 1, but also OTP memory read operation
using ROM verification mode 2 is disabled.
00Level 3Same as level 2; but additionally external code
execution by setting EA
= low during normal operation
of the C515C-8E is no more possible.
External code execution, which is initiated by an
internal program (e.g. by an internal jump instruction
above the ROM boundary), is still possible.
Data Sheet64 2003-02
Absolute Maximum Ratings
ParameterSymbolLimit ValuesUnitNotes
min.max.
C515C
Storage temperature
V
Voltage on
respect to ground (
pins with
DD
V
SS
)
Voltage on any pin with respect
to ground (
V
SS
)
Input current on any pin during
T
ST
V
DD
V
IN
–-1010mA–
-65150°C–
-0.56.5V–
-0.5VDD + 0.5V–
overload condition
Absolute sum of all input
––|100mA|mA–
currents during overload
condition
Power dissipation
P
DISS
–1W–
Note: Stresses above those listed under “Absolute Maximum Ratings” may cause
permanent damage of the device. This is a stress rating only and functional
operation of the device at these or any other conditions above those
indicated in the operational sections of this specification is not implied.
Exposure to absolute maximum rating conditions for longer periods may
affect device reliability. During absolute maximum rating overload
conditions (
ground (
V
> VDD or VIN< VSS) the voltage on VDD pins with respect to
IN
V
) must not exceed the values defined by the absolute maximum
SS
ratings.
Data Sheet65 2003-02
Operating Conditions
ParameterSymbolLimit ValuesUnitNotes
min.max.
C515C
Supply voltage
Ground voltage
Ambient temperature:
SAB-C515C
SAF-C505
SAH-C505
Analog reference voltage
Analog ground voltage
Analog input voltage
XTAL clock
V
DD
V
SS
T
A
T
A
T
A
V
AREF
V
AGND
V
AIN
f
OSC
4.255.5VActive mode,
f
OSCmax
= 10 MHz
25.5VPower Down
mode
0VReference voltage
°C–
070
-4085
-40110
4VDD + 0.1V–
V
- 0.1VSS + 0.2V–
SS
V
AGND
V
AREF
V–
210MHz–
Data Sheet66 2003-02
DC Characteristics (Operating Conditions apply)
C515C
ParameterSym-
bol
Input low voltages all except
, RESET, HWPD
EA
EA pin
RESET
and HWPD pins
Port 5 in CMOS mode
V
IL
V
IL1
V
IL2
V
ILC
Input high voltages
all except XTAL2, RESET
and HWPD
, CPUR
Port 5 in CMOS mode
P4.1, P4.3 in push-pull mode
Logic 0 input current
V
V
V
V
I
IL
OH
OH2
OHC
OH3
Ports 1, 2, 3, 4, 5, 7
Limit ValuesUnit Test
min.max.
Condition
V–
-0.5
-0.5
-0.5
-0.5
0.2
0.2
0.2
0.3
V
V
V
V
DD
DD
DD
DD
- 0.1
- 0.3
+ 0.1
V–
0.2 VDD + 0.9
0.7
V
DD
0.6 V
DD
0.7 V
DD
V
V
V
V
DD
DD
DD
DD
+ 0.5
+ 0.5
+ 0.5
+ 0.5
V
–
–
–
0.45
0.45
0.45
I
= 1.6 mA
OL
I
= 3.2 mA
OL
I
= 3.75 mA
OL
V
2.4
0.9
2.4
0.9
0.9 V
0.9 V
V
DD
V
DD
DD
DD
–
–
–
–
–
–
I
= -80 µA
OH
I
= -10 µA
OH
I
= -800 µA
OH
I
= -80 µA
OH
I
= -800 µA
OH
I
= -833 µA
OH
-10-70µAVIN = 0.45 V
1)
1)
1)
2)
Logical 0-to-1 transition current
I
TL
-65-650µAVIN = 2 V
Ports 1, 2, 3, 4, 5, 7
Input leakage current
Port 0, EA
, P6, HWPD, AIN0-7
Input low current
To RESET
for reset
XTAL2
/SWD
PE
Pin capacitance
Overload current
Programming voltageV
I
I
I
I
C
I
LI
LI2
LI3
LI4
OV
–±1µA0.45 < VIN < V
µA
–
–
–
–10pFfc = 1 MHz,
IO
-100
-15
-20
V
V
V
T
–±5mA
10.912.1V11.5 V ± 5%
PP
3)4)
= 0.45 V
IN
= 0.45 V
IN
= 0.45 V
IN
= 25 °C
A
DD
Data Sheet67 2003-02
C515C
1)
Capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the VOL of ALE
and port 3. The noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these
pins make 1-to-0 transitions during bus operation. In the worst case (capacitive loading > 100 pF), the noise
pulse on ALE line may exceed 0.8 V. In such cases it may be desirable to qualify ALE with a Schmitt-trigger,
or use an address latch with a Schmitt-trigger strobe input.
2)
Capacitive loading on ports 0 and 2 may cause the VOH on ALE and PSEN to momentarily fall below the
V
0.9
3)
Overload conditions under operating conditions occur if the voltage on the respective pin exceeds the specified
operating range (i.e.
all port pins may not exceed 50 mA. The supply voltage (
4)
Not 100% tested, guaranteed by design characterization.
specification when the address lines are stabilizing.
DD
V
> VDD + 0.5 V or VOV < VSS - 0.5 V). The absolute sum of input overload currents on
OV
V
and VSS) must remain within the specified limits.
DD
Data Sheet68 2003-02
Power Supply Current
C515C
ParameterSym-
bol
Active modeC515C-8R/
C515C-LM
C515C-8E6 MHz
6 MHz
10 MHz
I
I
DD
DD
10 MHz
Idle modeC515C-8R/
C515C-LM
C515C-8E6 MHz
6 MHz
10 MHz
I
I
DD
DD
10 MHz
Active mode
with slow-down
enabled
C515C-8R/
C515C-LM
6 MHz
10 MHz
C515C-8E6 MHz
I
I
DD
DD
10 MHz
Idle mode with
slow-down
enabled
C515C-8R/
C515C-LM
6 MHz
10 MHz
C515C-8E6 MHz
I
I
DD
DD
10 MHz
Limit ValuesUnit Test Condition
1)
typ.
11.97
18.81
11.3
17.66
6.9
10.46
3.95
4.71
4.06
4.62
4.01
4.65
3.54
3.86
3.62
4.14
max.
13.74
21.10
12.94
20.10
7.87
11.87
4.70
5.50
5.03
5.75
4.77
5.53
4.46
4.90
4.21
4.77
2)
mA
mA
mA
mA
mA
mA
mA
mA
3)
4)
5)
6)
Power-down
mode
At EA
/VPP in
C515C-8R/
C515C-LM
C515C-8EI
C515C-8EI
I
PD
PD
DDP
2642.9µAVDD = 2 … 5.5 V
7)
11.1430µA
–30mA–
programming
mode
1)
The typical IDD values are periodically measured at T
2)
The maximum IDD values are measured under worst case conditions (T
3)
I
(active mode) is measured with:
DD
t
, t
XTAL2 driven with
= PE/SWD = Port 0 = Port 6 = VDD; HWPD = VDD; RESET = VSS; all other pins are disconnected.
EA
4)
I
(idle mode) is measured with all output pins disconnected and with all peripherals disabled;
DD
XTAL2 driven with
RESET
5)
I
disabled;
XTAL2 driven with
RESET
= VDD; EA = VSS; Port0 = VDD; all other pins are disconnected;
(active mode with slow-down mode) is measured with all output pins disconnected and with all peripherals
DD
= VDD; all other pins are disconnected; the microcontroller is put into slow-down mode by software.
During the sample time the input capacitance C
internal resistance of the analog source must allow the capacitance to reach their final voltage level within
After the end of the sample time
3)
This parameter includes the sample time tS, the time for determining the digital result and the time for the
calibration. Values for the conversion clock
the previous page.
4)
TUE is tested at V
other voltages within the defined voltage range.
If an overload condition occurs on maximum 2 not selected analog input pins and the absolute sum of input
overload currents on all analog input pins does not exceed 10 mA, an additional conversion error of 1/2 LSB
is permissible.
5)
During the conversion the ADC’s capacitance must be repeatedly charged or discharged. The internal
resistance of the reference source must allow the capacitance to reach their final voltage level within the
indicated time. The maximum internal resistance results from the programmed conversion timing.
6)
Not 100% tested, but guaranteed by design characterization.
AREF
or V
AGND
H
= 5.0 V, V
AIN
up to the absolute maximum ratings. However, the conversion result in
AREF
or X3FFH, respectively.
t
, changes of the analog input voltage have no effect on the conversion result.
S
AGND
–16 × t
8 ×t
–96 × t
48 ×t
IN
IN
IN
IN
–±2LSB
–t
ADC
/ 250
nsPrescaler ÷ 8
Prescaler
÷ 4
nsPrescaler ÷ 8
÷ 4
5)6)
kΩt
Prescaler
4)
in [ns]
ADC
2)
3)
- 0.25
–tS / 500
kΩt
in [ns]
S
2)6)
- 0.25
–50pF
can be charged/discharged by the external source. The
AIN
t
depend on programming and can be taken from the table on
ADC
= 0 V, VDD = 4.9 V. It is guaranteed by design characterization for all
6)
t
.
S
Data Sheet74 2003-02
Clock Calculation Table
C515C
Clock Prescaler RatioADCLt
ADC
÷818 × t
÷404 × t
Further timing conditions:
t
ADC min
t
= 1 / f
IN
= 500 ns
= t
OSC
CLP
IN
IN
t
S
16 ×t
8 ×t
IN
IN
t
ADCC
96 ×t
48 ×t
IN
IN
Data Sheet75 2003-02
C515C
AC Characteristics (Operating Conditions apply)
(
C
for port 0, ALE and PSEN outputs = 100 pF; CL for all other outputs = 80 pF)
L
Program Memory Characteristics
ParameterSymbolLimit ValuesUnit
ALE pulse width
Address setup to ALE
Address hold after ALE
ALE to valid instruction
in
ALE to PSEN
PSEN
PSEN
pulse widtht
to valid
instruction in
Input instruction hold
after PSEN
Input instruction float
after PSEN
Address valid after
PSEN
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
PLPH
t
PLIV
t
PXIX
t
PXIZ
t
PXAV
10-MHz Clock
Duty Cycle
0.4 to 0.6
Variable Clock
1/CLP = 2 MHz
to 10 MHz
min.max.min.max.
60–CLP - 40–ns
15–TCL
15–TCL
- 25 –ns
Hmin
- 25 –ns
Hmin
–113–2 CLP - 87ns
20–TCL
115–CLP +
TCL
- 20–ns
Lmin
–ns
- 30
Hmin
–75–CLP +
TCL
Hmin
- 65
0–0–ns
1)
–30–TCL
1)
35–TCL
- 5–ns
Lmin
Lmin
- 10ns
ns
Address to valid
t
AVIV
instruction in
Address float to PSEN
1)
Interfacing the C515C to devices with float times up to 35 ns is permissible. This limited bus contention will not
cause any damage to port 0 drivers.
Data Sheet76 2003-02
t
AZPL
–180–2 CLP +
TCL
Hmin
- 60
ns
00–ns
C515C
External Data Memory Characteristics
ParameterSymbolLimit ValuesUnit
RD
pulse widtht
pulse widtht
WR
Address hold after
ALE
to valid data int
RD
Data hold after RD
Data float after RD
ALE to valid data in
Address to valid data
ALE pulse width
ALE period
Data valid after ALE
Data stable after ALE
P3.5 setup to ALE low
t
AWD
t
ACY
t
DVA
t
DSA
t
AS
–CLP–ns
–6 CLP–ns
––2 CLPns
4 CLP––ns
–t
CL
–ns
Oscillator frequency1 / CLP4–6MHz
t
ACY
t
AWD
ALE
t
DSA
t
DVA
Port 0
t
AS
Data Valid
P3.5
Figure 40ROM/OTP Verification Mode 2
MCT02613
Data Sheet89 2003-02
V
- 0.5 V
DD
+ 0.90.2
V
DD
Test Points
V
0.2- 0.1
DD
0.45 V
MCT00039
AC Inputs during testing are driven at VDD - 0.5 V for a logic ‘1’ and 0.45 V for a logic ‘0’.
Timing measurements are made at
V
for a logic ‘1’ and V
IHmin
for a logic ‘0’.
ILmax
Figure 41AC Testing: Input, Output Waveforms
C515C
-0.1 V
V
OH
+0.1 V
V
OL
MCT00038
V
Load
V
V
Load
Load
+0.1 V
Timing Reference
Points
-0.1 V
For timing purposes a port pin is no longer floating when a 100 mV change from load voltage
occurs and begins to float when a 100 mV change from the loaded
I
OL/IOH
≥± 20 mA
V
OH/VOL
level occurs.
Figure 42AC Testing: Float Waveforms
Crystal/Resonator Oscillator ModeDriving from External Source
C
XTAL1
N.C.
XTAL1
2 - 10 MHz
C
Crystal Mode:
XTAL2XTAL2
C = 20 pF ± 10 pF (incl. stray capacitance)
:Resonator Mode
= depends on selected ceramic resonatorC
External Oscillator
Signal
MCT02765
Figure 43Recommended Oscillator Circuits for Crystal Oscillator
Data Sheet90 2003-02
Package Outlines
P-MQFP-80-1
(Plastic Metric Quad Flat Package)
C515C
0.65
±0.08
0.3
12.35
17.2
1)
14
D
A
80
Index Marking
1) Does not include plastic or metal protrusions of 0.25 max per side
1
0.6x45˚
C
B
+0.1
-0.05
2.45 max
2
0.25 min
0.1
M
0.12
0.2
A-B
0.2
A-B
1)
17.2
14
A-B
D
80x
H
0.88
80x
D
C
4x
HD
-0.02
+0.08
0.15
7˚max
GPM05249
You can find all of our packages, sorts of packing and others in our
Infineon Internet Page “Products”: http://www.infineon.com/products.
SMD = Surface Mounted Device
Dimensions in mm
Data Sheet91 2003-02
www.infineon.com
Published by Infineon Technologies AG
Loading...
+ 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.