STMICROELECTRONICS SERGBQA

SERCON410B
DATASHEET
USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED.
SGS-THOMSON PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT
DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF SGS-THOMSON Microelectronics.
As used herein :
1. Life support devices or systems are those which (a) are
intended for surgical implant into the body, or (b) support
or sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided with the product, can be reasonably expected to
result in significant injury to the user.
2. A critical component is any component of a life support
device or system whose failure to perform can reasonably be expected to cause the failure of the life support
device or system, or to affect its safety or effectiveness.
SERCON410B DATASHEET
INDEX
Page
Number
SERCON410B
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
3 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
3.1 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
3.2 RECOMMENDED OPERATING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
3.3 DC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . .
9
3.4 AC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.1 Clock Input MCLK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.2 Clock Input SCLK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.3 Serial Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.4 Address Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.5 Read Access of Control Registers . . . . . . . . . . . . . . . . . . . . . . . .
3.4.6 Read Access of Dual Port RAM . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.7 Write Access to Control Registers . . . . . . . . . . . . . . . . . . . . . . . .
3.4.8 Write Access to Dual Port RAM . . . . . . . . . . . . . . . . . . . . . . . . . .
11
11
11
12
12
13
14
15
16
4 CONTROL REGISTERS AND RAM DATA STRUCTURES . . . . . . . . . . . . . . . . . . . .
17
4.1 CONTROL REGISTER ADDRESSES . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
4.2 DATA STRUCTURES WITHIN THE RAM . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 Telegram Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.2 Data Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.3 End Marker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.4 Service Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
23
25
26
26
5 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
6 ADDITIONAL SUPPORT AND TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
6.1 SERCOS INTERFACE SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . .
29
6.2 SOFTWARE AND BOARDS FOR THE SERCON410B . . . . . . . . . . . . . . . . . .
29

SERCON410B
NOTES:

SERCON410B

SERCOS INTERFACE CONTROLLER
PRELIMINARY DATA
Single-chip controller for SERCOS interface
Real time communication for industrial control
systems
8/16-bit bus interface, Intel and Motorola control signals
Dual port RAM with 1024 words * 16-bit
Data communications via optical fiber rings, RS
485 rings and RS 485 busses
Maximum transmission rate of 4 Mbaud with internal clock recovery
Maximum transmission rate of 10 Mbaud with
external clock recovery
Internal repeater for ring connections
Full duplex operation
Modulation of power of optical transmitter diode
Automatic transmission of synchronous and
data telegrams in the communication cycle
Flexible RAM configuration, communication
data stored in RAM (single or double buffer) or
transfer via DMA
Synchronization by external signal
Timing control signals
Automatic service channel transmission
100-pin plastic flat-pack casing
PQFP100
(Ordering Number: SERGBQA)
May 1994
This is Preliminary Data from SGS-THOMSON. Details are subject to change without notice.
1/30
SERCON410B
Figure 1. SERCON410B Block Diagram
2/30

SERCON410B
Figure 2. SERCON410B Pin Configuration
3/30

SERCON410B
Figure 3. SERCOS Interface with Ring Connection
Figure 4. SERCON410B with RS-485 bus Connection
4/30

SERCON410B
1 GENERAL DESCRIPTION
The SERCOS interface controller SERCON410B
is an integrated circuit for SERCOS interface communication systems. The SERCOS interface is a
digital interface for communication between systems which have to exchange information cyclically at short, fixed intervals (65 µs to 65 ms). It is
appropriate for the synchronous operation of distributed control or test equipment (e.g. connection
between drives and numeric control).
A SERCOS interface communication system consists of one master and several slaves (Fig. 3).
These units are connected by a fiber optical ring.
This ring starts and ends at the master. The slaves
regenerate and repeat their received data or send
their own telegrams. By this method the telegrams
sent by the master are received by all slaves while
the master receives data telegrams from the
slaves. The optical fiber assures a reliable highspeed data transmission with excellent noise immunity.
The SERCOS interface controller contains all the
hardware-related functions of the SERCOS interface and considerably reduces the hardware
costs and the computing time requirements of the
microprocessor. It is the direct link between the
electro-optical receiver and transmitter and the microprocessor that executes the control algorithms.
The SERCON410B can be used both for SERCOS
interface masters and slaves.
The circuit contains the following functions (Fig. 1):
Interface to the microprocessor with a data
- bus
width of 8 or 16 bits and with control lines
according to Intel or Motorola standards.
interface for making a direct connec- Ationserial
with the optical receiver and transmitter of
the fiber optic ring or with drivers to an electric
ring or bus. Data and clock regeneration, the
repeater for ring topologies and the serial
transmitter and receiver are integrated. The
signals are monitored and test signals generated. The serial interface operates up to
4Mbaud without external circuitry and up to 10
Mbaud with external clock regeneration.
dual port RAM (1024 * 16 bit) for control and
- Acommunication
data. The organization of the
memory is flexible.
processing for automatic transmis- Telegram
sion and monitoring of synchronous and data
telegrams. Only transmission data which is intended for the particular interface user is processed. The transmitted data is either stored in
the internal RAM (single or double buffer) or
transferred via direct memory access (DMA).
The transmission of service channel information over several communication cycles is executed automatically.
In addition to the SERCOS interface the SERCON410B can also be used for other real-time
communications tasks. As an alternative to the fiberoptical ring also bus topologies with RS-485
signals are supported (Fig. 4). The SERCON410B
is therefore suitable for a wide range of applications.
5/30

SERCON410B
2 PIN DESCRIPTION
Table 1. SERCON410B I/O Port Function Summary
Signal (s)
Pin (s)
IO
Function
D15-0
77-80,
82-85,
87-90,
92-95
I/O
Data bus: for 8-bit-wide bus interfaces, data is written to and read via D7-0,
for 16-bit-wide bus interfaces via D15-0. When ADMUX is 1, the address
which is stored in the address latch with ALEL and ALEH is input via D15-0.
A15-0
56-59,
61-64,
66-69,
71-74
I/O
Address bus: when ADMUX is 0 the pins are inputs, when ADMUX is 1, they
are outputs for the address stored with ALEL (A7-0) and ALEH (A15-8). In
the 8-bit bus mode, A0 distinguishes which byte is transmitted via
D7-0 (depends on BYTEDIR). In the 16-bit bus mode, data is tansferred via
D7-0 only when A0 is 0. A10-1 selects the words of the internal RAM; A61the control registers.
ALEL, ALEH
54, 53
I
Address latch enable, low and high, active high: they are only used when
ADMUX is 1. When ALEL/ALEH is 1, the signals go from the data bus to
the address bus, when ALEL/ALEH = 0, they store the address. When
ADMUX is 0, ALEL/ALEH have to be connected to VDD .
RDN
51
I
Read: for the Intel bus interface, data is read when RDN is 0. For the
Motorola bus interface, data is read or written to when RDN is 0
(BUSMODE1 = 0) or RDN is 1 (BUSMODE1 = 1).
WRN
52
I
Write: for the Intel bus interface, data is written to when WRN is 0. For the
Motorola bus interface, WRN selects read (WRN = 1) and write (WRN = 0)
operations of the data bus.
BHEN
75
I
Byte high enable, active low: in the 16-bit bus mode, data is transferred via
D15-8 when BHEN is 0.
MCSN0,
MCSN1
46,47
I
Memory chip select, active low: to access the internal RAM MCSN0 and
MCSN1 must be 0.
PCSN0,
PCS1
48,49
I
Periphery chip select, active low (PCSN0) and active high (PCSN1): to
access the control registers PCSN0 must equal 0 and PCS1 must equal 1.
BUSYN
45
O
RAM busy, active low: becomes active if an access to an address of the
dual port RAM is performed simultaneously to an access to the same
memory location by the internal telegram processing.
DMAREQR
38
O
DMA request receive, active high: becomes active if data from the receive
FIFO can be read. At the beginning of the read operation of the last word of
the receive FIFO, DMAREQR becomes inactive.
DMAACKRN
40
I
DMA acknowledge receive, active low: when DMAACKRN is 0, the receive
FIFO is read, independent of the levels on A6-1 and the chip select signals.
DMAREQT
39
O
DMA request transmit, active high: becomes active when data can be
written to the transmit FIFO. DMAREQT becomes inactive again at the
beginning of the last write access to the transmit FIFO.
DMAREQTN
41
I
DMA acknowledge transmit, active low: when DMAACKTN is 0, the
transmit FIFO is written to when there is a bus write access independent of
the levels on A6-1 and the chip select signals.
ADMUX
96
I
Address data bus: when ADMUX is 0 A15-0 are the address inputs, when
ADMUX is 1 A15-0 are the outputs of the address latch.
BUSMODE0,
BUSMODE1
97,98
I
Bus mode: BUSMODE0 = 0 turns on the Intel bus interface (RDN = read,
WRN = write), BUSMODE0 = 1 selects the Motorola interface (RDN = data
strobe, WRN = read/write). BUSMODE1 selects the 0-active data strobe
(BUSMODE1 = 0) or the 1-active data strobe (BUSMODE1 = 1).
BUSWIDTH
99
I
Bus width: selects the 8-bit- (0) or the 16-bit-wide interface (1).
6/30

SERCON410B
PIN DESCRIPTION (Continued)
Table 1. SERCON410B I/O Port Function Summary (Continued)
Signal (s)
Pin (s)
IO
Function
BYTEDIR
100
I
Byte address sequence: when BYTEDIR is 0, A0 = 0 addresses the lower
8 bits of a word (low byte first), when BYTEDIR is 1, the upper 8 bits of a
word are addressed (high byte first).
INT0, INT1
44,43
O
Interrupts, active low or active high. Interrupt sources and signal polarity
are programmable.
Internal regeneration. When SREGEN is 0, clock and data regeneration
are turned off. RxC and TxC are clock inputs. When SREGEN is 1, clock
and data regeneration are turned on. RxC and TxC output the internally
generated clocks.
SREGEN
28
I
SBAUD
29
I
Baud rate. When regeneration is turned on, SBAUD selects the baud rate
(fSCLK/16 when SBAUD is 0, fSCLK/32 when SBAUD is 1). Can be
overwritten by the microprocessor.
I
Receive data for the serial interface.
RxD
14
12
I/O
Receive clock for the serial interface. When regeneration is turned off
(SREGEN = 0), clock input for the serial receiver and transmitter (only
when repeater is turned on); when regeneration is turned on (SREGEN = 1)
output of the internally generated receive clock. The maximum frequency
is 10 MHz.
26
O
Receive active, active low. Indicates that the serial receiver is receiving a
telegram.
16
22,21,2
0,
18,17
24
13
O
Transmit data. The pin can be switched to a high impedance state.
O
Transmit data or output port. The pins either output the serial data or can
be used as parallel output ports. When they output transmit data, each pin
can be switched to a high impedance state individually.
O
NRZ-coded transmit data.
I/O
Transmit clock for the serial interface. When regeneration is turned off
(SREGEN = 0) and the repeater is turned off, it is the clock input for the
serial transmitter; when regeneration is turned on (SREGEN = 1) it is the
output for the internally generated transmit clock. The maximum frequency
is 10 MHz.
O
Transmitter active, active low. When transmitting own data IDLE is 0.
I
Turn on test generator: TM0 = 0 switches TxD1-6 to continuous signal light,
TM1 = 0 switch-over to zero bit stream. The processor can overwrite the
level of TM1-0.
O
Line error, active low: goes low when signal distortion is too high or when
the receive signal is missing. The operating mode is programmed by the
processor.
RxC
RECACTN
TxD1
TxD6-2
TxDNRZ
TxC
IDLE
TM0, TM1
L_ERRN
25
30,31
32
CYC_CLK
34
I
SERCOS interface cycle clock: CYC_CLK synchronizes the
communication cycles. The polarity is programmable.
CON_CLK
35
O
Control clock: becomes active within a communication cycle. Time,
polarity and width are programmable.
DIV_CLK
36
O
Divided control clock: becomes active several times within a ommunication
cycle. Number of pulses, start time, repetition rate and polarity are
programmable, the pulse width is 1µs.
SCLK
2
I
Serial clock for clock regeneration: the frequency is 16 or 32 times the
baud rate, the maximum frequency is 64 MHz.
7/30

SERCON410B
PIN DESCRIPTION (Continued)
Table 1. SERCON410B I/O Port Function Summary (Continued)
Signal (s)
Pin (s)
IO
Function
SCLKO2
6
O
Clock output: outputs the SCLK clock divided by 2.
SCLKO4
5
O
Clock output: outputs the SCLK clock divided by 4.
MCLK
4
I
Master clock for telegram processing and timing control, frequency 12 to 20
MHz.
RSTN
10
I
Reset, active low. Must be zero for at least 50 ns after power on.
TEST
7
I
Test, active high. Has to be tied to VSS.
OUTZ
11
I
Puts outputs into high impedance state, active high: OUTZ is 1 puts all pins
into a high impedance state. The clocks are turned off and the circuit is
reset. For the in-circuit test and for turning on the powerdown mode.
NDTRO
9
O
NAND tree output. For the test at the semiconductor manufacturers and for
the connection test after board production. NDTRO is not set to a high
impedance state.
VSS
3,15,23,
33,42,
50,60,
70,81,
91
Ground pins.
VDD
1,8,19,
27,37,
55,65,
76,86
Power supply +5 V ± 5%.
8/30

SERCON410B
3 ELECTRICAL CHARACTERISTICS
3.1 ABSOLUTE MAXIMUM RATINGS
Symbol
VDD
Parameter
Supply Voltage
Value
Unit
-0.3 to 7.0
V
VI
Input Voltage
VSS - 0.3 to VDD + 0.3
V
VO
Output Voltage
VSS - 0.3 to VDD + 0.3
V
-55 to +150
°C
TSTG
Storage Temperature
3.2 RECOMMENDED OPERATING CONDITIONS
Symbol
Value
Parameter
Unit
Min.
Max.
TA
Operating Temperature
-40
85
°C
VDD
Operating Supply Voltage
4.75
5.25
V
fSCLK
Clock Frequency SCLK
64
MHz
fMCLK
Clock Frequency MCLK
20
MHz
Clock Frequency TxC, RxC
10
MHz
fTxC, fRxC
3.3 DC ELECTRICAL CHARACTERISTICS
(VDD = 5V ± 5% TA = -40°C to +85°C, unless otherwise specified)
Value
Symbol
Parameter
Test Conditions
Unit
Min.
VIL
VIH
Input Low Level Voltage
VT+
Max.
0.8
Input High Level Voltage
Schmitt trig. +ve threshold
VT-
Typ.
2.4
All pins except
D15-0, A15-0,
ALEL, ALEH,
RDN, WRN,
BHEN, MCSN0-1,
PCSN0, PCS1,
DMAACKTN,
DMAACKRN
Schmitt trig. +ve threshold
V
2.0
0.6
V
0.8
2.4
V
V
9/30

SERCON410B
DC ELECTRICAL CHARACTERISTICS (Continued)
Value
Symbol
IIL
IIH
Parameter
Low Level Input Current
(Pull-up resistor)
High Level Input Current
Test Conditions
Typ.
Max.
VI = VSS
-450
-50
-30
µA
VI = VDD
-10
<1
10
µA
0.4
V
Low level Output Voltage,
all O- and I/O-pins except TXD6-1
IOI = -4 mA
VOH
High level output voltage,
all O- and I/O-pins except TXD6-1
IOH = +4 mA
VOL
High level output voltage,
all O- and I/O-pins except TXD6-1
IOI = -8 mA
VOH
High level output voltage,
pins TXD6-1
IOH = +8 mA
IOZ
Tri-state output leakage
VO = 0 V or VDD
IKLU
I/O latch-up current
V<VSS V>VDD
VESD
Electrostatic protection
C=100 pF, R = 1.5 k
C PIN
Pin capacitance
VOL
Unit
Min.
2.4
V

V
+10
µA
VDD - 0.5
-10
<1
200mA
mA
2000
V
10
10/30
0.4
pF
SERCON410B
3.4 AC ELECTRICAL CHARACTERISTICS
Figure 5. Timing of Clock MCLK and Related Outputs
(Cload = 50 pF, VDD = 5 V ± 5% TA = -40 °C to +85 °C)
3.4.1 Clock Input MCLK
Symbol
Value
Parameter
Min.
Type
Unit
Max.
fMCLK
Clock Frequency MCLK
12
20
tMCLK0
MCLK Low
20
ns
tMCLK1
MCLK High
20
ns
tMCLD
Output Delay Rising Edge MCLK to
DMAREQR/T, CON_CLK, DIV_CLK
30
MHz
ns
Figure 6. Timing of Clock SCLK
3.4.2 Clock Input SCLK
Symbol
Value
Parameter
Min.
Type
Unit
Max.
fSCLK
Clock Frequency SCLK
64
MHz
tSCLK0
SCLK Low
6.5
ns
tSCLK1
SCLK High
6.5
ns
11/30

SERCON410B
AC ELECTRICAL CHARACTERISTICS (Continued)
Figure 7. Timing of Serial Clock Inputs RxC and TxC and Related Signals
3.4.3 Serial Clock
(SREGEN = 0, external clock regeneration, RxC and TxC are inputs)
Symbol
Value
Parameter
Min.
Type
Unit
Max.
fRTXC
Clock Frequency RxC, TxC
10
tRTXC0
RxC, TxC Low
40
ns
tRTXX1
RxC, TxC High
40
ns
tRTOUT
Output Delay RxC, TxC to TxD6-1,
TxDNRZ, IDLE, RECACTN
tRXDSU
Setup RxD to Falling Edge of RxC
45
15
MHz
ns
ns
Figure 8. Timing of Serial Clock Inputs RxC and TxC and Related Signals
3.4.4 Address Latch
Symbol
Value
Parameter
Min.
Type
Unit
Max.
tALEW
Pulse Width ALEL, ALEH
25
ns
tALESU
Setup Time D15-0 To Falling Edge ALEH,
ALEL
10
ns
tALEHD
Hold Time Falling Edge ALEH, ALEL to D15-0
5
ns
tDA
Delay from D15-0 to A15-0
20
12/30

ns
SERCON410B
AC ELECTRICAL CHARACTERISTICS (Continued)
Figure 9. Read Access of Control Registers
3.4.5 Read Access of Control Registers
Symbol
Value
Parameter
Min.
Type
Unit
Max.
tASU
Setup time A6-0, BHEN, PCSN0, PCS1,
DMAACKNR, WRN (only Motorola mode) to
falling edge RDN (Intel or Motorola mode
with low active strobe) or rising edge RDN
(Motorola mode with high active strobe)
0
ns
tAHD
Hold time A10-0, BHEN, MCSN0-1, WRN
(only Motorola mode) to rising edge RDN
(Intel Motorola mode with low active strobe)
or falling edge RDN (Motorola mode with high
active strobe)
0
ns
tPAD
Access time A6-0, BHEN, PCSN0, PCS1,
DMAACKNR, WRN (only Motorola mode) to
D15-0 valid
50
ns
tPRDD
Access time RDN to D15-0 valid
40
ns
tRDZ
Delay RDN to D15-0 high-Z
15
ns
tPRQ
Delay RDN to DMAREQR low
30
ns
13/30

SERCON410B
AC ELECTRICAL CHARACTERISTICS (Continued)
Figure 10. Read Access of Dual Port RAM
3.4.6 Read Access of Dual Port RAM
Symbol
Value
Parameter
Min.
Type
Unit
Max.
tASU
Setup time A10-0, BHEN, MCSN0-1, WRN
(only Motorola mode) to falling edge RDN
(Intel or Motorola mode with low active
strobe) or rising edge RDN (Motorola mode
with high active strobe)
0
ns
tAHD
Hold time A10-0, BHEN, MCSN0-1, WRN
(only Motorola mode) to rising edge RDN
(Intel Motorola mode with low active strobe)
or falling edge RDN (Motorola mode with high
active strobe)
0
ns
tMRDD
Access time RDN to D15-0 valid
60
ns
tMBSY
Delay RDN to BUSYN low
35
ns
tMBHD
Delay BUSYN high to D15-0 valid
30
ns
tRDZ
Delay RDN to D15-0 high-Z
15
ns
tRD1
RDN and WRN high after end of read access
14/30

30
ns
SERCON410B
AC ELECTRICAL CHARACTERISTICS (Continued)
Figure 11. Write Access to Control Registers
3.4.7 Write Access to Control Registers
Symbol
Value
Parameter
Min.
Type
Unit
Max.
tASU
Setup time A6-0, BHEN, PCSN0, PCS1,
DMAACKNT, WRN (only Motorola mode) to
falling edge WRN (Intel mode) or RDN
(Motorola mode, strobe active low) or rising
edge RDN (Motorola mode, strobe active
high)
0
ns
tAHD
Hold time A6-0, BHEN, PCSN0, PCS1,
DMAACKNT, WRN (only Motorola mode) to
rising edge WRN (Intel mode) or RDN
(Motorola mode, strobeactive low) or falling
edge RDN (Motorola mode, strobe active
high)
0
ns
Pulse width WRN (Intel mode) or RDN
(Motorola mode)
30
ns
tDSU
Setup time D15-0 to end of write access
10
ns
tDHD
Hold time D15-0 to end of write access
10
ns
tPRQ
Delay WRN or RDN to DMAREQT low
tPWRW
30
ns
15/30

SERCON410B
AC ELECTRICAL CHARACTERISTICS (Continued)
Figure 12. Write Access to DUAL Port RAM
3.4.8 Write Access to Dual Port RAM
Symbol
Value
Parameter
Min.
Type
Unit
Max.
tASU
Setup time A10-0, BHEN, MCSN0-1, WRN
(only Motorola mode) to falling edge of
WRN (Intel mode) or RDN (Motorola mode
with low active strobe) or rising edge RDN
(Motorola mode with high active strobe)
0
ns
tAHD
Hold time A10-0, BHEN, MCSN0-1, WRN
(only Motorola mode) to rising edge of WRN
(Intel mode) or RDN (Motorola mode with low
active strobe) or rising edge RDN (Motorola
mode with high active strobe)
0
ns
Pulse width WRN or RDN
30
ns
tDSU
Setup time D15-0 to end of write access
10
ns
tDHD
Hold time D15-0 after end of write access
10
ns
tMBSY
Delay WRN or RDN (begin of write access)
to BUSYN low
tMWRW
35
ns
tMBHWH
Setup time BUSYN high to end of write
access
30
ns
tWR1
WRN and RDN high after end of write
access
40
ns
16/30

SERCON410B
4 CONTROL REGISTERS AND RAM DATA
STRUCTURES
4.1 CONTROL REGISTER ADDRESSES
The following table is an overview of the control
registers. The address is the word address which
is input by A6-1. To calculate the byte address, the
value has to be multiplied by two. The reset values of the control registers are shown in bold.
A6-1
Bit
0H
0-15
Name
VERSION
All control registers can be written to and read
(R/W), with the exception of the control bits that
initiate an action (W). The status registers can
only be read (R). When control registers which
contain bits that are not used or can only be read,
are written to, these bits can be set to 0 or 1; they
are not evaluated internally. If control registers
are read with bits that are not used, these bits are
set to 0.
R/W
Value
Function
R
2
Circuit code (0002H)
0
RSTFL
R/W
0
1
Reset has not taken place
Reset has taken place
1
SWRST
W
0
1
Do not reset
Reset by software
2
(Not used)
3
REPON
4
SREGEN
5
REGMODE
6
R/W
0
1
R
Repeater turned off
Repeater turned on
Level at SREGEN pin
0
1
Sampling at the middle of bit
Sampling according to SERCOS interface
specification
R/W
0
1
Baud rate = fSCLK / 16
Baud rate = fSCLK / 32
R/W
1H
7
POLRXD
R/W
0
1
“Light on” when RxD = 0
“Light on” when RxD = 1
8
PRESYNC
R/W
0
1
No pre-frame sync word
Pre-frame sync word
9
POLTXD
R/W
0
1
“Light on” when TxD = 0
“Light on” when TxD = 1
10
ENTSBAUD
R/W
0
1
Baud rate selected by SWSBAUD pin
Baud rate selected by SWSBAUD control bit
11
SBAUD
12
RXDNRZ
R/W
13
WRSYNC
R/W
14
DMAMODE
R/W
R
15
Level at pin SBAUD
0
1
Receive data is NRZI-coded
Receive data is NRZI-coded
Direct RAM write access
RAM write access internally synchronized
0
1
DMAREQR/DMAREQT are static signals
DMAREQR/DMAREQT are pulses
(Not used)
17/30

SERCON410B
CONTROL REGISTER ADDRESSES (Continued)
A6-1
Bit
Value
Function
ENTXD1-6
R/W
0
1
Pin TxDn has a high impedance
Pin TxDn is outputting transmit data
6
TXDMODE
R/W
0
1
TXDMODE
TxD2-6 is outputting ENTXD2-6
R/W
0-3
4,6
5
7
TMODE0-2
Test functions are controlled via TM0-1 pins
Continuous signal light
Zero bit stream
Normal operation
10-11
TM0-1
R
0
Level at TM0-1
12
RDIST
R
0
1
Receive data normal
Receive data over distortion limit
13
FIBBR
R
0
1
Filler signal or data is received
No edges on receive data
R/W
0
1
2
3
L_ERRN
L_ERRN
L_ERRN
L_ERRN
14-15
3H
R/W
0-5
7-9
2H
Name
LMODE0-1
active by FIBBR and RDIST
active by RDIST
active by FIBBR
is inactive
0
INTFL0
R
0
1
Interrupt INT0 not active
Interrupt INT0 active
1
ENINT0
R/W
0
1
Interrupt INT0 disabled
Interrupt INT0 disabled
2
POLINT0
R/W
0
1
Interrupt INT0 1-active
Interrupt INT0 0-active
3
INTFL1
R
0
1
Interrupt INT1 not active
Interrupt INT1 active
4
ENINT1
R/W
0
1
Interrupt INT1 disabled
Interrupt INT1 enabled
5
POLINT1
R/W
0
1
Interrupt INT1 1-active
Interrupt INT1 0-active
6
COMACT
R
0
1
No transmission block is processed
Transmission block is processed
7
COMBLK
R
0
1
Transmission block 0 is processed
Transmission block 1 is processed
8
ENTMT
R/W
0
1
Do not send data telegrams
Send data telegrams
9
FLTMT
R
0
1
Data telegram is not sent
Data telegram is sent
10
FLRWAIT
R
0
1
Data telegram is not expected
Data telegram is expected
11
FLREC
R
0
1
Data telegram is not received
Data telegram is received
18/30

SERCON410B
CONTROL REGISTER ADDRESSES (Continued)
A6-1
3H
4H
5H
Bit
Name
R/W
Value
Function
12
DMAREQT
R
0
1
DMA request of transmit FIFO inactive
DMA request of transmit FIFO active
13
DMAREQR
R
0
1
DMA request of receive FIFO inactive
DMA request of receive FIFO active
14
IDLE
R
Level at IDLE pin
15
RECACTN
R
Level at RECACTN pin
INT_n
R
0
1
Interrupt event has not occurred
Interrupt flag active, interrupt event has occurred
CLR_INT_n
W
0
1
Do not modify interrupt flag
Clear interrupt flag
0
INT_RDIST
R/W
Interrupt receive data distorted
1
INT_FIBBR
R/W
Interrupt no receive data
2
INT_COMBLK0
R/W
Interrupt start transmission block 0
3
INT_COMBLK1
R/W
Interrupt start transmission block 1
4
INT_COMEND
R/W
Interrupt end of transmission block
5
INT_PHAS0
R/W
Interrupt phase MST = 0.
6
INT_PHASERR
R/W
Interrupt phase MST errored
7
INT_MSTEARLY
R/W
Interrupt communication cycle start too early
8
INT_MSTLATE
R/W
Interrupt communication cycle start too late
9
INT_MSTMISS
R/W
Interrupt MST missing twice
10
INT_TSTART
R/W
Interrupt start of transmit telegram
11
INT_TEND
R/W
Interrupt end of transmit telegram
12
INT_RWAIT
R/W
Interrupt start waiting for receive telegram
13
INT_RSTART
R/W
Interrupt start of receive telegram
14
INT_REND
R/W
Interrupt end of receive telegram
15
INT_RERR
R/W
Interrupt error of receive telegram
0-7
INT_SC_0-7
R/W
Interrupt service container
8
INT_RMISS
R/W
Interrupt receive telegram missing twice
9-12
INT_TIME0-3
R/W
Interrupt time TINT0-3
13
INT_DIVCLK
R/W
Interrupt DIVCLK signal
14
INT_PROGERR
R/W
Interrupt programming error
15
INT_NEWADR
R/W
Interrupt address change
19/30

SERCON410B
CONTROL REGISTER ADDRESSES (Continued)
A6-1
Bit
6H
0-15
7H
Name
R/W
Value
Function
EN0_INT_n
R/W
0
1
Interrupt flag does not activate INT0
Interrupt flag activates INT0
Bit assignment same as for address 4H
0-15
EN0_INT_n
R/W
0
1
Interrupt flag does not activate INT0
Interrupt flag activates INT0
Bit assignment same as for address 5H
8H
0-15
EN1_INT_n
R/W
0
1
Interrupt flag does not activate INT1
Interrupt flag activates INT1
Bit assignment same as for address 4H
9H
0-15
EN1_INT_n
R/W
0
1
Interrupt flag does not activate INT1
Interrupt flag activates INT1
Bit assignment same as for address 5H
0-7
PHAS0
R/W
Phase for MST transmit (master) or MST
receive (slave) (reset value = 0FFH)
8-15
PHAS1
R/W
Phase for MST receive (slave)
(reset value = 0FFH)
0-7
PHASREC
R
Phase information of received MST
8-15
RECADR
R
Address of receive telegram
OAH
OBH
0
MSTEN
R/W
0
1
MST is not transmitted or received
MST is transmitted or received (SERCOS
interface mode)
1
MSTMASTER
R/W
0
1
Receive MST (SERCOS interface slave)
Transmit and receive MST (SERCOS
interface master)
0
When phase = PHAS0 transmission block 0
is processed
When phase = PHAS0 transmission block 1
is processed
2
COMBLK0
R/W
1
0
0CH
3
COMBLK1
R/W
4
CON_CLK
R
5
ENCONCLK
R/W
6
POLCONCLK
R/W
7
CYC_CLK
8
ENCYCCLK
1
Level at CON_CLK pin
0
1
CON_CLK pin doesn’t become active
CON_CLK pin becomes active from TINT0 to
TINT1
0
1
Signal at CON_CLK is 1-active
Signal at CON_CLK is 0-active
R
R/W
20/30

When phase = PHAS1 transmission block 0
is processed
When phase = PHAS1 transmission block 1
is processed
Level at CYC_CLK pin
0
1
CYC_CLK pin does not trigger timing control
CYC_CLK pin triggers timing control after
TCYCSTART
SERCON410B
CONTROL REGISTER ADDRESSES (Continued)
A6-1
Bit
Name
R/W
9
POLCYCCLK
R/W
10
CYCSTART
W
11
RDTCNT
W
Value
0
OCH
0EH
Timing control triggered by rising edge of
CYC_CLK
Timing control triggered by falling edge of
CYC_CLK
0
1
No function
Trigger timing control after TCYCSTART
(master)
0
1
Do not read TCNT
Load TCNT to TCNTRD
NCYC
R/W
Number of communcation cycles triggered by
CYC_CLK or CYCSTART
0-7
HS_TIMEOUT
R/W
Handshake timeout for service channel
8-15
BUSY_TIMEOUT
R/W
BUSY timeout for service channel
0-4
MCLKDIV
R/W
Predivider value: fMCLK/1 MHz - 1
(reset value = 19)
12-15
0DH
1
Function
5-7
8-12
(Not used)
MCLKST
R/W
13-15
Initial value for predivider
(Not used)
0FH
0-15
TSCYC0
R/W
SERCOS interface cycle time in •s for
transmission block 0
10H
0-15
TSCYC1
R/W
SERCOS interface cycle time in •s für
transmission block 1
11H
0-15
TCYCDEL
R
Time at which MST is received, ring delay
(master)
12H
0-15
TCNTLT
R
Stored value of TCNT time counter
13H
0-15
TCNTST
R/W
Initial value for TCNT time counter
14H
0-15
TCYCSTART
R/W
Delay in triggering timing control
15H
0-15
JTSCYC1
R/W
Receive time window for MST 1
16H
0-15
JTSCYC2
R/W
Receive time window for MST 2
17H
0-15
PROGERR_FL
R
Error flags
CLR_PROGERR_FL
W
Clear error flags
18H
0-15
JTRDEL1
R/W
Receive time window for data telegram 1
19H
0-15
JTRDEL2
R/W
Receive time window for data telegram 2
1AH
0-15
TINT0
R/W
Time at which time interrupt 0 and first edge
of CON_CLK occur
1BH
0-15
TINT1
R/W
Time at which time interrupt 1 and second
edge of CON_CLK occur
21/30

SERCON410B
CONTROL REGISTER ADDRESSES (Continued)
A6-1
Bit
1CH
0-15
TINT2
R/W
Time at which time interrupt 2 occurs
1DH
0-15
TINT3
R/W
Time at which time interrupt 3 occurs
1EH
0-15
TDIVCLK
R/W
Time at which the first pulse of DIV_CLK
occurs
1FH
0-15
DTDIVCLK
R/W
DIV_CLK pulse distance
0-7
NDIVCLK
R/W
Number of DIV_CLK pulses within one
communication cycle (reset value =0)
POLDIVCLK
R/W
20H
8
Name
R/W
Value
0
1
9-15
21H
0-9
THTPT
Internal RAM address of telegram header of
transmitted telegram
R
(Not used)
0-15
THT
R
Control word 0 of telegram header of
transmitted telegram
0-9
THWPT
R
Internal RAM address of telegram header of
a telegram which is expected
23H
10-15
24H
25H
(Not used)
0-15
THW
R
Control word 0 of telegram header of
telegram which is expected
0-9
THRPT
R
Internal RAM address of telegram header of
received telegram
10
MSTTCHK
R/W
11
PHAS12
R/W
12
FLMDTADR
R/W
13-15
26H
27H
Pulses from DIV_CLK are 1-active
Pulses from DIV_CLK are 0-active
(Not used)
10-15
22H
Function
0
1
MST receive time is not checked
MST receive time is checked
0
1
Normal operation
Operating mode for SERCOS interface
phase 1 and 2
0
Address of receive telegram different
from expected value
Address of receive telegram equal to
expected value
1
(Not used)
0-15
THR
R
Control word 0 of telegram header of
received telegram
0-15
RFIFO
R
Receive FIFO
0-15
TFIFO
W
Transmit FIFO
22/30

SERCON410B
4.2 DATA STRUCTURES WITHIN THE RAM
In this RAM the first eleven words have a fixed meaning.
A10-1
Contents
0-1
COMPT0-1: Start of transmission blocks 0-1
2-9
SCPT0-7: Address service containers 0-7
10
NMSTERR: Error counter MST
The rest of the RAM can be divided into data structures as required.
4.2.1 Telegram Headers
A telegram header for receive telegram contains thefollowing five control words:
INDEX
Bit
Name
Function
0-7
ADR
Telegram address
8
DMA
Data storage in the internal RAM (DMA = 0) or DMA transfer
(DMA = 1)
9
DBUF
Data in the RAM: single buffer (DBUF = 0) or double buffer (DBUF
= 1)
10
VAL
For single buffering (DMA = 0, DBUF = 0) or DMA transfer (DMA = 1):
telegram data is invalid (VAL = 0) or valid (VAL = 1); for double
buffering (DMA = 0, DBUF = 1): data in buffer 0 (VAL = 0) or buffer
1 (VAL = 1) is valid. Modified by controller at beginning and end of
receive telegrams.
11
ACHK
Telegrams are received if the address is valid (ACHK = 1) or
independent on the received address (ACHK = 0). The received
address is stored at ADR.
12
TCHK
The time of receiving is checked (TCHK = 1) or not checked
(TCHK = 0).
13
RERR
The last telegram was free of error (RERR = 0) or errored or not
received (RERR = 1).
14
0
Marker bit for telegram header of receive telegram.
15
0
Marker bit for telegram header.
0
1
0-15
TRT
Time for the start of telegram in µs after end of MST.
2
0-15
TLEN
Length of telegram in data words (not including address).
0-9
PT
Word address within the RAM of the next telegram header or the
end marker.
3
10-15
4
0-15
(Not used)
NERR
Error counter
23/30

SERCON410B
DATA STRUCTURES WITHIN THE RAM (Continued)
A telegram header for transmit telegram comprises four control words:
Index
Bit
Name
Function
0-7
ADR
Telegram address
8
DMA
Data storage in the RAM (DMA = 0) or DMA transfer (DMA = 1).
9
DBUF
Data in RAM: single buffer (DBUF = 0) or double buffer (DBUF = 1).
10
VAL
For double buffering (DMA = 0, DBUF = 1): data in buffer 0 (VAL = 0)
or buffer 1 (VAL = 1) are valid. Set by processor.
EN
Data telegram is not to be transmitted (EN = 0), transmitted once
(EN = 1), continuously (EN = 2) or transmitted only if the previously
received telegram contains the expected address (EN = 3) (PHAS12
=1 and FLMDTADR = 1). If EN is 1 the circuit sets EN to 0 after
the transmit telegram has been started.
0
11-12
13
(Not used)
14
1
Marker bit for telegram header of transmit telegram.
15
0
Marker bit for telegram header.
1
0-15
TRT
Time for the start of telegram in •s after the end of MST.
2
0-15
TLEN
Length of the telegram in data words (not including address).
0-9
PT
Word address of the next telegram header or the end marker.
3
10-15
(Not used)
24/30

SERCON410B
DATA STRUCTURES WITHIN THE RAM (Continued)
4.2.2 Data Containers
A data container comprises one or two 16-bit control words as well as a variable number of data
words. If the data is stored in the internal RAM
(DMA = 0) and a single buffer is used (DBUF = 0),
the data container has one buffer. Using RAM
Index
0
1
Bit
Name
storage and double buffering (DBUF = 1), two data
buffers are needed. In case of DMA transfer (DMA
= 1) the data container only comprises the control
words (Fig. 13). The structure of the two control
words depends on whether a telegram is transmitted or received:
Function
0-9
LEN
Number of 16-bit data words of the data block.
10
SVFL
Flag, whether data block uses service container (SVFL = 1).
11-13
NSV
Number of service container, which is used (0 - 7).
14
SCMASTER
Processing of service container in slave mode (SCMASTER = 0)
or master mode (SCMASTER = 1).
15
LASTDC
Last data container of the telegram (1) or further data containers
follow (0).
POS
Position of the data block within the telegram in number of words.
The first data record of a telegram has POS = 0 (only in case of
receive telegrams).
0-15
Figure 13. Structure of Data Containers
25/30

SERCON410B
DATA STRUCTURES WITHIN THE RAM (Continued)
4.2.3 End Marker
The end marker comprises two 16-bit words:
Index
Bit
Name
0-13
0
1
Function
(Not used)
14
1
Marker bit for the end marker.
15
1
Marker bit for the end marker.
TEND
Time after end of MST at which the last telegram has ended (in µs).
0-15
4.2.4 Service Containers
A service container contains 5 control words and a buffer (BUFLEN words, max. length 255) (Fig. 14)
Figure 14. Structure of Service Container
26/30

SERCON410B
DATA STRUCTURES WITHIN THE RAM (Continued)
For master mode (SCMASTER = 1) the control words are coded as follows:
Index
Bit
HS_MDT
Handshake-bit in MDT
1
L/S_MDT
Read/write in MDT
2
END_MDT
End in MDT
ELEM_MDT
Data element type in MDT
6
SETEND
END_MDT is to be set
7
M_BUSY
Service container waits for interaction of
microprocessor (M_BUSY = 1)
NINFO_WRITE
Number of info words in write buffer (1 to 4)
8-9
10-11
(Not used)
12
INT_ERR
Slave reports error
13
INT_END_WRBUF
End of write buffer is reached
14
INT_END_RDBUF
End of read buffer is reached
15
1
(Not used)
0
HS_AT
Handshake bit in AT
1
BUSY_AT
Busy bit in AT
2
ERR_AT
Error bit in AT
3
CMD_AT
Command modification bit in AT
4-6
7
8-9
(Not used)
RECERR
Last transmission was correct (0) or errorneous (1)
NINFO_READ
Number of info words in read buffer (1 to 4)
10-15
2
3
4
Function
0
3-5
0
Name
(Not used)
0-7
WRDATPT
Pointer to present position in write buffer
8-15
WRDATLAST
Pointer to last position in write buffer
0-7
RDDATPT
Pointer to present position in read buffer
8-15
RDDATLAST
Pointer to last position in read buffer
0-7
ERR_CNT
Error counter
8
BUSY_CNT
Error counts differences of handshake (0) or BUSY cycles (1)
9
INT_SC_ERR
Interrupt due to protocol error
10
INT_HS_TIMEOUT
Interrupt due to handshake timeout
11
INT_BUSY_TIMEOUT
Interrupt BUSY timeout
12
INT_CMD
Slave has set command modification bit
13-15
(Not used)
27/30

SERCON410B
DATA STRUCTURES WITHIN THE RAM (Continued)
The coding of the five control words depends on the mode of the service channel. Using the slave mode
(SCMASTER = 0) they have the following structure:
Index
Bit
HS_AT
Handshake bit in AT
1
BUSY_AT
Busy bit in AT, also waiting for microprocessor interaction
2
ERR_AT
Error bit in AT
3
Error bit in AT
Command modification bit in AT
ELEM
Data element of present transmission
L/S
Read (0)/write (1) of present transmission
NINFO_WRITE
Number of info words in write buffer (1 to 4)
7
8-9
10-11
1
(Not used)
12
INT_ELEM_CHANGE
Master has modified data element or read/write
13
INT_END_WRBUF
End of write buffer is reached
14
INT_END_RDBUF
End of read buffer is reached
15
INT_END_MDT
Master reports end via END_MDT-bit
0
HS_MDT
Handshake bit in MDT
1
L/S_MDT
Read/write in MDT
2
END_MDT
End bit in MDT
ELEM_MDT
Data element in MDT
3-5
6
7
8-9
(Not used)
RECERR
Last transmission was correct (0) or errorneous (1)
NINFO_READ
Number of info words in read buffer (1 to 4)
10-15
2
3
(Not used)
0-7
WRDATPT
Pointer to present position in write buffer
8-15
WRDATLAST
Pointer to last position in write buffer
0-7
RDDATPT
Pointer to present position in read buffer
8-15
RDDATLAST
Pointer to last position in read buffer
0-8
4
Function
0
4-6
0
Name
9
(Not used)
INT_SC_ERR
10-15
Interrupt due to protocol error
(Not used)
28/30

SERCON410B
5 PACKAGE MECHANICAL DATA
Figure 15. SERCON410B 100 Pin Plastic Quad Flat Pack Package
Dim.
mm
Min
Typ
A
A2
inches
Max
Min
Typ
3.40
2.55 2.80
Max
0.134
3.05 0.100 0.110 0.120
D
23.65 23.90 24.15 0.931 0.941 0.951
D1
19.90 20.00 20.10 0.783 0.787 0.791
D3
18.85
0.742
E
17.65 17.90 18.15 0.695 0.705 0.715
E1
13.90 14.00 14.10 0.547 0.551 0.555
E3
12.35
e
0.65
0.486
0.026
Number of Pins
6 ADDITIONAL SUPPORT AND TOOLS
6.1 SERCOS INTERFACE SPECIFICATION
The SERCOS interface specification is available
at:
Fördergemeinschaft SERCOS interface e.V.
Herseler Str. 31
D-50389 Wesseling
Tel. xx49-2236-1517
Fax. xx49-2236-1542
6.2 SOFTWARE AND BOARDS FOR THE
SERCON410B
Driver software SERCDRV
Master and slave routines for the SERCON410B
Written in ANSI-C
Independent from operating system and processor
Contains:
- initialization
- start-up of SERCOS interface (phases 0 - 4)
- service channel transmission
Easy portable to many microprocessors and hardware platforms
ND
30
NE
20
N
100
PC-AT board SERCEB
16-bit ISA bus
Receiver and transmitter for fibre optics (SERCOS
interface standard)
SERCON410B and additional timerchip 82C54
Additional RS-485-signals for serial connection
and synchronization
Wire wrap area for extension
Add-on board SERCINT
Multiplexed 16-bit address/data-bus
Receiver and transmitter for fibre optics (SERCOS
interface standard)
SERCON410B
Additional RS-485-signals for serial connection
These software and boards are available at:
IAM GmbH
Vertrieb Systemtechnik
Richard-Wagner-Str. 1
D-38106 Braunschweig
Tel. xx49-531-3802-0
Fax. xx49-531-3802-110
29/30

SERCON410B
NOTES:
Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsability for the
consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No
license is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifications mentioned
in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied.
SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without the
express written approval of SGS-THOMSON Microelectronics.
 1994 SGS-THOMSON Microelectronics - All rights reserved.
Purchase of I 2C Components by SGS-THOMSON Microelectronics conveys a license under the Philips I 2C Patent.
Rights to use these components in an I2C system is granted provided that the system conforms to the I 2C Standard
Specification as defined by Philips.
SGS-THOMSON Microelectronics Group of Companies
Australia - Brazil - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta - Morocco
The Netherlands - Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A.
30/30
