Ordering information resorted and C501G-1E types added
Table with literature hints added
Pin configuration logic symbol for pins EA
Pin description for ALE/PROG and EA/Vpp completed
Port 1, 3, 2 pin description: “bidirectional” replaced by “quasi-
bidirectional”
13
14
15-18
17
-
41
-
13
14
15
16-18
17
25-28
31
41
43, 44
Block diagram updated for C501G-1E
New design of register (PSW) description
“Memory organization” added
Actualized design of the SFR tables
Reset value of T2CON corrected
Description for the C501-1E OTP version added
DC characteristics for C501-1E added
Timing “External Clock Drive” now behind “Data Memory Cycle”
AC characteristics for C501-1E added
/Vpp and ALE/PROG updated
Edition 1997-04-01
Published by Siemens AG,
Bereich Halbleiter, MarketingKommunikation, Balanstraße 73,
81541 München
As far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes
and circuits implemented within components or assemblies.
The information describes the type of component and shall not be considered as assured characteristics.
Terms of delivery and rights to change design reserved.
For questions on technology, delivery and prices please contact the Semiconductor Group Offices in Germany or the Siemens Companies
and Representatives worldwide (see address list).
Due to technical requirements components may contain dangerous substances. For information on the types in question please contact
your nearest Siemens Office, Semiconductor Group.
Siemens AG is an approved CECC manufacturer.
Packing
Please use the recycling operators known to you. We can also help you – get in touch with your nearest sales office. By agreement we will
take packing material back, if it is sorted. You must bear the costs of transport.
For packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs incurred.
Components used in life-support devices or systems must be expressly authorized for such purpose!
Critical components
written approval of the Semiconductor Group of Siemens AG.
1 A critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the
failure of that life-support device or system, or to affect its safety or effectiveness of that device or system.
2 Life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain hu-
man life. If they fail, it is reasonable to assume that the health of the user may be endangered.
1
of the Semiconductor Group of Siemens AG, may only be used in life-support devices or systems
2
with the express
8-Bit CMOS Microcontroller
Preliminary
Fully compatible to standard 8051 microcontroller
•
Versions for 12/24/40 MHz operating frequency
•
Program memory : completely external (C501-L)
•
8K × 8 ROM (C501-1R)
8K × 8 OTP memory (C501-1E)
256 × 8 RAM
•
Four 8-bit ports
•
Three 16-bit timers / counters (timer 2 with up/down counter feature)
•
USART
•
Six interrupt sources, two priority levels
•
Power saving modes
•
Quick Pulse programming algorithm (C501-1E only)
•
2-Level program memory lock (C501-1E only)
•
P-DIP-40, P-LCC-44, and P-MQFP-44 package
•
Temperature ranges :SAB-C501
•
SAF-C501
: 0 ˚C to 70 ˚C
T
A
: – 40 ˚C to 85 ˚C
T
A
C501
C501
Power
Saving
Modes
T2
Figure 1
C501G Functional Units
RAM
256 x 8
T0
CPU
T1
8K x 8 ROM (C501-1R)
8K x 8 OTP (C501-1E)
USART
Port 0
Port 1
Port 2
Port 3
Ι
/O
Ι
/O
Ι
/O
Ι
/O
MCA03238
Semiconductor Group31997-04-01
C501
The C501-1R contains a non-volatile 8K × 8 read-only program memory, a volatile 256 × 8 read/
write data memory, four ports, three 16-bit timers counters, a seven source, two priority level
interrupt structure and a serial port. The C501-L is identical, except that it lacks the program
memory on chip. The C501-1E contains a one-time programmable (OTP) program memory on chip.
The term C501 refers to all versions within this specification unless otherwise noted. Further, the
term C501 refers to all versions which are available in the different temperature ranges, marked with
SAB-C501... or SAF-C501.... .
Ordering Information
TypeOrdering Code PackageDescription
(8-Bit CMOS microcontroller)
SAB-C501G-LN
SAB-C501G-LP
SAB-C501G-LM
SAB-C501G-L24N
SAB-C501G-L24P
SAB-C501G-L24M
SAB-C501G-L40N
SAB-C501G-L40P
SAB-C501G-L40M
SAF-C501G-L24N
SAF-C501G-L24P
SAB-C501G-1RN
SAB-C501G-1RP
SAB-C501G-1RM
SAB-C501G-1R24N
SAB-C501G-1R24P
SAB-C501G-1R24M
SAB-C501G-1R40N
SAB-C501G-1R40P
SAB-C501G-1R40M
Q67120-C969
Q67120-C968
Q67127-C970
Q67120-C1001
Q67120-C999
Q67127-C1014
Q67120-C1002
Q67120-C1000
Q67127-C1009
Q67120-C1011
Q67120-C1010
Q67120-DXXX
Q67120-DXXX
Q67127-DXXX
Q67120-DXXX
Q67120-DXXX
Q67127-DXXX
Q67120-DXXX
Q67120-DXXX
Q67127-DXXX
P-LCC-44
P-DIP-40
P-MQFP-44
P-LCC-44
P-DIP-40
P-MQFP-44
P-LCC-44
P-DIP-40
P-MQFP-44
P-LCC-44
P-MQFP-44
P-LCC-44
P-DIP-40
P-MQFP-44
P-LCC-44
P-DIP-40
P-MQFP-44
P-LCC-44
P-DIP-40
P-MQFP-44
for external memory (12 MHz)
for external memory (24 MHz)
for external memory (40 MHz)
for external memory (24 MHz)
ext. temp. – 40 ˚C to 85 ˚C
with mask-programmable ROM (12 MHz)
with mask-programmable ROM (24 MHz)
with mask-programmable ROM (40 MHz)
SAF-C501G-1R24N
SAF-C501G-1R24P
SAB-C501G-1EN
SAB-C501G-1EP
SAF-C501G-1EN
SAF-C501G-1EP
SAB-C501G-1E24N
SAB-C501G-1E24P
SAF-C501G-1E24N
SAF-C501G-1E24P
Semiconductor Group41997-04-01
Q67120-DXXX
Q67120-DXXX
Q67120-C1054
Q67120-C1056
Q67120-C2002
Q67120-C2003
Q67120-C2005
Q67120-C2006
Q67120-C2008
Q67120-C2009
P-LCC-44
P-DIP-40
P-LCC-44
P-DIP-40
P-LCC-44
P-DIP-40
P-LCC-44
P-DIP-40
P-LCC-44
P-DIP-40
with mask-programmable ROM (24 MHz)
ext. temp. – 40 ˚C to 85 ˚C
with OTP memory (12 MHz)
with OTP memory (12 MHz))
ext. temp. – 40 ˚C to 85 ˚C
with OTP memory (24 MHz)
with OTP memory (24 MHz))
ext. temp. – 40 ˚C to 85 ˚C
Note: Versions for extended temperature range – 40 ˚C to 110 ˚C (SAH-C501G) on request.
The ordering number of ROM types (DXXX extensions) is defined after program release
(verification) of the customer.
Additional Literature
For further information about the C501 the following literature is available :
is a quasi-bidirectional I/O port with
internal pull-up resistors. Port 1 pins that
have 1s 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 (
istics) because of the internal pull-up
resistors. Port 1 also contains the timer 2
pins as secondary function. The output
latch corresponding to a secondary
function must be pro-grammed to a one
(1) for that function to operate.
The secondary functions are assigned to
the pins of port 1, as follows:
P1.0T2Input to counter 2
P1.1T2EX Capture - Reload trigger of
I
, in the DC character-
IL
timer 2 / Up-Down count
Semiconductor Group81997-04-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*) Function
P-LCC-44 P-DIP-40 P-MQFP-44
C501
P3.0 – P3.7 11,
13–19
11
13
14
15
16
17
18
19
10–17
10
11
12
13
14
15
16
17
5, 7–13
5
7
8
9
10
11
12
13
I/O Port 3
is a quasi-bidirectional I/O port with
internal pull-up resistors. Port 3 pins that
have 1s written to them are pulled high by
the internal pull-up resistors, and in that
state they can be used as inputs. As
inputs, port 3 pins being externally pulled
low will source current (
characteristics) because of the internal
pull-up resistors. Port 3 also contains the
interrupt, timer, serial port 0 and external
memory strobe pins which 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.0R × Dreceiver data input (asyn-
P3.1T × Dtransmitter data output
P3.2INT
P3.3INT1interrupt 1 input/timer 1
P3.4T0counter 0 input
P3.5T1counter 1 input
P3.6WRthe write control signal lat-
P3.7RDthe read control signal
I
, in the DC
IL
chronous) or data input
output (synchronous) of
serial interface 0
(asynchronous) or clock
output (synchronous) of
the serial interface 0
0interrupt 0 input/timer 0
gate control
gate control
ches the data byte from
port 0 into the external
data memory
enables the external data
memory to port 0
*) I= Input
O = Output
Semiconductor Group91997-04-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*) Function
P-LCC-44 P-DIP-40 P-MQFP-44
C501
XTAL2201814–
XTAL2
Output of the inverting oscillator
amplifier.
XTAL1211915–
XTAL1
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. There
are no requirements on the duty cycle of
the external clock signal, since the input
to the internal clocking circuitry is divided
down by a divide-by-two flip-flop.
Minimum and maximum high and low
times as well as rise fall times specified
in the AC characteristics must be
observed.
P2.0 – P2.7 24–3121–2818–25I/O Port 2
is a quasi-bidirectional I/O port with
internal pull-up resistors. Port 2 pins that
have 1s written to them are pulled high
by the internal pull-up resistors, and in
that state they can be used as inputs. As
inputs, port 2 pins being externally pulled
low will source current (
characteristics) because of the internal
pull-up resistors. Port 2 emits the highorder 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
pull-up resistors when issuing 1s. During
accesses to external data memory that
use 8-bit addresses (MOVX @Ri), port
2 issues the contents of the P2 special
function register.
, in the DC
I
IL
*) I= Input
O = Output
Semiconductor Group101997-04-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*) Function
P-LCC-44 P-DIP-40 P-MQFP-44
C501
PSEN
322926O
RESET1094I
ALE/PROG
333027I/OThe Address Latch Enable
The 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. Remains high during internal
program execution.
RESET
A high level on this pin for two machine
cycles while the oscillator is running
resets the device. An internal diffused
resistor to
using only an external capacitor to
permits power-on reset
V
SS
.
V
CC
output is used for latching the low-byte of
the address into external memory during
normal operation. It is activated every six
oscillator periods except during an
external data memory access.
For the C501-1E this pin is also the
program pulse input (PROG) during OTP
memory programming.
EA
/
V
PP
353129I
External Access
Enable
When held at high level, instructions are
fetched from the internal ROM (C501-1R
and C501-1E) when the PC is less than
2000H. When held at low level, the C501
fetches all instructions from external
program memory. For the C501-L this
pin must be tied low.
This pin also receives the programming
supply voltage
V
during OTP memory
PP
programming (C501-1E) only).
*) I= Input
O = Output
Semiconductor Group111997-04-01
Table 1
Pin Definitions and Functions (cont’d)
SymbolPin NumberI/O*) Function
P-LCC-44 P-DIP-40 P-MQFP-44
P0.0 – P0.7 43–3639–3237–30I/OPort 0
is an 8-bit open-drain bidirectional I/O
port. Port 0 pins that have 1s 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 or data memory. In this
application it uses strong internal pull-up
resistors when issuing 1s.
Port 0 also outputs the code bytes during
program verification in the C501-1R and
C501-1E. External pull-up resistors are
required during program verification.
C501
V
SS
V
CC
222016–Circuit ground potential
444038–Supply terminal for all operating modes
N.C.1, 12,
23, 34
*) I= Input
O = Output
–6, 17,
28, 39
–No connection
Semiconductor Group121997-04-01
C501
Functional Description
The C501 is fully compatible to the standard 8051 microcontroller family.
It is compatible with the 80C32/52/82C52. While maintaining all architectural and operational
characteristics of the 8051microcontroller family, the C501 incorporates some enhancements in the
timer 2 unit.
Figure 6 shows a block diagram of the C501.
V
CC
V
SS
XTAL1
XTAL2
RESET
ALE/PROG
PSEN
EA/
V
PP
C501
OSC & Timing
Serial Channel
CPU
Timer 0
Timer 1
Timer 2
Interrupt Unit
(USART)
RAM
256 x 8
C501-1R : ROM
C501-1E : OTP
8K x 8
Port 0
Port 1
Port 2
Port 3
Port 0
8-Bit Digit.
Port 1
8-Bit Digit.
Port 2
8-Bit Digit.
Port 3
8-Bit Digit.
Ι/O
Ι/O
Ι/O
/OΙ
MCB03219
Figure 6
Block Diagram of the C501
Semiconductor Group131997-04-01
C501
CPU
The C501 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 1.0 µs
24 MHz: 500 ns, 40 MHz : 300 ns).
Special Function Register PSW (Address D0H) Reset Value : 00H
Bit No.MSBLSB
H
D7
CYAC
H
D6
H
D5
F0
H
D4
RS1RS0OVF1PD0
BitFunction
CYCarry Flag
Used by arithmetic instruction.
ACAuxiliary Carry Flag
Used by instructions which execute BCD operations.
F0General Purpose Flag
RS1
RS0
Register Bank select control bits
These bits are used to select one of the four register banks.
RS1RS0Function
00Bank 0 selected, data address 00H-07
01Bank 1 selected, data address 08H-0F
10Bank 2 selected, data address 10H-17
11Bank 3 selected, data address 18H-1F
H
D3
H
D2
H
D1
H
D0
H
PSW
H
H
H
H
OVOverflow Flag
Used by arithmetic instruction.
F1General Purpose Flag
PParity Flag
Set/cleared by hardware after each instruction to indicate an odd/even
number of "one" bits in the accumulator, i.e. even parity.
Semiconductor Group141997-04-01
Memory Organization
The C501 CPU manipulates data and operands in the following four address spaces:
– up to 64 Kbyte of internal/external program memory
– up to 64 Kbyte of external data memory
– 256 bytes of internal data memory
– a 128 byte special function register area
Figure 7 illustrates the memory address spaces of the C501.
C501
External
Internal
"Code Space"
FFFF
2000
External
(EA = 0)(EA = 1)
H
H
1FFF
0000
FFFF
H
External
Indirect
Address
FF
H
Internal
RAM
80
H
H
0000
H
"Data Space""Internal Data Space"
H
Internal
RAM
Direct
Address
Special
Function
Register
7F
H
00
H
MCD03224
FF
80
H
H
Figure 7
C501 Memory Map
Semiconductor Group151997-04-01
C501
Special Function Registers
The registers, except the program counter and the four general purpose register banks, reside in
the special function register area.
The 27 special function registers (SFRs) include pointers and registers that provide an interface
between the CPU and the other on-chip peripherals. All SFRs with addresses where address bits
0-2 are 0 (e.g. 80H, 88H, 90H, 98H, ..., F8H, FFH) are bitaddressable.
The SFRs of the C501 are listed in table 2 and table 3. In table 2 they are organized in groups
which refer to the functional blocks of the C501. Table 3 illustrates the contents of the SFRs in
numeric order of their addresses.
Semiconductor Group161997-04-01
C501
Table 2
Special Function Registers - Functional Blocks
BlockSymbolNameAddressContents after
Reset
CPUACC
B
DPH
DPL
PSW
SP
Interrupt
System
IE
IP
PortsP0
P1
P2
P3
Serial
Channel
PCON
SBUF
SCON
Timer 0 /
Timer 1
TCON
TH0
TH1
TL0
TL1
TMOD
Timer 2T2CON
T2MOD
RC2H
RC2L
TH2
TL2
Pow. Sav.
PCON
Modes
Accumulator
B-Register
Data Pointer, High Byte
Data Pointer, Low Byte
Program Status Word Register
Stack Pointer
1) X means that the value is undefined and the location is reserved
2) Bit-addressable special function registers
PSW00
H
2)
ACC00
H
2)
B00
H
Semiconductor Group181997-04-01
Timer / Counter 0 and 1
Timer/counter 0 and 1 can be used in four operating modes as listed in table 4.
Table 4
Timer/Counter 0 and 1 Operating Modes
ModeDescriptionTMODInput Clock
C501
08-bit timer/counter with a
GateC/T
XX00
M1M0internalexternal (max)
f
OSC/12 × 32
f
OSC/24 × 32
divide-by-32 prescaler
116-bit timer/counterXX11f
28-bit timer/counter with
XX00f
OSC/12
OSC/12
f
OSC/24
f
OSC/24
8-bit autoreload
3Timer/counter 0 used as one
XX11f
OSC/12
f
OSC/24
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
/12.
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
/24. External inputs INTO and INT1 (P3.2, P3.3) can be
OSC
programmed to function as a gate to facilitate pulse width measurements. Figure 8 illustrates the
input clock logic.
f
OSC
P3.4/T0
P3.5/T1
max
P3.2/INT0
P3.3/INT1
f
OSC
/24
TR 0/1
TCON
Gate
TMOD
=1
Figure 8
Timer/Counter 0 and 1 Input Clock Logic
f
÷
12
C/T
TMOD
0
1
Control
&
_
<
1
MCS01768
/12
OSC
Timer 0/1
Input Clock
Semiconductor Group191997-04-01
C501
Timer 2
Timer 2 is a 16-bit timer/counter with an up/down count feature. It can operate either as timer or as
an event counter which is selected by bit C/T2 (T2CON.1). It has three operating modes as shown
in table 5.
interrupt
request (TF2)
extra external
interrupt
(“Timer 2”)
Input Clock
f
/12
OSC
f
/12
OSC
f
/2
OSC
external
(P1.0/T2)
max
f
/24
OSC
max
f
/24
OSC
max
f
/24
OSC
offXX0XXXTimer 2 stops––
Note: ↓ = falling edge
Semiconductor Group201997-04-01
C501
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 6. The possible baudrates can be calculated using the
formulas given in table 7.
Table 6
USART Operating Modes
Mode
SCONBaudrateDescription
SM0SM1
000
f
/12Serial data enters and exits through R×D.
OSC
T×D outputs the shift clock. 8-bit are
transmitted/received (LSB first)
101Timer 1/2 overflow rate8-bit UART
10 bits are transmitted (through T×D) or
received (R×D)
210
f
/32 or f
OSC
OSC
/649-bit UART
11 bits are transmitted (T×D) or
received (R×D)
311Timer 1/2 overflow rate9-bit UART
Like mode 2 except the variable baud rate
Table 7
Formulas for Calculating Baudrates
Baud Rate
Interface ModeBaudrate
derived from
Oscillator0
Timer 1 (16-bit timer)
(8-bit timer with
2
1,3
1,3
(2
(2
SMOD
SMOD
× timer 1 overflow rate) /32
× f
f
/12
OSC
SMOD
(2
OSC
× f
OSC
) / 64
) / (32 × 12 × (256-TH1))
8-bit autoreload)
f
Timer 21,3
/ (32 × (65536-(RC2H, RC2L))
OSC
Semiconductor Group211997-04-01
C501
Interrupt System
The C501 provides 6 interrupt sources with two priority levels. Figure 9 gives a general overview of
the interrupt sources and illustrates the request and control flags.
P1.1/
T2EX
Timer 0 Overflow
Timer 1 Overflow
Timer 2 Overflow
EXEN2
T2CON.3
USART
TCON.0
TF2
T2CON.7
EXF2
T2CON.6
RI
SCON.0
TI
SCON.1
TF0
TCON.5
TF1
TCON.7
_
<
1
_
<
1
ET0
IE.1IP.1
ET1
IE.3
ET2
IE.5IP.5
ES
PT0
PT1
IP.3
PT2
PS
IP.4IE.4
High Priority
Low Priority
P3.2/
INT0
IT0
TCON.0
P3.3/
INT1
IT1
TCON.2
Figure 9
Interrupt Request Sources
IE0
TCON.1
IE1
TCON.3
EX0
IE.0IP.0
EX1
IE.2IP.2
EA
IE.7
PX0
PX1
MCS01783
Semiconductor Group221997-04-01
Table 8
Interrupt Sources and their Corresponding Interrupt Vectors
Source (Request Flags)VectorVector Address
C501
IE0
TF0
IE1
TF1
RI + TI
TF2 + EXF2
A low-priority interrupt can itself be interrupted by a high-priority interrupt, but not by another lowpriority interrupt. A high-priority interrupt cannot be interrupted by any other interrupt source.
If two requests of different priority level are received simultaneously, the request of higher priority is
serviced. If requests of the same priority are received simultaneously, an internal polling sequence
determines which request is serviced. Thus within each priority level there is a second priority
structure determined by the polling sequence as shown in table 9.
External interrupt 0
Timer 0 interrupt
External interrupt 1
Timer 1 interrupt
Serial port interrupt
Timer 2 interrupt
High
↓
Low
0003
000B
0013
001B
0023
002B
H
H
H
H
H
H
Semiconductor Group231997-04-01
C501
Power Saving Modes
Two power down modes are available, the Idle Mode and Power Down Mode.
The bits PDE and IDLE of the register PCON select the Power Down mode or the Idle mode,
respectively. If the Power Down mode and the Idle mode are set at the same time, the Power Down
mode takes precedence. Table 10 gives a general overview of the power saving modes.
Table 10
Power Saving Modes Overview
ModeEntering
Leaving byRemarks
Instruction
Example
Idle modeORL PCON, #01H– enabled interrupt
– Hardware Reset
CPU is gated off
CPU status registers maintain
their data.
Peripherals are active
Power-Down
Mode
ORL PCON, #02HHardware ResetOscillator is stopped, contents
of on-chip RAM and SFR’s are
maintained (leaving Power
Down Mode means redefinition
of SFR contents).
In the Power Down mode of operation,
be ensured, however, that VCC is not reduced before the Power Down mode is invoked, and that V
V
can be reduced to minimize power consumption. It must
CC
CC
is restored to its normal operating level, before the Power Down mode is terminated. The reset
signal that terminates the Power Down mode also restarts the oscillator. The reset should not be
activated before VCC is restored to its normal operating level and must be held active long enough
to allow the oscillator to restart and stabilize (similar to power-on reset).
Semiconductor Group241997-04-01
C501
OTP Operation
The C501-1E is programmed by usng a modified Quick-Pulse Programming
from older methods in the value used for VPP (programming supply voltage) and in the width and
number of the ALE/PROG pulses. The C501-1E contains two signature bytes that can be read and
used by a programming system to identify the device. The signature bytes identify the manufacturer
of the device.
Table 11 shows the logic levels for reading the signature byte, and for programming the program
memory, the encryption table, and the security bits. The circuit configuration and waveforms for
quick-pulse programming are shown in figures 10 to 12.
Table 11
OTP Programming Modes
TM 1)
algorithm. It differs
ModeRESETPSENALE/
EA/V
P2.7P2.6P3.7P3.6
PP
PROG
Read signature10110000
Program code data100V
PP
1011
Verify code data10110011
Progam encryption table100V
Program security bit 1100V
Program security bit 2100V
PP
PP
PP
1010
1111
1100
Notes :
1. “0” = valid low for that pin, “1” = valid high for that pin.
2. V
3. V
4. ALE/PROG
= 12.75 V ± 0.25V
PP
= 5 V ± 10% during programming and verification.
CC
receives 25 programming pulses while VPP is held at 12.75 V. Each programming pulse is low for
100 µs (±
10 µs) and high for a minimum of 10 µs.
1)
Quick-Pulse ProgrammingTM is a trademark phrase of Intel Corporation
Semiconductor Group251997-04-01
C501
Quick-Pulse Programming
The setup for microcontroller quick-pulse programming is shown in figure 10. Note that the C5011E is running with a 4 to 6 MHz oscillator The reason the oscillator needs to be running is that the
device is executing internal address and program data transfers.
The address of the OTP memory location to be programmed is applied to port 1 and 2 as shown in
figure 10. The code byte to be programmed into that location is applied to port 0. RESET, PSEN
and pins of port 2 and 3 specified in table 11 are held at the “Program code data“ levels. The ALE/
PROG signal is pulsed low 25 times as shown in figure 11.
For programming of the encryption table, the 25 pulse programming sequence must be repeated for
addresses 0 through 1FH, using the “Program encrytion table“ levels. After the encryption table is
programmed, verification cycles will produce only encrypted data.
For programming of the security bits, the 25 pulse programming sequence must be repeat using the
“Program security bit“ levels. After one security bit is programmed, further programming of the code
memory and encryption table is disabled. However, the other security bit can still be programmed.
Note that the EA/VPP pin must not be allowed to go above the maximum specified VPP level. for any
amount of time. Even a narrow glitch above that voltage can cause permanent damage to the
device. The VPP source should be well regulated and free of glitches and overshoots.
Program Verification
If security bit 2 has not been programmed, the on-chip OTP program memory can be read out for
program verification. The address of the OTP program memory locations to be read is applied to
ports 1 and 2 as shown in figure 12. The other pins are held at the “Verify code data“ levels
indicated in table 11. The contents of the address location will be emitted on port 0. External pullups
are required on port 0 for this operation.
If the encryption table has been programmed, the data presented at port 0 will be the exclusive NOR
of the program byte with one of the encryption bytes. The user will have to know the encryption
table contents in order to correctly decode the verification data. The encryption table itself cannot be
read out.
Reading the SIgnature Bytes
The signature bytes are read by the same procedure as a normal verification of loctions 30H and
31H, except that P3.6 and P3.7 need to be pulled to a logic low. The values are :
Ambient temperature under bias (TA) ......................................................... – 40 to 85 °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 Group291997-04-01
DC Characteristics for C501-L / C501-1R
V
= 5 V + 10 %, – 15 %; VSS = 0 V;TA = 0 ˚C to 70 ˚Cfor the SAB-C501
CC
T
= – 40 ˚C to 85 ˚Cfor the SAF-C501
A
ParameterSymbolLimit ValuesUnit Test Condition
min.max.
C501
Input low voltage (except EA,
RESET)
Input low voltage (EA
)V
Input low voltage (RESET)
Input high voltage (except
XTAL1, EA
, RESET)
Input high voltage to XTAL1
Input high voltage to EA
,
RESET
Output low voltage
(ports 1, 2, 3)
Output low voltage
(port 0, ALE, PSEN)
Output high voltage
(ports 1, 2, 3)
Output high voltage
(port 0 in external bus mode,
ALE, PSEN
)
V
IL
IL 1
V
IL 2
V
IH
V
IH 1
V
IH 2
V
OL
V
OL 1
V
OH
V
OH 1
– 0.50.2 VCC – 0.1 V–
– 0.50.2 VCC – 0.3 V–
– 0.50.2 VCC + 0.1 V–
0.2 VCC + 0.9 VCC + 0.5V–
0.7 V
0.6 V
CC
CC
V
+ 0.5V
CC
V
+ 0.5V–
CC
–0.45VIOL = 1.6 mA
–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
1)
1)
2)
,
2)
Logic 0 input current
I
(ports 1, 2, 3)
Logical 1-to-0 transition
I
current (ports 1, 2, 3)
Input leakage current
(port 0, EA
)
I
Pin capacitanceC
Power supply current:
7)
Active mode, 12 MHz
Idle mode, 12 MHz
7)
Active mode, 24 MHz
Idle mode, 24 MHz
7)
Active mode, 40 MHz
Idle mode, 40 MHz
7)
Power Down Mode
I
I
7)
I
I
7)
I
I
I
Notes see page 32.
IL
TL
LI
CC
CC
CC
CC
CC
CC
PD
– 10– 50µAVIN = 0.45 V
– 65– 650µAVIN = 2 V
–± 1µA0.45 < VIN < V
IO
–10pFf
–
–
–
–
–
–
–
21
4.8
36.2
8.2
56.5
12.7
50
mA
mA
mA
mA
mA
mA
µA
= 1 MHz,
C
T
= 25 ˚C
A
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 2 … 5.5 V
CC
CC
4)
5)
4)
5)
4)
5)
3)
Semiconductor Group301997-04-01
DC Characteristics for C501-1E
V
= 5 V + 10 %, – 15 %; VSS = 0 V;TA = 0 ˚C to 70 ˚Cfor the SAB-C501
CC
T
= – 40 ˚C to 85 ˚Cfor the SAF-C501
A
ParameterSymbolLimit ValuesUnit Test Condition
min.max.
C501
Input low voltage (except
EA/VPP, RESET)
Input low voltage (EA
/VPP)V
Input low voltage (RESET)
Input high voltage (except
XTAL1, EA
/VPP, RESET)
Input high voltage to XTAL1
Input high voltage to EA
/VPP,
RESET
Output low voltage
(ports 1, 2, 3)
Output low voltage
(port 0, ALE/PROG, PSEN)
Output high voltage
(ports 1, 2, 3)
Output high voltage
(port 0 in external bus mode,
ALE/PROG
, PSEN)
V
IL
IL 1
V
IL 2
V
IH
V
IH 1
V
IH 2
V
OL
V
OL 1
V
OH
V
OH 1
– 0.50.2 VCC – 0.1 V–
– 0.50.1 VCC – 0.1 V–
– 0.50.2 VCC + 0.1 V–
0.2 VCC + 0.9 VCC + 0.5V–
0.7 V
0.6 V
CC
CC
V
+ 0.5V
CC
V
+ 0.5V–
CC
–0.45VIOL = 1.6 mA
–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
1)
1)
2)
,
2)
Logic 0 input current
I
(ports 1, 2, 3)
Logical 1-to-0 transition
I
current (ports 1, 2, 3)
Input leakage current
(port 0, EA
/VPP)
I
Pin capacitanceC
Power supply current:
7)
Active mode, 12 MHz
Idle mode, 12 MHz
7)
Active mode, 24 MHz
Idle mode, 24 MHz
7)
Power Down Mode
I
I
7)
I
I
I
Notes see next page.
IL
TL
LI
CC
CC
CC
CC
PD
– 10– 50µAVIN = 0.45 V
– 65– 650µAVIN = 2 V
–± 1µA0.45 < VIN < V
IO
–10pFf
–
–
–
–
–
21
18
36.2
20
50
mA
mA
mA
mA
µA
= 1 MHz,
C
T
= 25 ˚C
A
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 5 V,
CC
V
= 2 … 5.5 V
CC
CC
4)
5)
4)
5)
3)
Semiconductor Group311997-04-01
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.
2)
Capacitive loading on ports 0 and 2 may cause the VOH on ALE and PSEN to momentarily fall bellow the
V
0.9
3)
I
PD
EA
4)
I
CC
XTAL1 driven with
EA
used (appr. 1 mA).
5)
I
CC
XTAL1 driven with
RESET = EA
specification when the address lines are stabilizing.
CC
(Power Down Mode) is measured under following conditions:
= Port0 = VCC; RESET = VSS; XTAL2 = N.C.; XTAL1 = VSS; all other pins are disconnected.
(active mode) is measured with:
Oscillator frequency1 /
Address setup to ALE/PROG
Address hold after ALE/PROG
Data setup to ALE/PROG
Data hold after ALE/PROG
P2.7 (ENABLE
V
setup to ALE/PROG lowt
PP
hold after ALE/PROG lowt
V
PP
ALE/PROG
) high to V
widtht
Address to data valid
ENABLE
low to data validt
Data float after ENABLE
ALE/PROG
high to ALE/PROG lowt
lowt
lowt
PP
AVGL
t
GHAX
DVGL
t
GHDX
t
EHSH
SHGL
GHSL
GLGH
t
AVQV
ELQV
t
EHQZ
GHGL
PP
t
CLCL
12.513.0V
–50mA
46MHz
48 t
48 t
48 t
48 t
48 t
CLCL
CLCL
CLCL
CLCL
CLCL
–ns
–ns
–ns
–ns
–ns
10–µs
10–µs
90110µs
–48 t
–48 t
048 t
CLCL
CLCL
CLCL
ns
ns
ns
10–µs
Semiconductor Group431997-04-01
C501
P1.0 - P1.7
P2.0 - P2.4
Port 0
ALE/PROG
V
EA/
PP
P2.7
ENABLE
t
AVGL
t
EHSH
t
DVGL
t
GLGH
t
SHGL
Programming
Address
t
AVQV
DataData
t
GHDX
t
GHAX
t
GHGL
t
GHSL
Logic 0
t
ELQV
Verification
Address
Logic 1
t
EHQZ
MCT03237
Figure 18
C501-1E OTP Memory Program/Read Cycle
Semiconductor Group441997-04-01
C501
g
V
-0.5 V
CC
0.45 V
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
Figure 19
AC Testing: Input, Output Waveforms
V
+0.90.2
CC
V
0.2-0.1
CC
Test Points
for a logic ‘0’.
ILmax
MCT00039
-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
/ IOH ≥ ± 20 mA.
OL
Figure 20
AC Testing: Float Waveforms
Crystal Oscillator ModeDriving from External Source