As far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes
and circuits implemented within components or assemblies.
The information describes the type of component and shall not be considered as assured characteristics.
Terms of delivery and rights to change design reserved.
For questions on technology, delivery and prices please contact the Semiconductor Group Offices in Germany or the Siemens Companies
and Representatives worldwide (see address list).
Due to technical requirements components may contain dangerous substances. For information on the types in question please contact
your nearest Siemens Office, Semiconductor Group.
Siemens AG is an approved CECC manufacturer.
Packing
Please use the recycling operators known to you. We can also help you – get in touch with your nearest sales office. By agreement we will
take packing material back, if it is sorted. You must bear the costs of transport.
For packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs incurred.
Components used in life-support devices or systems must be expressly authorized for such purpose!
Critical components
written approval of the Semiconductor Group of Siemens AG.
1 A critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the
failure of that life-support device or system, or to affect its safety or effectiveness of that device or system.
2 Life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain hu-
man life. If they fail, it is reasonable to assume that the health of the user may be endangered.
1
of the Semiconductor Group of Siemens AG, may only be used in life-support devices or systems
2
with the express
Page 3
8-Bit CMOS Microcontroller
Advance Information
C540U
C541U
Enhanced 8-bit C500 CPU
•
– Full software/toolset compatible to standard 80C51/80C52 microcontrollers
12 MHz external operating frequency
•
– 500 ns instruction cycle
Built-in PLL for USB synchronization
•
On-chip OTP program memory
•
– C540U : 4K byte
– C541U : 8K byte
– Alternatively up to 64K byte external program memory
– Optional memory protection
On-chip USB module
•
– Compliant to USB specification
– Full speed or low speed operation
– Five endpoints : one bidirectional control endpoint
four versatile programmable endpoints
– Registers are located in special function register area
– On-chip USB transceiver
Oscillator
Watchdog
Power
Saving
Modes
On-Chip Emulation Support Module
The shaded units are not available in the C540U.
Semiconductor Group31997-10-01
Watchdog
Timer
SSCT0
USB
Module
USB Transceiver
D+D-
T1
RAM
256 x 8
CPU
OTP Prog. Memory
C540U : 4 k x 8
C541U : 8 k x 8
Port 0
Port 1
Port 2
Port 3
I/O
I/O
I/O
I/O
MCA03373
Page 4
Features (cont’d) :
•
Up to 64K byte external data memory
•
256 byte on-chip RAM
•
Four parallel I/O ports
– P-LCC-44 package :three 8-bit ports and one 6-bit port
– P-SDIP-52 package :four 8-bit ports
– LED current drive capability for 3 pins (10 mA)
•
Two 16-bit timer/counters (C501 compatible)
•
SSC synchronous serial interface (SPI compatible) (only C541U)
– Master and slave capable
– Programmable clock polarity / clock-edge to data phase relation
– LSB/MSB first selectable
– 1.5 MBaud transfer rate at 12 MHz operating frequency
•
7 interrupt sources (2 external, 5 internal with 2 USB interrupts) selectable at 2 priority levels
The pin D+ can be directly connected to USB cable
(transceiver is integrated on-chip).
D-44I/O USB D- Data Line
The pin D- can be directly connected to USB cable
(transceiver is integrated on-chip).
C540U
C541U
P1.0 - P1.45 - 7,
12, 34, 44
5
6
7
12
34
44
–
–
7 - 9, 14, 41,
51, 15, 40
7
8
9
13
41
51
15
40
I/O Port 1
is an 6-bit (P-LCC-44) or 8-bit (P-SDIP-52) quasibidirectional I/O port with internal pullup resistors.
Port 1 pins that have 1's written to them are pulled
high by the internal pullup resistors, and in that
state can be used as inputs. As inputs, port 1 pins
being externally pulled low will source current ( I
in the DC characteristics) because of the internal
pullup resistors.
Port 1 also contains two outputs with LED drive
capability as well as the four pins of the SSC
(C541U only). 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 / LED0 LED0 output
P1.1 / LED1 LED1 output
P1.2 / SCLK SSC Master Clock Output /
A high level on this pin for the duration of two
machine cycles while the oscillator is running
resets the C540U/C541U. A small internal pulldown
resistor permits power-on reset using only a
capacitor connected to V
*) I = Input
O = Output
CC
.
Semiconductor Group81997-10-01
Page 9
Table 2
Pin Definitions and Functions (cont’d)
SymbolPin NumbersI/O*) Function
P-LCC-44P-SDIP-52
P3.0 - P3.711, 13 - 19 13, 16 - 22I/O Port 3
is an 8-bit quasi-bidirectional I/O port with internal
pullup resistors. Port 3 pins that have 1's written to
them are pulled high by the internal pullup resistors,
and in that state can be used as inputs. As inputs,
port 3 pins being externally pulled low will source
current ( I
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 / LED2LED2 output
P3.1 / DADDDevice attached input
P3.2 / INT0
P3.3 / INT1External interrupt 1 input /
P3.4 / T0Timer 0 counter input
P3.5 / T1Timer 1 counter input
P3.6 / WRWR control output; latches the
P3.7 / RD
C540U
C541U
, in the DC characteristics) because of
IL
External interrupt 0 input /
timer 0 gate control input
timer 1 gate control input
data byte from port 0 into the
external data memory
RD control output; enables the
external data memory
XTAL22023–
XTAL12124–
*) I = Input
O = Output
Semiconductor Group91997-10-01
XTAL2
is the output of the inverting oscillator amplifier.
This pin is used for the oscillator operation with
crystal or ceramic resonator.
XTAL1
is the input to the inverting oscillator amplifier and
input to the internal clock generator circuits.
To drive the device from an external clock source,
XTAL1 should be driven, while XTAL2 is left
unconnected.
low times as well as rise/fall times specified in the
AC characteristics must be observed.
Minimum and maximum high and
Page 10
Table 2
Pin Definitions and Functions (cont’d)
SymbolPin NumbersI/O*) Function
P-LCC-44P-SDIP-52
P2.0 - P2.724 - 3128 - 35I/O Port 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
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.
C540U
C541U
, in the DC characteristics) because of
IL
PSEN
3238OThe 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.
ALE3339OThe 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.
EA
3542I
External Access Enable
When held high, the C540U/C541U executes
instructions from the internal ROM as long as the
PC is less than 1000H for the C540U or less than
2000H for the C541U. When held low, the C540U/
C541U fetches all instructions from external
program memory. For the C540U-L/C541U-L this
pin must be tied low.
*) I = Input
O = Output
Semiconductor Group101997-10-01
Page 11
Table 2
Pin Definitions and Functions (cont’d)
SymbolPin NumbersI/O*) Function
P-LCC-44P-SDIP-52
P0.0 - P0.744 - 3650 - 43I/O Port 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.
C540U
C541U
V
CCU
V
SSU
V
CC
V
SS
*) I = Input
O = Output
11 –
Supply voltage
for the on-chip USB transceiver circuitry.
22 –
Ground (0V)
for the on-chip USB transceiver circuitry.
8, 2310, 26–
Supply voltage
for ports and internal logic circuitry during normal,
idle, and power down mode.
9, 2211, 25–
Ground (0V)
for ports and internal logic circuitry during normal,
idle, and power down mode.
The C540U/C541U 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 12 MHz crystal, 58% of the instructions are executed in 500ns.
Special Function Register PSW (Address D0H) Reset Value : 00H
Bit No.MSBLSB
H
D7
CYAC
H
D6
H
D5
F0
H
D4
RS1RS0OVF1PD0
BitFunction
CYCarry Flag
Used by arithmetic instruction.
ACAuxiliary Carry Flag
Used by instructions which execute BCD operations.
F0General Purpose Flag
RS1
RS0
Register Bank Select Control Bits
These bits are used to select one of the four register banks.
RS1RS0Function
00Bank 0 selected, data address 00H-07
01Bank 1 selected, data address 08H-0F
10Bank 2 selected, data address 10H-17
11Bank 3 selected, data address 18H-1F
H
D3
H
D2
H
D1
H
D0
H
PSW
H
H
H
H
OVOverflow Flag
Used by arithmetic instruction.
F1General Purpose Flag
PParity Flag
Set/cleared by hardware after each instruction to indicate an odd/even
number of "one" bits in the accumulator, i.e. even parity.
Semiconductor Group131997-10-01
Page 14
Memory Organization
The C540U/C541U CPU manipulates operands in the following four address spaces:
– 8 or 4 KByte on-chip OTP program memory
– Totally up to 64 Kbyte internal/external program memory
– up to 64 Kbyte of external data memory
– 256 bytes of internal data memory
– a 128 byte special function register area
Figure 6 illustrates the memory address spaces of the C540U/C541U.
C540U
C541U
Internal
(EA = 1)
External
FFFF
2000 1)
External
(EA = 0)
H
H
1FFF 1)
FFFF
H
H
H
Direct
Addr.
Special
Function
Register
7F
H
FF
80
H
H
External
Indirect
Addr.
FF
Internal
RAM
80
H
Internal
RAM
0000
H
0000
H
00
H
"Code Space""External Data Space""Internal Data Space"
1) For the C504U the int. / ext. program memory boundary is at 0FFF / 1000 .
H
H
MCD03375
Figure 6
C540U/C541U Memory Map Memory Map
Semiconductor Group141997-10-01
Page 15
C540U
C541U
Reset and System Clock
The reset input is an active high input at pin RESET. Since the reset is synchronized internally, the
RESET pin must be held high for at least two machine cycles (12 oscillator periods) while the
oscillator is running. A pulldown resistor is internally connected to VSS to allow a power-up reset with
an external capacitor only. An automatic reset can be obtained when VCC is applied by connecting
the RESET pin to VCC via a capacitor. Figure 7 shows the possible reset circuitries.
V
CC
a)
+
C540U
C541UC541U
RESETRESET
V
CC
V
CC
c)
+
C540U
C541U
RESET
&
b)
C540U
MCD03376
Figure 7
Reset Circuitries
Semiconductor Group151997-10-01
Page 16
C540U
C541U
The oscillator and clock generation circuitry of the C540U/C541U is shown in figure 5-8. The crystal
oscillator generates the system clock for the microcontroller. The USB module can be provided with
the following clocks :
– Full speed operation : 48 MHz with a data rate of 12 Mbit/s
– Low speed operation : 6 MHz with a data rate of 1.5 Mbit/s
The low speed clock is generated by a dividing the system clock by 2. The full speed clock is
generated by a PLL, which multiplies the system clock by a fix factor of 4. This PLL can be enabled
or disabled by bit PCLK of SFR DCR. Depending on full or low speed operation of the USB bit
SPEED of SFR has to be set or cleared for the selection of the USB clock. Bit UCLK is a general
enable bit for the USB clock.
XTAL1
12 MHz
XTAL2
Pin
Oscillator
Pin
6 MHz
C540U / C541U
Crystal
DividerPLL
by 2
12 MHz
48 MHz
Figure 8
Block Diagram of the Clock Generation Circuitry
x 4
1
0
SPEED
DCR.7
System Clock
of the
Microcontroler
Enable
PCLK
DCR.0
to USB
Module
UCLK
DCR.1
MCB03377
Semiconductor Group161997-10-01
Page 17
C540U
C541U
The clock generator provides the internal clock signals to the chip. These signals define the internal
phases, states and machine cycles. Figure 9 shows the recommended oscillator circuits for crystal
and external clock operation.
C
XTAL2
C = 20 pF 10 pF for crystal operation
External
Clock
Signal
Figure 9
Recommended Oscillator Circuitries
12 MHz
C
V
CC
N.C.
C540U
C541U
XTAL1
C540U
C541U
XTAL2
XTAL1
MCD03378
Semiconductor Group171997-10-01
Page 18
C540U
C541U
Enhanced Hooks Emulation Concept
The Enhanced Hooks Emulation Concept of the C500 microcontroller family is a new, innovative
way to control the execution of C500 MCUs and to gain extensive information on the internal
operation of the controllers. Emulation of on-chip ROM based programs is possible, too.
Each production chip has built-in logic for the supprt of the Enhanced Hooks Emulation Concept.
Therefore, no costly bond-out chips are necessary for emulation. This also ensure that emulation
and production chips are identical.
1)
The Enhanced Hooks Technology
together with an EH-IC to function similar to a bond-out chip. This simplifies the design and reduces
costs of an ICE-system. ICE-systems using an EH-IC and a compatible C500 are able to emulate
all operating modes of the different versions of the C500 microcontrollers. This includes emulation
of ROM, ROM with code rollover and ROMless modes of operation. It is also able to operate in
single step mode and to read the SFRs after a break.
TM
, which requires embedded logic in the C500 allows the C500
Port 0, port 2 and some of the control lines of the C500 based MCU are used by Enhanced Hooks
Emulation Concept to control the operation of the device during emulation and to transfer
informations about the programm execution and data transfer between the external emulation
hardware (ICE-system) and the C500 MCU.
1 “Enhanced Hooks Technology“ is a trademark and patent of Metalink Corporation licensed to Siemens.
Semiconductor Group181997-10-01
Page 19
C540U
C541U
Special Function Registers
The registers, except the program counter and the four general purpose register banks, reside in
the special function register area. The special function register area consists of two portions: the
standard special function register area and the mapped special function register area. One special
function register of the C540U/C541U (PCON1) is located in the mapped special function register
area. All other SFRs are located in the standard special function register area.
For accessing PCON1 in the mapped special function register area, bit RMAP in special function
register SYSCON must be set.
Special Function Register SYSCON (Address B1H) Reset Value : XX10XXXX
Bit No.MSBLSB
76543210
B1
H
BitFunction
RMAPSpecial function register map bit
As long as bit RMAP is set, a mapped special function register 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.
––
The functions of the shaded bits are not described in this section.
RMAP = 0 : The access to the non-mapped (standard) special function
RMAP = 1 : The access to the mapped special function register area
EALERMAP–
register area is enabled.
(PCON1) is enabled.
––
–
SYSCON
B
The registers, except the program counter and the four general purpose register banks, reside in
the special function register area. All SFRs with addresses where address bits 0-2 are 0 (e.g. 80H,
88H, 90H, 98H, ..., F8H, FFH) are bitaddressable.
The 75 special function registers (SFRs) in the SFR area include pointers and registers that provide
an interface between the CPU and the other on-chip peripherals. The SFRs of the C540U/C541U
are listed in table 3 to table 4. In table 3 they are organized in groups which refer to the functional
blocks of the C540U/C541U. Table 4 and table 4 illustrate the contents of the SFRs in numeric
order of their addresses.
Semiconductor Group191997-10-01
Page 20
C540U
C541U
Table 3
Special Function Registers - Functional Blocks
BlockSymbolNameAddressContents after
Reset
CPUACC
B
DPH
DPL
PSW
SP
VR0
VR1
VR2
SYSCON
Interrupt
System
IEN0
IEN1
IP0
IP1
ITCON
PortsP0
P1
P2
P3
Timer 0 /
Timer 1
TCON
TH0
TH1
TL0
TL1
TMOD
SSC
Interface
(C541U
only)
SSCCON
STB
SRB
SCF
SCIEN
SSCMOD
Watchdog
(C541U
WDCON
WDTREL
only)
Accumulator
B Register
Data Pointer, High Byte
Data Pointer, Low Byte
Program Status Word Register
Stack Pointer
Version Register 0
Version Register 1
Version Register 2
System Control Register
USB Endpoint Select Register
USB Data Register
USB Address Offset Register
USB Global Endpoint Interrupt Request Reg.
USB Device Control Register
USB Device Power Down Register
USB Device Interrupt Control Register
USB Device Interrupt Request Register
USB Frame Number Register, Low Byte
USB Frame Number Register, High Byte
USB Endpoint n Buffer Control Register
USB Endpoint n Buffer Status Register
USB Endpoint n Interrupt Enable Register
USB Endpoint n Interrupt Request Register
USB Endpoint n Base Address Register
USB Endpoint n Buffer Length Register
.
H
D2
D3
D4
D6
C1
C2
C3
C4
C6
C7
C1
C2
C3
C4
C5
C6
H
H
H
H
H
H
H
H
H
H
H
H
H
H
H
H
80
H
00
H
2)
00
H
00
H
000X0000
00
H
00
H
00
H
XX
H
00000XXX
00
H
20
H
00
H
3)
10
H
00
H
0XXXXXXX
B
B
B
Semiconductor Group211997-10-01
Page 22
Table 4
Contents of the SFRs, SFRs in numeric order of their addresses
The C540U/C541U in the P-SDIP-52 package has four 8-bit I/O ports. In the P-LCC-44 package
port 1 is a 6-bit I/O port only. Port 0 is an open-drain bidirectional I/O port, while ports 1 to 3 are
quasi-bidirectional I/O ports with internal pullup resistors. That means, when configured as inputs,
ports 1 to 3 will be pulled high and will source current when externally pulled low. Port 0 will float
when configured as input.
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. In this function, port 0 is not an open-drain port, but uses a strong internal pullup FET.
Two port lines of port 1 (P1.0/LED0, P1.1/LED1) and one port line of port 3 (P3.0/LED2) have the
capability of driving external LEDs in the output low state.
Semiconductor Group261997-10-01
Page 27
Timer / Counter 0 and 1
Timer/Counter 0 and 1 can be used in four operating modes as listed in table 6 :
Table 6
Timer/Counter 0 and 1 Operating Modes
ModeDescriptionTMODInput Clock
M1M0internalexternal (max)
C540U
C541U
08-bit timer/counter with a
00
f
/6x32f
OSC
OSC
/12x32
divide-by-32 prescaler
116-bit timer/counter11
28-bit timer/counter with
10
8-bit autoreload
3Timer/counter 0 used as one
11
/6f
OSC
OSC
/12
f
8-bit timer/counter and one
8-bit timer
Timer 1 stops
In the “timer” function (C/T = ‘0’) the register is incremented every machine cycle. Therefore the
count rate is f
OSC
/6.
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 cycles to detect a
falling edge the max. count rate is f
/12. External inputs INT0 and INT1 (P3.2, P3.3) can be
OSC
programmed to function as a gate to facilitate pulse width measurements. Figure 11 illustrates the
input clock logic.
P3.4/T0
P3.5/T1
Gate
(TMOD)
P3.2/INT0
P3.3/INT1
OSC
=1
÷
6
C/T = 0
C/T = 1
Control
TR0
TR1
_
<
1
&
f
/6
OSC
Timer 0/1
Input Clock
MCS03117
Figure 11
Timer/Counter 0 and 1 Input Clock Logic
Semiconductor Group271997-10-01
Page 28
C540U
C541U
SSC Interface (C541U only)
The C541U microcontroller provides a Synchronous Serial Channel unit, the SSC. This interface is
compatible to the popular SPI serial bus interface. Figure 12 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 P1.3 / SRI (SSC Receiver In) and P1.4 / STO (SSC
Transmitter Out). This shift register can be written to (SFR STB) and can be read through the
Receive Buffer Register SRB.
Pin
P1.2 / SCLK
f
OSC
Pin
P1.3 / SRI
Clock Divider
. . .
Clock Selection
STB
Shift Register
Pin
Control
Logic
Pin
P1.4 / STO
Interrupt
SCIEN
Int. Enable Reg.
SSCCON
Control Register
SRB
Receive Buffer Register
Control Logic
SCF
Status Register
Internal Bus
Pin
P1.5 / SLS
MCB03379
Figure 12
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 P1.2/ 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 P1.5 / 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.
Semiconductor Group281997-10-01
Page 29
C540U
C541U
USB Module
The USB module in the C540U/C541U handles all transactions between the serial USB bus and the
internal (parallel) bus of the microcontroller. The USB module includes several units which are
required to support data handling with the USB bus : the on-chip USB bus transceiver, the USB
memory with two pages of 128 bytes each, the memory management unit (MMU) for USB and CPU
memory access control, the UDC device core for USB protocol handling, the microcontroller
interface with the USB specific special function registers and the interrupt control logic. A clock
generation unit provides the clock signal for the USB module for full speed and low speed USB
operation. Figure 13 shows the block diagram of the functional units of the USB module with their
interfaces.
XTAL1XTAL2
PinPinPinPin
x 4
PLL
48 MHz
Osc.
12 MHz
2
6 MHz
USB
D+
Transceiver
(On-chip)
Device
Bus
D-
USB
Core
(UDC)
7
F
H
00
H
Data
Control
Page 1
Page 0
USB
Memory
(128 x 8)
Data
Address
MMU
USB Memory
Management
F
7
H
00
H
Control
USB
Module
MCU
Interface
11
SFR
Addr.
Internal
Bus
Interrupt Generation
MCB03380
Figure 13
USB Module Block Diagram
Semiconductor Group291997-10-01
Page 30
C540U
C541U
USB Registers
Two different kinds of registers are implemented in the USB module. The global registers (GEPIR,
EPSEL, ADROFF, USBVAL) describe the basic functionality of the complete USB module and can
be accessed via unique SFR addresses. For reduction of the number of SFR addresses which are
needed to control the USB module inside the C540U/C541U, device registers and endpoint
registers are mapped into an SFR address block of seven SFR addresses (C1H to C7H). The
endpoint specific functionality of the USB module is controlled via the device registers DCR,
DPWDR, DIER, DIRR and the frame number registers. An endpoint register set is available for each
endpoint (n=0..4) and describes the functionality of the selected endpoint. Figure 14 explains the
structure of the USB module registers.
Global Registers
USBVAL (D3 )
.5
.3
.4
.1
H
.0
000
.4.3.2 .1
GEPIR (D6 )
H
.0
.7
.6
Device
Registers
C1
H
DPWDR
C2
H
C3
H
C4
H
C5
reserved
H
C6
H
C7
H
DCR
DIER
DIRR
FNRL
FNRH
0.0
Endpoint 0
Registers
EPBC0
C1
H
EPBS0
C2
H
C3
EPIE0
H
EPIR0
C4
H
EPBA0
C5
H
C6
EPLEN0
H
C7
reserved
H
ADROFF (D4 )
.5
.30
.4.2 .1
Endpoint 1
Registers
EPBC1
C1
H
EPBS1
C2
H
C3
C4
C5
C6
C7
EPIE1
H
EPIR1
H
EPBA1
H
EPLEN1
H
reserved
H
HH
.7
EPSEL (D2 )
0
00
0
.2.2.1
.0
Decoder
Endpoint 2
Registers
EPBC2
C1
H
EPBS2
C2
H
EPIE2
C3
H
EPIR2
C4
H
EPBA2
C5
H
EPLEN2
C6
H
reserved
C7
H
Endpoint 3
Registers
EPBC3
C1
H
EPBS3
C2
H
EPIE3
C3
H
EPIR3
C4
H
EPBA3
C5
H
EPLEN3
C6
H
reserved
C7
H
Endpoint 4
Registers
EPBC4
C1
H
EPBS4
C2
H
EPIE4
C3
H
EPIR4
C4
H
EPBA4
C5
H
EPLEN4
C6
H
reserved
C7
H
MCD03312
Figure 14
Register Structure of the USB Module
Semiconductor Group301997-10-01
Page 31
C540U
C541U
Interrupt System
The C541U provides seven (C540U : six) interrupt sources with two priority levels. Five interrupts
can be generated by the on-chip peripherals (timer 0, timer 1, SSC interface, and USB module), and
two interrupts may be triggered externally (P3.2/INT0 and P3.3/INT1).
Figure 15 to 17 give a general overview of the interrupt sources and illustrate the request and
control flags which are described in the next sections.
Low Priority
Timer 0 Overflow
TF0
TCON.5
ET0
IEN0.1
000B
H
PT0
IP0.1
High Priority
Timer 1 Overflow
P3.2 /
INT0
IT0
TCON.0
P3.3 /
INT1
IT1
TCON.2
Bit addressable
Request Flag is cleared by hardware
ITCON.0
ITCON.1
ITCON.2
ITCON.3
≥1
≥1
TF1
TCON.7
IE0
TCON.1
IE0
TCON.3
ET1
IEN0.3
EX0
IEN0.0
EX1
IEN0.2
001B
0003
0013
EA
IEN0.7
H
PT1
IP0.3
H
PX0
IP0.0
H
PX1
IP0.2
Figure 15
Interrupt Request Sources (Part 1)
Semiconductor Group311997-10-01
Page 32
Endpoint Interrupts
Endpoint 4 Interrupts
Endpoint 3 Interrupts
Endpoint 2 Interrupts
Endpoint 1 Interrupts
Endpoint 0 Interrupts
C540U
C541U
ACK0
EPIR0.7
NACK0
EPIR0.6
RLE0
EPIR0.5
DNR0
EPIR0.3
NOD0
EPIR0.2
EOD0
EPIR0.1
SOD0
EPIR0.0
AIE0
EPIE0.7
NAIE0
EPIE0.6
RLEIE0
EPIE0.5
DNRIE0
EPIE0.3
NODIE0
EPIE0.2
EODIE0
EPIE0.1
SODIE0
EPIE0.0
>1
EPI0
GEPIR.0
GEPIE0
EPBC0.4
>1
EUEI
IEN1.1
004B
Low Priority
High Priority
H
PUEI
IP1.1
WCOL
SSC
Interrupts
(C541U only)
SCF.1
TC
SCF.0
WCEN
SCIEN.1
TCEN
SCIEN.0
>1
ESSC
IEN1.0
0043
H
EA
IEN0.7
PSSC
IP1.0
Bit addressable
Request flag is cleared by hardware after the corresponding register has been read.
MCB03382
Figure 16
Interrupt Request Sources (Part 2)
Semiconductor Group321997-10-01
Page 33
Device Interrupts
C540U
C541U
SE0I
DIRR.7
DAI
DIRR.6
DDI
DIRR.5
SBI
DIRR.4
SEI
DIRR.3
STI
DIRR.2
SUI
DIRR.1
SOFI
DIRR.0
Bit addressable
SE0IE
DIER.7
DAIE
DIER.6
DDIE
DIER.5
SBIE
DIER.4
SEIE
DIER.3
STIE
DIER.2
SUIE
DIER.1
SOFIE
DIER.0
>1
EUDI
IE1.2
0053
EA
IE0.7
Low Priority
High Priority
H
PUDI
IP1.2
Request flag is cleared by hardware after the corresponding register has been read.
External Interrupt 00003
Timer 0 Overflow000B
External Interrupt 10013
Timer 1 Overflow001B
SSC Interrupt (C541U only)0043
USB Endpoint Interrupt004B
USB Device Interrupt0053
Wake-up from power down007B
H
H
H
H
H
H
H
H
IE0
TF0
IE1
TF1
TC, WCOL
in SFRs EPIR0-4 and GEIPR
in SFRs DIRR
–
Semiconductor Group331997-10-01
Page 34
C540U
C541U
Fail Save Mechanisms
The C540U/C541U offers enhanced fail safe mechanisms, which allow an automatic recovery from
software upset or hardware failure :
– a programmable watchdog timer (WDT), with variable time-out period from 256 µs up to
approx. 0.55 µs at 12 MHz. The WDT is not available in the C540U.
– 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.
The watchdog timer in the C517A is a 15-bit timer, which is incremented by a count rate of f
or f
/192. The system clock of the C517A is divided by two prescalers, a divide-by-two and a
OSC
OSC
/12
divide-by-16 prescaler which are selected by bit WDTPSEL (WDTREL.7). For programming of the
watchdog timer overflow rate, the upper 7 bit of the watchdog timer can be written. Figure 8-18
shows the block diagram of the watchdog timer unit.
07
f
/ 6
OSC
---
External HW Reset
2
WDT Reset-Request
-
OWDS WDTSWDTSWDT
Control Logic
16
WDCON (CO )
WDTL
14
WDTH
H
WDTPSEL
670
WDTREL
8
MCB03384
Figure 18
Block Diagram of the Watchdog Timer
The watchdog timer can be started by software (bit SWDT) but it cannot be stopped during active
mode of the C541U. 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 transfered to the upper 7-bit of the watchdog timer. The refresh sequence consists of
two consequtive 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.
Semiconductor Group341997-10-01
Page 35
C540U
C541U
Oscillator Watchdog
The oscillator watchdog unit serves for three 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 onchip 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.
– Control of external wake-up from software power-down mode (description see chapter 9)
When the power-down mode is left by a low level at the INT0 pin or by the USB, the oscillator
watchdog unit assures that the microcontroller resumes operation (execution of the powerdown 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.
Semiconductor Group351997-10-01
Page 36
C540U
C541U
EWPD
Activity on
USB Bus
P3.2 / INT0
XTAL1
XTAL2
WS
(PCON1.4)(PCON1.7)
Control
Logic
RC
Oscillator
On-Chip
Oscillator
Start /
Stop
f
RC
3 MHz
Start /
Stop
Power - Down
Mode Activated
f
10
1
Comparator
f
2
Frequency
Power-Down Mode
Wake - Up Interrupt
Control
Logic
<
f
f
2
1
Delay
OWDS
Internal Reset
>1
WDCON (C0 )
H
Figure 19
Functional Block Diagram of the Oscillator Watchdog
Int. Clock
MCD03385
Semiconductor Group361997-10-01
Page 37
C540U
C541U
Power Saving Modes
The C540U/C541U provides two basic power saving modes, the idle mode and the power down
mode.
– Idle mode
In the idle mode the main oscillator of the C540U/C541U continues to run, but the CPU is
gated off from the clock signal. However, the interrupt system, the SSC (C541U only), the
USB module, and the timers with the exception of the watchdog timer (C541U only) are further
provided with the clock. The CPU status is preserved in its entirety : the stack pointer, program
counter, program status word, accumulator, and all other registers maintain their data during
idle mode. The idle mode can be terminated by activating any enabled interrupt. or by a
hardware reset.
– Power down mode
In the power down mode, the RC osciillator and the on-chip oscillator which operates with the
XTAL pins is stopped. Therefore, all functions of the microcontroller are stopped and only the
contents of the on-chip RAM, XRAM and the SFR's are maintained. The power down mode
can be left either by an active reset signal or by a low signal at the P3.2/INT0 pin or any activity
on the USB bus. Using reset to leave power down mode puts the microcontroller with its SFRs
into the reset state. Using the INT0 pin or USB bus for power down mode exit maintains the
state of the SFRs, which has been frozen when power down mode is entered.
In the power down mode of operation, VCC can be reduced to minimize power consumption. It must
be ensured, however, that VCC is not reduced before the power down mode is invoked, and that V
is restored to its normal operating level, before the power down mode is terminated. Table 8 gives
a general overview of the entry and exit procedures of the power saving modes.
Table 8
Power Saving Modes Overview
ModeEntering
2-Instruction
Example
Idle modeORL PCON, #01H
ORL PCON, #20H
Power Down ModeORL PCON, #02H
ORL PCON, #40H
Leaving byRemarks
Ocurrence of an
interrupt from a
peripheral unit
Hardware Reset
Hardware ResetOscillator is stopped;
Short low pulse at
pin P3.2/INT0
activity on the USB
bus
or
CPU clock is stopped;
CPU maintains their data;
peripheral units are active (if
enabled) and provided with
clock
contents of on-chip RAM and
SFR’s are maintained;
CC
Semiconductor Group371997-10-01
Page 38
C540U
C541U
OTP Memory Operation
The C540U/C541U contains a 8k byte one-time programmable (OTP) program memory (C540U :
4k byte). With the C540U/C541U fast programming cycles are achieved (1 byte in 100 µsec). Also
several levels of OTP memory protection can be selected.
For programming of the device, the C540U/C541U 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 C540U/C541U 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.5V
programming voltage. Figure 20 shows the pins of the C504-2E which are required for controlling
of the OTP programming mode.
A0 - A7 /
A8 - A12
PALE
PMSEL0
PMSEL1
XTAL1
XTAL2
Figure 20
Programming Mode Configuration
V
CC
Port 2Port 0
V
SS
C540U
C541U
D0 - D7
EA /
V
PP
PROG
PRD
RESET
PSEN
PSEL
MCS03386
Semiconductor Group381997-10-01
Page 39
Pin Configuration in Programming Mode
N.C.
N.C.
N.C.
5
6
CC
SS
7
8
9
10
11
12
13
14
15
16
17
N.C.
V
V
RESET
PMSEL0
N.C:N.C.
PMSEL1
PSEL
PRD
PALE
GND
18 19 20
3
4
21 2224
N.C.
N.C.
N.C.
D0
N.C.
21444342 41
C540U
C541U
Programming
Mode
23282625
D1
27
D2
40
D3
39
38
37
36
35
34
33
32
31
30
29
D4
D5
D6
D7
V
EA /
PROG
PSEN
A7
A6
A5
C540U
C541U
PP
CC
XTAL1
XTAL2
VSSV
A1 / A9
A0 / A8
A2 / A10
A3 / A11
A4 / A12
MCP03387
GND
GND
Figure 21
P-LCC-44 Pin Configuration of the C540U/C541U in Programming Mode (Top View)
Figure 22
P-SDIP-52 Pin Configuration of the C540U/C541U in Programming Mode (Top View)
Semiconductor Group401997-10-01
Page 41
C540U
e
C541U
The following table 9 contains the functional description of all C517A-2E pins which are required for
OTP memory programming.
Table 9
Pin Definitions and Functions in Programming Mode
SymbolPin NumbersI/O*) Function
P-LCC-44 P-SDIP-52
RESET1012IReset
This input must be at static “1“ (active) level during the
whole programming mode.
PMSEL0
PMSEL11113
13
16
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.
This input is used for the basic programming mode
selection and must be switched according figure 10-
23.
PRD
1518IProgramming mode read strobe
This input is used for read access control for OTP
memory read, version byte read, and lock bit read
operations.
PALE1619IProgramming mode 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.
XTAL22023OXTAL2
Output of the inverting oscillator amplifier.
*) I = Input
O = Output
Semiconductor Group411997-10-01
Page 42
Table 9
Pin Definitions and Functions in Programming Mode (cont’d)
SymbolPin NumbersI/O*) Function
P-LCC-44 P-SDIP-52
XTAL12124IXTAL1
Input to the oscillator amplifier.
C540U
C541U
A0/A8 A7
24 - 3128 - 35IAddress lines
P2.0-7 are used as multiplexed address input lines
A0-A7 and A8-A12. A8-A12 must be latched with
PALE. Address A12 is requred only for the C541U.
PSEN
3238IProgram store enable
This input must be at static “0“ level during the whole
programming mode.
PROG
3339IProgramming 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.
EA
/V
PP
3542IExternal Access / Programming voltage
This pin must be at 11.5 V (VPP) voltage level during
programming of an OTP memory byte or lock bit.
During an OTP memory read operation this pin must
be at high level (VIH). This pin is also used for basic
programming mode selection. At basic programming
mode selection a low level must be applied to EA/VPP.
D0 - 743 - 3850 - 43I/OData lines 0-7
During programming mode, data bytes are read or
written from or to the C540U/C541U via the
bidirectional D0-7 lines which are located at port 0.
V
SS
9, 2211, 25–Circuit ground potential
must be applied to these pins in programming mode.
V
CC
8, 2310, 26–Power supply terminal
must be applied to these pins in programming mode.
N.C.1, 12,,
34, 44
1 - 9, 14,
15, 27, 36,
37, 40, 41,
–Not Connected
These pins should not be connected in programming
mode.
52
GND17 - 1920 - 22IGround pins
In programming mode these pins must be connected
V
level.
to
IL
*) I = Input
O = Output
Semiconductor Group421997-10-01
Page 43
Basic Programming Mode Selection
The basic programming mode selection scheme is shown in figure 23.
C540U
C541U
V
CC
Clock
(XTAL1 / XTAL2)
RESET
PSEN
PMSEL1,0
PROG
PRD
PSEL
PALE
5 V
Stable
"1"
"0"
0,1
"0"
"1"
"0"
EA /
V
PP
During this Period Signals
are not actively driven
Figure 23
Basic Programming Mode Selection
0 V
V
PP
V
IH1
Ready for Access
Mode Selection
MCT03389
Semiconductor Group431997-10-01
Page 44
Table 10
Access Modes Selection
C540U
C541U
Access Mode
V
Program OTP memory byteV
Read OTP memory byteV
Program OTP lock bitsV
Read OTP lock bitsV
Read OTP version byteV
EA
/
PROGPRD
PP
PP
IH
PP
IH
IH
H
H
HLHByte addr.
HHHA0-7
HHL–D1,D0 see
PMSELAddress
10
(Port 2)
A8-15
Data
(Port 0)
D0-7
table 11
D0-7
of sign. byte
Lock Bits Programming / Read
The C540U/C541U has two programmable lock bits which, when programmed according tabie 11,
provide four levels of protection for the on-chip OTP code memory. The state of the lock bits can
also be read.
Table 11
Lock Bit Protection Types
Lock Bits at D1,D0Protection
D1D0
Level
Protection Type
11Level 0The OTP lock feature is disabled. During normal operation of
the C540U/C541U, the state of the EA
pin is not latched on
reset.
10Level 1During normal operation of the C540U/C541U, MOVC
instructions executed from external program memory are
disabled from fetching code bytes from internal memory. EA
sampled and latched on reset. An OTP memory read operation
is only possible using the OTP verification mode for protection
level 1. Further programming of the OTP memory is disabled
(reprogramming security).
01Level 2Same as level 1, but also OTP memory read operation using
OTP verification mode is disabled.
00Level 3Same as level 2; but additionally external code execution by
setting EA
=low during normal operation of the C540U/C541U
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.
is
Semiconductor Group441997-10-01
Page 45
C540U
C541U
Absolute Maximum Ratings
Ambient temperature under bias (TA) ......................................................... 0 to 70 °C
Storage temperature (T
Voltage on VCC pins with respect to ground (VSS) ....................................... – 0.5 V to 6.5 V
Voltage on any pin with respect to ground (VSS)......................................... – 0.5 V to VCC +0.5 V
Input current on any pin during overload condition..................................... – 10 mA to 10 mA
Absolute sum of all input currents during overload condition ..................... I 100 mA I
Power dissipation........................................................................................ TBD
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 overload conditions (
Voltage on
V
CC
absolute maximum ratings.
) .......................................................................... – 65 °C to 150 °C
stg
V
>
V
CC
or
pins with respect to ground (
IN
V
) must not exceed the values defined by the
SS
V
<
V
SS
) the
IN
Semiconductor Group451997-10-01
Page 46
C540U
C541U
DC Characteristics
V
= 4.0V to 5.5V (5V +10%, -20%); VSS = 0 VTA = 0 to 70 °C
CC
ParameterSymbolLimit ValuesUnitTest Condition
min.max.
Input low voltage (except EA,
RESET)
Input low voltage (EA
)V
Input low voltage (RESET)
Input high voltage (except XTAL1,
RESET)
Input high voltage to XTAL1
Input high voltage to RESET
Output low voltage
Ports 1, 2, 3
P1.0, P1.1, P3.0
Output low voltage (port 0, ALE,
PSEN)
Output high voltage (ports 1, 2, 3)V
Output high voltage (port 0 in
external bus mode, ALE, PSEN
)
Logic 0 input current (ports 1, 2, 3) I
Logical 1-to-0 transition current
(ports 1, 2, 3)
V
IL
– 0.50.2 VCC –
V–
0.1
IL1
– 0.50.2 VCC –
V–
0.3
V
IL2
– 0.50.2 VCC +
V–
0.1
V
IH
0.2 VCC +
V
+ 0.5V–
CC
0.9
V
IH1
V
IH2
V
OL
V
OL1
OH
V
OH2
IL
I
TL
0.7 V
0.6 V
–
–
CC
CC
V
+ 0.5V–
CC
V
+ 0.5V–
CC
0.45
0.45
V
V
I
= 1.6 mA
OL
I
= 10 mA
OL
–0.45VIOL = 3.2 mA
2.4
0.9 V
2.4
0.9 V
CC
CC
–
–
–
–
VIOH = – 80 µA,
I
= – 10 µA
OH
VIOH = – 800 µA
I
= – 80 µA
OH
– 10– 50µAVIN = 0.45 V
– 65– 650µAVIN = 2 V
1)
1)
1)
2)
Input leakage current (port 0, EA
Pin capacitanceC
Overload currentI
Programming voltageV
)I
LI
OV
PP
–± 1µA0.45 < VIN < V
IO
–10pFf
–± 5mA
10.912.1
V
= 1 MHz,
c
T
= 25 °C
A
6) 7)
11.5 V ± 5%
CC
7)
Notes see next page
Semiconductor Group461997-10-01
Page 47
C540U
C541U
Power Supply Current
ParameterSymbolLimit ValuesUnit Test Condition
8)
typ.
Active mode12 MHzI
Idle mode12 MHzI
Power-down modeI
CC
CC
PD
15TBDmA
TBDTBDmA
TBD50µAVCC = 2…5.5 V
Notes :
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.
V
2) Capacitive loading on ports 0 and 2 may cause the
V
0.9
specification when the address lines are stabilizing.
CC
on ALE and PSEN to momentarily fall below the
OH
max.
9)
4)
5)
3)
3) IPD (power-down mode) is measured under following conditions:
= Port 0 = VCC ; XTAL2 = N.C.; XTAL1 = VSS ; RESET = VSS; all other pins are disconnected.
EA
the USB transceiver is switched off;
I
(active mode) is measured with:
4)
CC
XTAL1 driven with
= RESET = Port 0 = Port 1 = VCC ; all other pins are disconnected.
EA
I
would be slightly higher if a crystal oscillator is used (appr. 1 mA).
CC
t
CLCH
, t
= 5 ns , VIL = VSS + 0.5 V, VIH =
CHCL
V
– 0.5 V; XTAL2 = N.C.;
CC
5) ICC (idle mode) is measured with all output pins disconnected and with all peripherals disabled;
t
, t
XTAL1 driven with
= RESET = Vss ; Port 0 = VCC ; all other pins are disconnected;
6) Overload conditions occur if the standard operating conditions are exceeded, ie. the voltage on any pin
V
exceeds the specified range (i.e.
> VCC + 0.5 V or VOV < VSS - 0.5 V). The supply voltage VCC and VSS must
OV
remain within the specified limits. The absolute sum of input currents on all port pins may not exceed 50 mA.
7) Not 100% tested, guaranteed by design characterization.
I
8) The typical
values are periodically measured at T
CC
9) The maximum ICC values are measured under worst case conditions (T
= +25 ˚C but not 100% tested.
A
= 0 ˚C and V
A
= 5.5 V)
CC
Semiconductor Group471997-10-01
Page 48
C540U
C541U
AC Characteristics
V
= 4.0V to 5.5V (5V +10%, -20%); VSS = 0 VTA = 0 to 70 °C
CC
(CL for port 0, ALE and PSEN outputs = 100 pF; CL for all other outputs = 80 pF)
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 int
Input instruction hold after PSEN
Input instruction float after PSEN
Address valid after PSEN
Address to valid instruction in
Address float to PSEN
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
PLPH
PLIV
t
PXIX
t
PXIZ
t
PXAV
t
AVIV
t
AZPL
10-MHz clock
Duty Cycle
0.4 to 0.6
Variable Clock
1/CLP = 2 MHz to
12 MHz **)
min.max.min.max.
43–CLP - 40–ns
13–TCL
13–TCL
-20 –ns
Hmin
-20 –ns
Hmin
–80–2 CLP - 87ns
13–TCL
86–CLP+
TCL
–51–CLP+
-20–ns
Lmin
–ns
-30
Hmin
TCL
Hmin
ns
- 65
0–0–ns
*)
–23–TCL
*)
28–TCL
- 5–ns
Lmin
–140–2 CLP +
TCL
Lmin
Hmin
-10ns
ns
-60
00–ns
*)
Interfacing the C540U/C541U to devices with float times up to 28 ns is permissible. This limited bus contention
will not cause any damage to port 0 drivers.
**)
For correct function of the USB module the C540U/C541U must operate with 12 MHz external clock. The
microcontroller (except the USB module) operates down to 2 MHz.
Semiconductor Group481997-10-01
Page 49
C540U
C541U
AC Characteristics (cont’d)
External Data Memory Characteristics
ParameterSymbolLimit ValuesUnit
pulse width
RD
WR
pulse width
Address hold after ALE
RD
to valid data in
Data hold after RD
Data float after RD
ALE to valid data in
Address to valid data in
1) This value includes an external resistor of 30Ω± 1% (see “Load for D+/D-“ diagram for testing details)
R
DH
DL
I
I
OZ
CR
2843Ω
2851Ω
–± 5µAVIN = VSS or V
–± 10µAV
1.32.0V
1)
= VSS or V
OUT
2)
CC
CC
1)
2) The crossover point is in the range of 1.3V to 2.0V for the high speed mode with a 50pF capacitance. In the
low-speed mode with a 100pF or greater capacitance, the crossover point is in the range of 1.3V to 2.0V.
ParameterSymbolLimit ValuesUnit
min.max.
High speed mode rise time
High speed mode fall time
Low speed mode rise time
Low speed mode fall time
t
FR
t
FF
t
LR
t
LF
420ns
420ns
75300ns
75300ns
Semiconductor Group611997-10-01
Page 62
V
-0.5 V
CC
0.45 V
V
+0.90.2
CC
V
0.2-0.1
CC
Test Points
MCT00039
AC Inputs during testing are driven at VCC - 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 35
AC Testing: Input, Output Waveforms
C540U
C541U
-0.1 V
V
OH
V
+0.1 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 VOH/VOL level occurs.
I
OL/IOH
≥ ± 20 mA
Figure 36
AC Testing : Float Waveforms
2.8 V
30 k Ω
Test Point
S1
1.5 k Ω *)
D.U.T
15 k Ω
C
= 50 pF, full speed
L
= 50 pF, low speed (min. timing)
C
L
= 350 pF, low speed (max. timing)
C
L
*) 1.5 kΩ on D- (low speed) or D+ (full speed) only
C
L
Test
D- / LS
D+ / LS
D- / FS
D+ / FS
S1
Close
Open
Open
Close
MCS03425
Figure 37
Load for D+/D-
Semiconductor Group621997-10-01
Page 63
Crystal Oscillator ModeDriving from External Source
C540U
C541U
C
XTAL2
2 - 12
MHz
XTAL1
C
Crystal Mode:C = 20 pF 10 pF
(Incl. Stray Capacitance)
N.C.
External Oscillator
Signal
Figure 38
Recommended Oscillator Circuits for Crystal Oscillator
XTAL2
XTAL1
MCS03426
Semiconductor Group631997-10-01
Page 64
Plastic Package, P-LCC-44-1 (SMD)
(Plastic Leaded Chip Carrier Package)
C540U
C541U
Figure 39
P-LCC-44-1 Package Outline
Sorts of Packing
Package outlines for tubes, trays etc. are contained in our
Data Book “Package Information”
SMD = Surface Mounted Device
GPL05102
Dimensions in mm
Semiconductor Group641997-10-01
Page 65
Plastic Package, P-SDIP-52-1
(Plastic Shrink Dual In-Line Package)
C540U
C541U
Figure 40
P-SDIP-52-1 Package Outline
Sorts of Packing
Package outlines for tubes, trays etc. are contained in our
Data Book “Package Information”
GPD05262
Dimensions in mm
Semiconductor Group651997-10-01
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.