ETC TC5299J

TC5299J
TC5299J
FAST ETHERNET PCMCIA
LAN CONTROLLER
4FL No. 106 Hsin-Tai Wu Road,
Sec. 1, Hsichih,
Taipei Hsien, Taiwan R.O.C.
TEL: 886-2-2696-1669
FAX: 886-2-2696-2220
http:\\www.tmi.com.tw
-1-
Ver. 0.1
07/04/01
TC5299J
TABLE OF CONTENTS
1
Introduction .................................................................................................................................3
1.1 General Description.............................................................................................................................................3
1.2 Features ...............................................................................................................................................................3
2
3
Block Diagram .............................................................................................................................3
Pin Description.............................................................................................................................4
3.1 Pin Out Diagram .................................................................................................................................................4
3.2 Signal Description ...............................................................................................................................................5
3.3 Power On Configuration .....................................................................................................................................8
4
I/O and Mapping .......................................................................................................................10
4.1 I/O Port Address Mapping ................................................................................................................................10
4.2 EEPROM/SRAM Memory Mapping ................................................................................................................10
4.3 Attribute Memory Mapping ..............................................................................................................................11
4.3.1
Attribute Memory Map ......................................................................................................................11
5
Configuration Registers ............................................................................................................13
5.1
5.2
5.3
5.4
5.5
5.6
5.7
Configuration Register A ..................................................................................................................................13
Configuration Register B ..................................................................................................................................13
Configuration Register C ..................................................................................................................................14
Hardware Configuration....................................................................................................................................14
MII/PHY Control Register ................................................................................................................................15
TC5299J Core Registers Assignment................................................................................................................15
Register Descriptions ........................................................................................................................................18
5.7.1
Command Register (CR) 00H (Read/Write) ......................................................................................18
5.7.2
Data Configure register (DCR) 0EH(Write) ....................................................................................19
5.7.3
Transmit configuration Register (TCR) 0DH(Write) ........................................................................19
5.7.4
Transmit Status Register (TSR) 04H(Read).....................................................................................20
5.7.5
Receive Configuration Register (RCR) 0CH(Write)........................................................................21
5.7.6
Receive Status Register (RSR) 0CH(Read)......................................................................................21
5.7.7
Interrupt Mask Register (IMR) 0FH(Write) ....................................................................................22
5.7.8
Interrupt Status Register (ISR) 07H(Read/Write)............................................................................23
5.8 Network Tally Counter Registers (CNTR)........................................................................................................23
5.9 Number of Collisions Register (NCR) ..............................................................................................................24
5.10 Physical Address Register (PAR0-PAR5).........................................................................................................24
5.11 Multicast Address Registers (MAR0-MAR7)...................................................................................................24
5.12 DMA Registers..................................................................................................................................................25
5.13 LOCAL DMA RECEIVE REGISTERS ...........................................................................................................25
5.14 REMOTE DMA REGISTERS..........................................................................................................................25
5.15 (i) Local DMA Transmit Registers ...................................................................................................................25
5.16 (ii) Local DMA Receive Registers ....................................................................................................................26
5.17 (iii) Remote DMA registers...............................................................................................................................26
6 Electrical Specification and Timing.........................................................................................28
7 Physical Dimension....................................................................................................................31
Notice .................................................................................................................................................32
-2-
Ver. 0.1
07/04/01
TC5299J
Fast Ethernet PCMCIA Controller
1 Introduction
1.1
General Description
The TC5299J is a 10/100 PCMCIA Ethernet controller, include a standard MII interface. It provides an 8/16-bit
PCMCIA interface to host CPU and buffer memory into single chip to minimize the chip gate count.
The TC5299J supports both half-duplex and full-duplex (both 10BT or 100BTX) operation environment.
1.2
Features
!"PCMCIA 2.01 bus interface.
!"Use serial EEPROM 93C56/66 to store CIS.
!"Internal 5V to 3.3V regulator.
Ethernet LAN features:
!"Integrated Fast Ethernet MAC and SRAM in one chip.
!"Supports both 10Mbps and 100Mbps operation.
!"IEEE 802.3/802.3u compatible.
!"Full-duplex or half-duplex operation supported for both 10Mbps and 100Mbps operation.
!"NE2000 register definitions.
!"Supports 3.3V or 5V signaling environment.
!"The size of built-in Buffer RAM is 8k x 16 bits. It does not need the extra SRAM in the application circuit.
!"Supports loop-back mode for self-testing.
!"Supports 256/512 bytes EEPROM interface.
!"LED interface supported.
!"Supports MII bus interface.
!"Flow control ability
2 Block Diagram
E EP R O M
E EP R O M
C ontrol C ircuit
P C M C IA
Interface
P C M C IA
C ommand
D ecoder
D M A B u ffer
C ontrol Logic
SRAM
F IFO s
MAC
PHY
TW R
R J45
F IFO
C ontroller
-3-
Ver. 0.1
07/04/01
TC5299J
3 Pin Description
3.1
Pin Out Diagram
V V
C C
C C
5 A N
A R C
N
C
G
N
D
A
R
G
N G G
D N N
A D D
1 A D N
0 P P C
V
C V V
C C C
A C C
1 A D
0 P P
V
G
C
N
C
D
3
3
N N N I N I
C C C O C O
G
N
D
3 N N
D C C
G
N M
D D
3 I
D O
V
G
L C
N
E E C L L D
E D 3 E E 3
C L I D D I X
S A O S F O 2
X
1
G
N
D
3
I
O
96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65
NC
97
64
VCC3D
NC
98
63
VCC5A
GNDAT
99
62
VCC5R
VCCAT
100
61
VCC5A
VCC5A
101
60
VCC3IO
VCC5R
102
59
MDC
NC
103
58
RXD3
VCC3IO
104
57
RXD2
RSTN
105
56
GND3IO
GND3IO
106
55
RXD1
JMP0
107
54
RXD0
GND3D
108
53
X25M
GND3IO
109
52
RXDV
JMP1
110
51
RXC
NC
111
50
RXER
VCC3D
112
49
GND3IO
VCC3IO
113
48
TXC
SD15
114
47
TXEN
SD14
115
46
TXD0
SD13
116
45
TXD1
SD12
117
44
GND3IO
GND3IO
118
43
TXD2
SD11
119
42
TXD3
SD10
120
41
GND3D
VCC3D
121
40
COL
SD9
122
39
CRS
SD8
123
38
VCC3IO
VCC3IO
124
37
EXLEDF
INT
125
36
EXLEDL
IOR
126
35
CE1
OE
127
34
WE
GND3IO
128
33
NC
TC5299J
128pin LQFP
1
2
3
4
5
V I S
C O A
C W 9
3
I
O
S
A
8
S
A
7
6
7
8
G S
N A
D 6
3
D
S
A
5
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
S
A
4
S
A
3
S
A
2
S
A
1
G S
N A
D 0
3
I
O
N R W I R
C S A N E
T I P G
T A
C
K
-4-
G I S S S V S S V S S
N O D D D C D D C D D
D I 0 1 2 C 3 4 C 5 6
3
3
3 S
D
I
I 1
O
O 6
S G
D N
7 D
3
I
O
Ver. 0.1
07/04/01
TC5299J
3.2
Signal Description
PCMCIA Bus Interface Pins
Symbol
Pin #
I/O
SA[9:0]
3-5
7-12,
14
114-117,
119-120,
122-123,
31-29,
27-26,
24-22
16
I
The address signal lines of PCMCIA Bus are used to select a
register to be read or written and attribute memory enabled.
I/O
Register Access, with DMA inactive, SD0-SD7 are used to
read/write register data. SD8-SD15 invalid during this state.
Remote DMA Bus Cycle, SD0-SD15 contain packet data.
Direction of transfer depends on Remote read/write.
I/O
RSTZ
105
O
RST is active high and places the TC5299J in a reset mode
immediately. During falling edge the TC5299J controller loads
the configuration from JMP0 – JMP8.
RSTZ is an active low signal. It is an inverted signal of RST.
WAIT*
17
O
REG*
19
I
IOR*
126
I
IOW*
2
I
OE*
127
I
WE*
34
I
INPACK*
18
O
IO16*
21
O
INT*
(RDY/BSY*)
125
O
CE1*
35
I
SD[15:8]
SD[7:0]
RST
Description
This pin is set low to insert wait states during Remote DMA
transfer.
REG is an active low input used to determine whether a host
access is to Attribute memory or to common memory. If REG is
low the access is to attribute memory, if REG* is high the access
is to common memory. REG* is also asserted low for all accesses
to the TC5299J IO Registers.
Read Strobe: Strobe from host to read registers or Remote DMA
read.
Write Strobe: Strobe from host to read registers or Remote DMA
write.
Host memory read strobe, when OE* and REG* both low the
attribute memory can be read. When OE* is low and REG* is
high common memory can be read.
Host memory write strobe, After Power reset if TC5299J is
configured to memory write enable, then WE and REG* is both
low, Attribute memory can be written. When WE is low and
REG* is high common memory can be written.
An active low signal. Asserted if the host access register or
Remote DMA read cycle.
IO16* is driven by TC5299J to support host 16 bits access cycle.
While the TC5299J is configured as a memory device, this pin
servers as RDY/BSY* pin, If the TC5299J is ready to perform a
transfer, this pin is set high. When TC5299J is operated at I/O
mode, this pin is used as an interrupt pin. It indicates that the
TC5299J needs host service. RDY/BSY* state can be read from
the pin Replacement Register (CCR2). While LAN and MODEM
both functions are enabled and IntSel bit in control Register
(CCR5) is zero. This pin output is logical OR of LAN and
MODEM interrupt.
Card enable 1, is active low signals driven by the host. This
signal provides a card select based on the address decode (decode
by the host).
-5-
Ver. 0.1
07/04/01
TC5299J
EEPROM/LED Interface Pins
Symbol
Pin #
I/O
Description
EECS
73
O
EEPROM chip select. It is asserted when to access EEPROM.
EESK/LEDLA
72
O
DO/LEDS
70
I/O
DI/LEDF
69
O
Link (on/off) & Receive data (Blink) LED pin. It is also used as a
serial clock for EEPROM data loading.
Speed (100M:ON/10M:OFF) & transmit data (Blink) LED pin. It
is also used as a signal for EEPROM data loading.
Full-duplex (ON/OFF, Full/Half-duplex) & Collision (Blink)
LED pin. It is a data output pin for EEPROM writing.
External PHY / MII Interface Pins
Symbol
Pin #
I/O
TXD[3:0]
42-43,
45-46
O
TXEN
47
I/O
TXC
48
I
58-57,
55-54
I
RXC
51
I
RXDV
52
I
RXER
50
I
COL
40
I
CRS
39
I
MDC
59
O
MDIO
74
I/O
EXLEDL
36
I
Data valid is asserted by an external PHY when receive data is
present on the RXD[3:0] lines and is deasserted at the end of the
packet. This signal should be synchronized with the RXC signal.
Data valid is asserted by an external PHY when receive data is
present on the RXD[3:0] lines and is deasserted at the end of the
packet. This signal should be synchronized with the RXC signal.
This pin functions as the collision detect. When the external
physical layer protocol (PHY) device detects a collision, it asserts
this pin.
In MII mode this pin functions as the carrier sense and is asserted
by the PHY when the media is active.
MII management data clock is sourced by the TC5299J to the
external PHY devices as a timing reference for the transfer of
information on the MDIO signal.
MII management data input/output transfers control information
and status between the external PHY and the TC5299J.
Low active; presents the external PHY link status.
EXLEDF
37
I
Present the half/full duplex mode for external PHY.
Pin #
I/O
RXD[3:0]
Description
Four parallel transmit data lines. This data is synchronized to the
assertion of the TXC signal and is latched by the external PHY
on the rising edge of the TXC signal.
This pin function as transmit enable. It indicates that a
transmission is active on the MII port to an external PHY device.
Pull down this pin on power-on reset to select 50MHz-clock
input from pin X1. Otherwise, use 25MHz-clock input.
Supports the transmit clock supplied by the external PMD device.
This clock should always be active.
Four parallel receive data lines. This data is driven by an external
PHY that attached the media and should be synchronized with
the RXC signal.
Supports receive clock from PHY. And is recovered by the PHY.
Clock Interface Pins
Symbol
Description
X1
66
I
CRYSTAL OR EXTERNAL OSCILLATOR INPUT: 50 MHz
X2
67
O
X25M
53
O
CRYSTAL FEEDBACK OUTPUT: used in crystal connection
only.
25MHz clock output
-6-
Ver. 0.1
07/04/01
TC5299J
Power Supply Pins
Symbol
Pin #
I/O
95
92
87
91
86
90
85
89
100
99
101, 96, 63, 61
PWR
GND
Power input for internal circuit.
PWR,
GND
PWR
Power input for internal circuit.
5V power input pin.
VCC5R
102, 62
PWR
5V power reference pin.
VCC3D,
GND3D
121, 112, 28, 64
6, 41, 75, 78,
108
1, 25, 38, 60,
71, 81, 104,
113, 124
13, 20, 32, 44,
49, 56, 65, 68,
79, 106, 118,
128
PWR,
GND
3.3V power input pin, for digital core circuit.
PWR,
3.3V power input pin, for I/O PAD.
VCCAR
GNDAR
VCCA10
GNDA10
VCCAP
GNDAP
VCCDP
GNDDP
VCCAT
GNDAT
VCC5A
VCC3IO
GND3IO
Description
GND
JUMPER Interface Pins
Symbol
Pin #
I/O
JMP0
107
I
JMP1
110
I
Description
When power on setting, this bit directly locked to CCR0, bit5.
0: enable I/O. For embedded system use to enable I/O mode.
1: disable I/O. For PCMCIA system use only.
Default setting is leaving this pin open.
Power on setting:
0: separate address decode. Decode range from A0 to A5.
1: full address decode. Decode range from A0 to A9.
No Connection Pins
Symbol
Pin #
NC
15, 103, 111, 33
NC
97, 98, 93, 94,
83, 77, 84, 82,
80, 76, 88
I/O
Description
No Connection
No Connection. Reserved for future use for PHY is included in a
single chip.
-7-
Ver. 0.1
07/04/01
TC5299J
3.3
Power On Configuration
The TC5299J Controller configures itself after a RST signal is applied. When a Power-On-Reset occurs the
TC5299J controller latches up the values on the configuration pins and uses these to configure the internal registers
and options. Internally these pins contain pull-up resistance. If pins are unconnected they have default logic. The
configuration registers are loaded JMP0 & JMP1 setting when RST goes inactive.
A Power-On-Reset also causes the Controller to load the internal PROM from the EEPROM, which can take up to
3 ms. This occurs after “Config-Regs.” has completed. If EECONFIG is high the configuration data loaded on the
falling edge of RST will be overwritten with data read from the serial EEPROM. Regardless of the level on
EECONFIG the PROM store will always be loaded with data from the serial EEPROM during the time specified
as EELOAD.
Figure 1 shows how the RESET circuitry operates.
VCC
RESET
Regload
EEload
The TC5299J Controller use a 93C56/66 EEPROM, The programmed contents of the EEPROM is shown as
following.
D15
D8
CIS byte n
13H
12H
11H
10H
0FH
0EH
:::::
08H
07H
:::::
04H
03H
02H
01H
00H
D7
D0
CIS byte n-1
........
........
CIS byte 3
CIS byte 1
Not Used
Config. B
Reserved
42H
57H
Reserved
Reserved
Reserved
........
........
CIS byte 2
CIS byte 0
Config C
Config. A
Reserved
42H
57H
Reserved
Reserved
bit [0]: 8-bit enable
bit [7:1]: Reserved
Enet Address 5
Enet Address 4
Enet Address 3
Enet Address 2
Enet Address 1
Enet Address 0
EEPROM Programming Map
-8-
Ver. 0.1
07/04/01
TC5299J
Storing and Loading Configuration from EEPROM:
During boot up the TC5299J Controller's configuration is read from the EEPROM, before the PROM data is read. The
configuration data is stored within the address 0EH, 0FH (as above table) of the EEPROM's address space.
Configuration Register A, B and C are located in the address 0EH.
To write this configuration into the EEPROM, the user can program register in TC5299J's address 02H of page 3. This
operation will work regardless of the level on EECONFIG.
-9-
Ver. 0.1
07/04/01
TC5299J
4 I/O and Mapping
4.1
I/O Port Address Mapping
This chip is register-liked with Novell's NE2000. The base I/O address of TC5299J Controller is configured by
Configuration Register (either upon power up or by software writing to this register). At that address the following
structure appears.
Base+00H
TC5299J
Core
Registers
Base+0FH
Base+10H
Data Transfer Port
Base+17H
Base+18H
Reset Port
Base+1FH
The registers within this area are 8 bits wide, but the data transfer port is 16 bits wide. By accessing the data transfer
port (using I/O instructions) the user can transfer data to or from the TC5299J 's internal memory.
4.2 EEPROM/SRAM Memory Mapping
The TC5299J Controller's internal memory map is as shown below.
D15
D7
D0
0000H
PROM
001FH
Reserved
4000H
8K x 16
Buffer RAM
7FFFH
TC5299J Core Memory Map
PROM
Location
00h
01h
02h
03h
04h
05h
06-0Dh
0E,0Fh
10-15h
16-1Dh
1E-1Fh
Location Contents
ETHERNET ADDRESS 0
ETHERNET ADDRESS 1
ETHERNET ADDRESS 2
ETHERNET ADDRESS 3
ETHERNET ADDRESS 4
ETHERNET ADDRESS 5
RESERVED
57h
ETHERNET ADDRESS 0-5
RESERVED
42h
Contents of PROM Map
-10-
Ver. 0.1
07/04/01
TC5299J
TC5299J Controller actually has 32k-address range but only does partial decoding on these devices. 0000H – 001FH is
PROM address and 4000H – 7FFFH is Buffer RAM address, otherwise is reserved. To access either the PROM or the
RAM buffer which user must initiate a Remote DMA transfer between the I/O port and memory.
Remote Read/Write Cache:
The TC5299J Controller includes 4 words cache internally. On a remote read the TC5299J Controller moves data from
memory buffer to the cache buffer; the TC5299J moves data continuously until the cache buffer is full. On a remote
write the system can writes data into the cache buffer until the 4 words cache buffer is full.
4.3
Attribute Memory Mapping
PCMCIA CIS Structures & Decode Function:
The TC5299J supports access to 1K of attribute Memory. Attribute memory is defined by the PCMCIA standard to be
comprised of the card information structure and four 8-bits Card Configuration Registers. These four registers are
contained in the TC5299J.
4.3.1
Attribute Memory Map
The attribute Memory map for a PCMCIA card is shown below.
Address
Description
00H-3E0H
Attribute Memory
3F0H (CCR4)
I/O Event indication Register
3F2H (CCR5)
Control Register
3F4H-3F6H
Reserved
3F8H(CCR0)
Configuration Option Register
3FAH(CCR1)
Card Configuration and Status Register
3FCH(CCR2)
Pin Replacement Register
3FEH(CCR3)
Reserved
Card Option Registers 0 (R/W): 3F8H (CCR0)
D7
D6
D5
D4
D3
D2
D1
D0
SRESET
XX
PCMIOEN
XX
XX
XX
PJ1
PJ0
Name
Description
PJ0-PJ1
SRESET
If JMP1 pulled low during power on reset and FUNC=0, The two bits select one of
4 I/O base address. (shows as below)
To set high make the card enter I/O mode. The function also can be set by JMP0
(MCS) when Power On Reset.
Setting this bit to high, place the card enter reset mode.
XX
Reserved
PCMIOEN
JMP1 does not pull-low during power on reset.
-11-
Ver. 0.1
07/04/01
TC5299J
Ethernet I/O address range
PJ1
PJ0
Address Range
0
0
300H-31FH
0
1
320H-33FH
1
0
340H-35FH
1
1
360H-37FH
Card Configuration and Status Registers (R/W): 3FAH (CCR1)
D7
D6
D5
D4
D3
D2
D1
D0
XX
XX
XX
XX
XX
XX
Ireq
XX
Name
Description
Ireq
Interrupt. This bit describes the interrupt signal of LAN or MODEM
1: LAN interrupt
0: Modem interrupt
Reserved
XX
-12-
Ver. 0.1
07/04/01
TC5299J
5 Configuration Registers
5.1
Configuration Register A
To prevent any accidental writes of this register it is”hidden” behind a previously unused register. Register 0AH
in the Controller's Page 0 of registers was previously reserved on a read. Now Configuration Register A can be
read at that address and can be written to by following a read to 0AH with a write to 0AH. If any other Controller
register accesses take place between the read and the write then the write to 0AH will access the Remote Byte
Count Register 0.
7
6
5
4
XX
FREAD
FDUPLEX
3
LNK_CFG FULL_CFG
2
1
0
IO16CON
MIISEL1
MIISEL0
Name
R/W
Description
MIISEL[1:0]
R/W
IO16CON
R/W
FULL_CFG
R/W
LNK_CFG
R/W
FDUPLEX
R
PCMIOALL
EL
10: Default value to active the MII bus.
Other: reserved.
When this bit is set high the Controller generates IO16* after REG* active. If low this
output is generated only on address decode.
The bit is described EXLEDF what the polarity is.
0: Low active/ Hi inactive
1: Hi active/ Low inactive
The bit is described EXLEDL what the polarity is.
0: Low active/ Hi inactive
1: Hi active/ Low inactive
The Full-Duplex setting bit.
1: Full-duplex mode,
0: Half-duplex mode
The bit is indicated the decode-number of SA[9:0].
0: Only decode 5 address-lines, SA[5:0].
1: Full decode 10 address-lines, SA[9:0].
The TC5299J Controller supports 4 words Remote DMA read/write cache. When this
bit is set high, Remote DMA cache control will be enabled.
Reserved
FREAD
R/W
XX
PS. EL: The bit only set on EEPROM loading.
5.2
Configuration Register B
To prevent any accidental writes of his register it is ”hidden” behind a previously unused register. Register 0BH in
the Controller's Page 0 of registers was previously reserved on a read. Now Configuration Register B can be read
at that address and can be written to by following a read to 0BH with a write to 0BH. If any other Controller
register accesses take place between the read and the write then the write to 0BH will access the Remote Byte
Count Register 1.
Name
LCIM
7
6
5
4
3
2
1
0
XX
LINT
EXTRMII
MIICINT
MIICIM
LINK
LCINT
LCIM
R/W
R/W
Description
The interrupt mask bit for link status changed. When set to “1”, the Interrupt will
generate on link status changed.
-13-
Ver. 0.1
07/04/01
TC5299J
LCINT
R/W
MIICIM
R/W
The Link-Changed interrupt report bit.
1: indicates the Link status changed.
When this bit is high, link test integrity checking is good. Otherwise, indicate link
signal lost.
This bit should be set to 0.
LINK
R
MIICINT
R/W
This bit should be set to 0.
EXTRMII
R
This bit should be set to 0.
LINT
R/W
XX
5.3
X
LAN interrupt status indicator. To write a one to this bit can reset it.
Reserved
Configuration Register C
This register just set in EEPROM and it can’t been read from user.
Name
7
6
5
4
3
2
1
0
XX
XX
XX
FE
RBHI1
RBHI0
RBLO1
RBLO0
R/W
RBLO [1:0]
X
RBHI [1:0]
X
FE
X
XX
X
Description
This is low value of receive buffer setting on full-duplex flow-control. It means that
are few data in Rx buffer.
00: Less than 1.5K data in Rx buffer.
01: Less than 3k data in Rx buffer.
10: Less than 4.5k data in Rx buffer.
11: Less than 6k data in Rx buffer.
That is high value of receive buffer setting on full-duplex flow-control. It means that is
few space in Rx buffer.
00: Less than 1.5K space in Rx buffer.
01: Less than 3k space in Rx buffer.
10: Less than 4.5k space in Rx buffer.
11: Less than 6k space in Rx buffer.
Flow control enable bit in full-duplex mode.
0: Disable flow-control.
1: Enable flow-control.
Reserved
PS. X: Can’t read, just set these bit in the EEPROM.
5.4
Hardware Configuration
These functions are configured during a power on RESET.
Symbol
I/O
Description
JMP0
I/O
JMP1
I/O
Power on setting:
0: Enter I/O mode (Same as CCR0, bit 5)
Power on setting:
1: Full address decode(A9-A0)
0: Separate address decode(A5-A0)
-14-
Ver. 0.1
07/04/01
TC5299J
Programming Register (R/W)
The Controller enable software (driver) programming EEPROM or testing interrupt signal through this register directly.
It is located at core register Page3 base+02H.
7
6
5
4
3
2
1
0
EESEL
FIRQ
XX
READ
CS
SK
DI
DO(r) ATTRDIS
Name
Description
EESEL,
CS,
SK,
DI,
DO
FIRQ
The software can read or programming serial EEPROM directly through accesses these bits.
EESEL should be set high before starting the EEPROM read/write.
READ
TC5299J can reload CFGA, CFGB and internal PROM, if this bit is set high. When reload
state is completed, READ will be cleared to low.
Attribute and common memory access will be disable if it is programmed to high.
NOTE:
DO: read only
ATTRDIS: write only
This chip interrupt signal IRQ will be asserted when this bit is set high.
ATTRDIS
5.5
MII/PHY Control Register
The controller can access PHYTER register via software driver. It is located at core register Page3 base+03H.
7
6
5
4
3
2
1
0
XX
FE
XX
XX
MDI
MDIR
MDO
MDC
Name
R/W
MDC
W
MII Management Clock
MDO
W
MII Management Write Data.
MDIR
W
MDI
R
MII Management Operation Mode
Defines the operation of PHY.
When set, the PHY is in read operation mode.
When clear, the PHY is in write operation mode.
MII Management Data In.
FE
R/W
XX
X
5.6
Description
Flow control enable bit in full-duplex mode. The bit can be set when EEPROM
loading.
0: Disable flow-control.
1: Enable flow-control.
Reserved
TC5299J Core Registers Assignment
All registers are 8-bit wide and mapped into four pages, which are selected in the Command Register (PS0, PS1).
-15-
Ver. 0.1
07/04/01
TC5299J
Pins A0-A3 are used to address registers within each page. Page 0 register are those registers which are commonly
accessed during TC5299J Controller operation while Page 1 registers are used primarily for initialization. The
registers are partitioned to avoid having to perform two read/write cycles to access commonly used registers.
Register Assignments:
Page 0 Address Assignments (PS1=0,PS0=0)
A0-A3
RD
WR
00H
Command(CR)
Command(CR)
01H
Current Local DMA Address 0 (CLDA0)
Page Start Register (PSTART)
02H
Current Local DMA Address 1 (CLDA1)
Page Stop Register (PSTOP)
03H
Boundary Pointer (BNRY)
Boundary Pointer (BNRY)
04H
Transmit Status Register(TSR)
Transmit Page Start Address (TPSR)
05H
Number of Collisions Register(NCR)
Transmit Byte Count Register 0 (TBCR0)
06H
FIFO(FIFO)
Transmit Byte Count Register 1 (TBCR1)
07H
Interrupt Status Register(ISR)
Interrupt Status Register(ISR)
08H
Current Remote DMA Address 0(CRDA0)
Remote Start Address Register 0(RSAR0)
09H
Current Remote DMA Address 1(CRDA1)
Remote Start Address Register 1(RSAR1)
0AH
Config. Register A (CFGA)
Remote Byte Count Register 0(RBCR0)
0BH
Config. Register B (CFGB)
Remote Byte Count Register 1(RBCR1)
0CH
Receive Status Register(RSR)
Receive Configuration Register(RCR)
0DH
Tally Counter 0(Frame alignment Errors)
(CNTR0)
Tally Counter 1 (CRC errors) (CNTR1)
Transmit Configuration Register(TCR)
0EH
0FH
Tally Counter 2 (Missed Packet Errors)
(CNTR2)
Data Configuration Register(DCR)
Interrupt Mask Register(IMR)
Page 1 Address Assignments (PS1=0,PS0=1)
A0-A3
RD
WR
00H
Command(CR)
Command(CR)
01H
Physical Address Register 0(PAR0)
Physical Address Register 0(PAR0)
02H
Physical Address Register 1(PAR1)
Physical Address Register 1(PAR1)
03H
Physical Address Register 2(PAR2)
Physical Address Register 2(PAR2)
04H
Physical Address Register 3(PAR3)
Physical Address Register 3(PAR3)
05H
Physical Address Register 4(PAR4)
Physical Address Register 4(PAR4)
06H
Physical Address Register 5(PAR5)
Physical Address Register 5(PAR5)
07H
Current Page Register(CURR)
Current Page Register(CURR)
08H
Multicast Address Register 0(MAR0)
Multicast Address Register 0(MAR0)
09H
Multicast Address Register 1(MAR1)
Multicast Address Register 1(MAR1)
0AH
Multicast Address Register 2(MAR2)
Multicast Address Register 2(MAR2)
0BH
Multicast Address Register 3(MAR3)
Multicast Address Register 3(MAR3)
0CH
Multicast Address Register 4(MAR4)
Multicast Address Register 4(MAR4)
0DH
Multicast Address Register 5(MAR5)
Multicast Address Register 5(MAR5)
-16-
Ver. 0.1
07/04/01
TC5299J
Page 1 Address Assignments (PS1=0,PS0=1)
A0-A3
RD
WR
0EH
Multicast Address Register 6(MAR6)
Multicast Address Register 6(MAR6)
0FH
Multicast Address Register 7(MAR7)
Multicast Address Register 7(MAR7)
Page 2 Address Assignments (PS1=1,PS0=0)
A0-A3
RD
WR
00H
Command(CR)
Command(CR)
01H
Page Start Register (PSTART)
Current Local DMA Address 0(CLDA0)
02H
Page Stop Register (PSTOP)
Current Local DMA Address 1(CLDA1)
03H
Remote Next Packet Pointer
Remote Next Packet Pointer
04H
Transmit Page Start Address(TPSR)
Reserved
05H
Local Next Packet Pointer
Local Next Packet Pointer
06H
Address Counter (Upper)
Address Counter (Upper)
07H
Address Counter (Lower)
Address Counter (Lower)
08H
Reserved
Reserved
09H
Reserved
Reserved
0AH
Reserved
Reserved
0BH
Reserved
Reserved
0CH
Receive Configuration Register(RCR)
Reserved
0DH
Transmit Configuration Register(TCR)
Reserved
0EH
Data Configuration Register(DCR)
Reserved
0FH
Interrupt mask Register(IMR)
Reserved
Note: Page 2 registers should only be accessed for diagnostic purposes. They should not be modified during normal
operation. Page 3 Reserved should never be modified.
Page 3 Address Assignments (PS1=1,PS0=1)
A0-A3
RD
WR
00H
Command(CR)
Command(CR)
01H
Reserved
Reserved
02H
Programming Reg.
Programming Reg.
03H
MII Control Register
MII Control Register
04H
Reserved
Reserved
05H
Reserved
Reserved
06H
Reserved
Reserved
07H
Reserved
Reserved
08H
Reserved
Reserved
09H
Reserved
Reserved
0AH
Reserved
Reserved
0BH
Reserved
Reserved
-17-
Ver. 0.1
07/04/01
TC5299J
Page 3 Address Assignments (PS1=1,PS0=1)
A0-A3
5.7
RD
WR
0CH
Reserved
Reserved
0DH
Reserved
Reserved
0EH
Reserved
Reserved
0FH
Reserved
Reserved
Register Descriptions
5.7.1
Command Register (CR)
00H (Read/Write)
The Command Register is used to initiate transmissions, enable or disable Remote DMA operations and
to select register pages. To issue a command the microprocessor sets the corresponding bit(s) (RD2,
RD1, RD0 and TXP). Further commands may be overlapped, but with the following rules: (1) if a
transmit command overlaps with a remote DMA operation, bits RD0, RD1, and RD2 must be maintained
for the remote DMA command when setting the TXP bit. Note, if a remote DMA command is re-issued
when giving the transmit command, the DMA will complete immediately if the remote byte count
register have not been reinitialized. (2) If a remote DMA operation overlaps a transmission, RD0, RD1,
and RD2 may be written with the desired values and a ”0”to this bit has no effect. (3) A remote write
DMA may not overlap remote read operation or visa versa. Either of these operations must either
complete or be aborted before the other operation may start. Bits PS1, PS0, RD2, and STP may be set
any time.
7
6
5
4
3
2
1
0
PS1
PS0
RD2
RD1
RD0
TXP
STA
STP
Bit
Symbol
Description
D0
STP
D1
STA
D2
TXP
D3-D5
RD0-RD2
D6,D7
PS0,PS1
Stop: Software reset command, take the controller offline, no packets will be
received or transmitted. Any reception of transmission in progress will continue to
completion before entering the reset state. To exit this state, the STP bit must be
reset. The software reset has executed only when indicated by the RST bit in the
ISR being set to a 1. STP powers up high.
Start: This bit is used to active the TC5299J core after either power up, or when the
TC5299J core has been placed in a reset mode by software command. STA power
up low.
Transmit Packet: This bit must be set to initiate transmission of a packet. TXP is
internally reset either after the transmission is completed or aborted. This bit
should be set only after the Transmit Byte Count and Transmit Page Start registers
have been programmed. TXP powers up low.
Remote DMA Command: These three encoded bits control operation of the
Remote DMA channel. RD2 can be set to about any Remote DMA command in
progress. The Remote Start Addresses are not restored to the starting address if the
Remote DMA is aborted. RD2 powers up high.
RD2
RD1
RD0
0
0
0
Not Allowed
0
0
1
Remote Read
0
1
0
Remote Write (Note)
0
1
1
Send Packet
1
X
X
Abort/Complete Remote DMA (Note)
Page Select: Three two encoded bits select which register page is to be accessed
with addresses A0-3.
PS1
PS0
0
0
Register Page 0
-18-
Ver. 0.1
07/04/01
TC5299J
Bit
Symbol
Description
0
1
1
5.7.2
1
0
1
Register Page 1
Register Page 2
Register Page 3
Data Configure register (DCR)
0EH(Write)
This Register is used to program the TC5299J for 8 or 16-bit memory interface, select byte ordering in
16-bit applications and establish FIFO thresholds. The DCR must be initialized prior to loading the
Remote Byte count Registers.
7
6
5
4
3
2
1
0
-
FT1
FT0
-
LS
-
-
WTS
Bit
Symbol
Description
D0
WTS
D1
-
Word Transfer Select
0: Selects byte-wide DMA transfers.
1: Selects word-wide DMA transfers
Note:
When word-wide mode is selected, up to 32k bytes are addressable; A0
remains low.
Reserved
D2
-
Reserved
D3
LS
D4
-
Loopback Select
0: Loopback mode selected. Bits D1, D2 of the TCR must also be programmed for
Loopback mode selected.
1: Normal Operation.
Reserved
D5,D6
FT0,FT1
5.7.3
FIFO Threshold Select: Encoded: FIFO threshold. During reception, the FIFO
threshold indicates the number of bytes (or words) the FIFO has filled serially from
the network before the FIFO is emptied onto memory bus.
RECEIVE THRESHOLDS
FT1 FT0 Word Wide Byte Wide
0
0
2 Word
4 Bytes
0
1
4 Word
8 Bytes
1
0
8 Word
16 Bytes
1
1
12 Word
24 Bytes
During transmission, the FIFO threshold indicates the number of bytes (of words)
the FIFO has filled from the Local DMA before being transferred to the memory.
Thus, the transmission threshold is 16 bytes less the receive threshold.
Transmit configuration Register (TCR)
0DH(Write)
The transmit configuration establishes the actions of the transmitter section of the TC5299J during
transmission of a packet on the network, LB1 and LB0 power up as 0.
7
6
5
4
3
2
1
0
-
-
-
OFST
ATD
LB1
LB0
CRC
Bit
Symbol
Description
D0
CRC
Inhibit CRC
-19-
Ver. 0.1
07/04/01
TC5299J
0: CRC appended by transmitter
1: CRC inhibited by transmitter
Encoded Loopback Control: These encoded configuration bits set the type of
loopback that is to be performed. Note that loopback in mode 2 sets the LPBK pin
high, this places the TC5299J in loopback mode and that D2 of the DCR must be
set to zero for loopback operation.
LB1
LB0
Mode0
0
0
Normal Operation (LPBK=0)
Mode1
0
1
Internal Loopback (LPBK=0)
Reserved
1
0
Reserved
1
1
Reserved
D1,D2
LB0,LB1
D3
-
D4
OFST
D5
-
Collision Offset Enable: This bit modifies the back off algorithm to allow
prioritization of nodes.
0: Backoff Logic implements normal algorithm.
1: Forces Backoff algorithm modification to 0 to 2mim(3+n,10) slot times for first three
collisions, Then follows standard backoff. (For first three collisions station has
higher average backoff delay making a low priority mode.)
Reserved
D6
-
Reserved
D7
-
Reserved
5.7.4
Transmit Status Register (TSR)
04H(Read)
This register records events that occur on the media during transmission of a packet. It is cleared, when
the next transmission is initiated by the host. All bits remain low unless the event that corresponds to a
particular bit occurs during transmission. Each transmission should be followed by a read of this register.
The contents of this register are not specified until after the first transmission.
7
OWC
6
5
4
3
2
1
0
FU
CRS
ABT
COL
-
PTX
Bit
Symbol
Description
D0
PTX
D1
-
Packet Transmitted: Indicates transmission without error (No excessive collisions
or FIFO underrun) (ABT=”0”, FU=”0”).
Reserved
D2
COL
D3
ABT
D4
CRS
D5
FU
D6
-
D7
OWC
Transmit Collided: Indicates that the transmission collided at least once with
another station on the network. The number of collisions is recorded in the
Number of Collisions Registers. (NCR).
Transmit Aborted: Indicates the TC5299J aborted transmission because of
excessive collisions. (Total number of transmissions including original
transmission attempt equals 16).
Carrier Sense Lost: This bit is set when carrier is lost during transmission of the
packet. Carrier Sense is monitored from the end of Preamble/Synch until TXE is
dropped. Transmission is not aborted on loss of carrier.
FIFO Underrun: If the TC5299J cannot gain access of the bus before the FIFO
empties, this bit is set. Transmission of the packet will be aborted.
Reserved
Out of Window Collision: Indicates that a collision occurred after a slot time.
Transmissions rescheduled as in normal collisions.
-20-
Ver. 0.1
07/04/01
TC5299J
5.7.5
Receive Configuration Register (RCR)
0CH(Write)
This register determines operation of the TC5299J during reception of a packet and is used to program
what types of packets to accept.
7
6
5
4
3
2
1
0
-
-
MON
PRO
AM
AB
AR
SEP
Bit
Symbol
Description
D0
SEP
D1
AR
D2
AB
D3
AM
D4
PRO
D5
MON
D6
-
Save Errored Packets
0: Packets with receive errors are rejected.
1: Packets with receive errors are accepted. Receive errors are CRC and Frame
Alignment errors.
Accept Runt Packets
0: Packets with fewer than 64 bytes rejected.
1: Packets with fewer than 64 bytes accepted.
Accept Broadcast
0: Packets with all 1's broadcast destination address rejected.
1: Packets with all 1's broadcast destination address accepted.
Accept Multicast
0: Packets with multicast destination address not checked.
1: Packets with multicast destination address checked.
Promiscuous Physical
0: Physical address of node must match the station address programmed in
PAR0-PAR5. (Physical address checked)
1: All packets with any physical address accepted. (physical address not
checked)
Monitor Mode: Enables the receiver to check addresses and CRC on incoming
packets without buffering to memory. The missed packet Tally counter will be
incremented for each recognized packet.
0: Packets buffered to memory.
1: Packets checked for address match, good CRC and frame Alignment but not
buffered to memory.
Reserved
D7
-
Reserved
Note:
D2 and D3 are ”OR'd” together, i. e., if D2 and D3 are set the TC5299J will accept broadcast and
multicast addresses as well as its own physical address. To establish full promiscuous mode, bits D2, D3
and D4 should be set. In addition the multicast hashing array must be set to all 1's in order to accept all
multicast addresses.
5.7.6
Receive Status Register (RSR)
0CH(Read)
This register records status of the received packet, including information on errors and the type of
address match, either physical or multicast. The contents of this register are written to buffer memory by
the DMA after reception of a good packet. If packets with errors are to be saved the receive status is
written to memory at the head of the erroneous packet if an erroneous packet is received. If packets with
errors are to be rejected the RSR will not be written to memory. The contents will be cleared when the
next packet arrives. CRC errors, frame Alignment errors and missed packets are counted internally by
the TC5299J which relinquishes the Host from reading the RSR in real time to record errors for Network
Management functions. The contents of this register are not specified until after the first reception.
7
6
5
4
3
-21-
2
1
0
Ver. 0.1
07/04/01
TC5299J
DFR
DIS
PHY
MPA
FO
FAE
CRC
PRX
Bit
Symbol
Description
D0
PRX
D1
CRC
D2
FAE
D3
FO
D4
MPA
D5
PHY
D6
DIS
D7
DFR
Packet Received Intact: Indicates packet received without error. (Bits CRC, FAE,
FO and MPA are zero for the received packet.)
CRC Error: Indicates packet received with CRC error. Increments Tally Counter
(CNTR1). This bit will also be set for Frame Alignment errors.
Frame Alignment Error: Indicates that the incoming packet did not end on a byte
boundary and the CRC did not match at last byte boundary. Increments Tally
counter (CNTR0).
FIFO Overrun: This bit is set when the FIFO is not serviced causing overflow
during reception. Reception of the packet will be aborted.
Missed Packet: Set when packet intended for node cannot be accepted by TC5299J
because of a lack of receive buffers of if the controller is in monitor mode and did
not buffer the packet to memory. Increments Tally Counter (CNTR2).
Physical/Multicast Address: Indicates whether received packet had a physical or
multicast address type
0: Physical Address Match
1: Multicast/Broadcast Address Match
Receiver Disabled: Set when receiver disabled by entering Monitor mode. Reset
when receiver is re-enabled when exiting Monitor mode.
Deferring: Set when CRS or COL inputs are active. If the transceiver has asserted
the CD line as a result of the jabber, this bit will stay set indicating the jabber
condition.
Note: Following coding applies to CRC and FAE bits
FAE
CRC
Type of Error
0
0
1
1
0
1
0
1
5.7.7
No error (Good CRC and <6 Dribble Bits)
CRC ERROR
Legal, will not occur
Frame Alignment Error and CRC Error
Interrupt Mask Register (IMR)
0FH(Write)
The interrupt Mask Register is used to mask interrupts. Each interrupt mask bit corresponds to a bit in
the Interrupt Status Register (ISR). If an interrupt mask bit is set, an interrupt will be issued whenever
the corresponding bit in the ISR is set. If any bit in the IMR is set low, an interrupt will not occur when
the bit in the ISR is set. The IMR powers up all zeroes.
7
6
5
4
3
2
1
0
-
RDCE
CNTE
OVWE
TXEE
RXEE
PTXE
PRXE
Bit
Symbol
Description
D0
PRXE
Packet Received Interrupt Enable: Enables Interrupt when packet received.
D1
PTXE
Packet Transmitted Interrupt Enable: Enables Interrupt when packet is transmitted.
D2
RXEE
Receive Error Interrupt Enable: Enables Interrupt when packet received with error.
D3
TXEE
D4
OVWE
D5
CNTE
Transmit Error Interrupt Enable: Enables Interrupt when packet transmission
results in error.
Over Write Warning Interrupt Enable: Enables Interrupt when Buffer management
Logic lacks sufficient buffers to store incoming packet.
Counter Overflow Interrupt Enable: Enables Interrupt when MSB of one or more
f h N
k T ll
h b
-22-
Ver. 0.1
07/04/01
TC5299J
Bit
Symbol
Description
of the Network Tally counters has been set.
D6
RDCE
D7
-
5.7.8
DMA Complete Interrupt Enable: Enables Interrupt when Remote DMA transfer
has been completed.
Reserved
Interrupt Status Register (ISR)
07H(Read/Write)
This register is accessed to determine the cause of an interrupt. Any interrupt can be masked in the
interrupt Mask Register (IMR). Individual interrupt bits are cleared by writing a ”1” into the
corresponding bit of the ISR.
The IRQ signal is active as long as any unmasked signal is set, and will not go low until all unmarked
bits in this register have been cleared. The ISR must be cleared after power up by writing it with all 1's.
5.8
7
6
5
4
3
2
1
0
RST
RDC
CNT
OVW
TXE
RXE
PTX
PRX
Bit
Symbol
Description
D0
PRX
Packet Received: Indicates packet received with no errors.
D1
PTX
Packet Transmitted: Indicates packet transmitted with no errors.
D2
RXE
D3
TXE
D4
OVW
D5
CNT
D6
RDC
Receive Error: Indicates that a packet was received with one or more of the
following errors:
- CRC Error
- Frame Alignment Error
- FIFO Overrun
- Missed Packet
Transmit Error: Set when packet transmitted with one or more of the following
errors:
- Excessive Collisions
- FIFO Underrun
Over Write Warning: Set when receive buffer ring storage resources have been
exhausted. (Local DMA has reached Boundary Pointer).
Counter Over flow: Set when MSB of one or more of the Network Tally Counters
has been set.
Remote DMA Complete: Set when Remote DMA operation has been completed.
D7
RST
Reset Status: A status indicator with no interrupt generated
- Set when TC5299J enters reset state and is cleared when a start command is
issued
- Set when a Receive Buffer Ring overflows and is cleared when leaves
overflow status. Writing to this bit has no effect and powers up high.
Network Tally Counter Registers (CNTR)
Three 8-bit counters are provided for monitoring the number of CRC errors, Frame Alignment Errors and missed
packets, The maximum count reached by any counter is 192 (C0H). These registers will be cleared when read by
the CPU. The count is recorded in binary in CT0-CT7 of each Tally Register.
CNTR0: Monitor the number of Frame Alignment error
7
6
5
4
CT7
CT6
CT5
CT4
3
2
1
0
CT3
CT2
CT1
CT0
CNTR1: Monitor the number of CRC error
-23-
Ver. 0.1
07/04/01
TC5299J
7
6
5
4
3
2
1
0
CT7
CT6
CT5
CT4
CT3
CT2
CT1
CT0
4
3
2
1
0
CT4
CT3
CT2
CT1
CT0
CNTR2: Monitor the number of Missed Packets
7
6
5
CT7
5.9
CT6
CT5
Number of Collisions Register (NCR)
This register contains the number of collisions a node experiences when attempting to transmit a packet. If no
collisions are experienced during a transmission attempt, the COL bit of the TSR will not be set and the contents of
NCR will be zero. If there are excessive collisions, the ABT bit in the TSR will be set and the contents of NCR
will be zero. The NCR is cleared after the TXP bit in the CR is set.
7
6
5
4
3
2
1
0
-
-
-
-
NC3
NC2
NC1
NC0
5.10 Physical Address Register (PAR0-PAR5)
The physical address registers are used to compare the destination address of incoming packets for rejecting or
accepting packets. Comparisons are performed on a byte-wide basis. The bit assignment shown below relates the
sequence in PAR0-PAR5 to the bit sequence of the received packet.
..
Syn
Syn
DA0
DA1
DA2
|-------
PAR0
PAR1
PAR2
PAR3
PAR4
PAR5
D7
DA7
DA15
DA23
DA31
DA39
DA47
DA3
DA4
DA5
DA6
DA7
Destination Address
D6
DA6
DA14
DA22
DA30
DA38
DA46
D5
DA5
DA13
DA21
DA29
DA37
DA45
D4
DA4
DA12
DA20
DA28
DA36
DA44
D3
DA3
DA11
DA19
DA27
DA35
DA43
..
--------|--- Source
D2
DA2
DA10
DA18
DA26
DA34
DA42
D1
DA1
DA9
DA17
DA25
DA33
DA41
D0
DA0
DA8
DA16
DA24
DA32
DA40
5.11 Multicast Address Registers (MAR0-MAR7)
The Multicast address registers provide filtering of multicast addresses hashed by the CRC logic. All destination
addresses are fed through the CRC logic and as the last bit of the destination address enters the CRC, the 6 most
significant bits of the CRC generator are latched. These 6 bits are then decoded by a 1 of 64 decode to index a
unique filter bit (FB0-63) in the multicast address register. If the filter bit selected is set, the multicast packet is
accepted. The system designer would use a program to determine which filter bits to set in the multicast registers.
For some address found to hash to the value 50 (32H), then FB50 in MAR6 should be initialized to ”1” All
multicast filter bits that correspond to multicast address accepted by the node are then set to one. To accept all
multicast packets all of the registers are set to all ones.
D7
D6
D5
D4
D3
D2
D1
D0
MAR0
FB7
FB6
FB5
FB4
FB3
FB2
FB1
FB0
MAR1
FB15
FB14
FB13
FB12
FB11
FB10
FB9
FB8
MAR2
FB23
FB22
FB21
FB20
FB19
FB18
FB17
FB16
MAR3
FB31
FB30
FB29
FB28
FB27
FB26
FB25
FB24
-24-
Ver. 0.1
07/04/01
TC5299J
MAR4
FB39
FB38
FB37
FB36
FB35
FB34
FB33
FB32
MAR5
FB47
FB46
FB45
FB44
FB43
FB42
FB41
FB40
MAR6
FB55
FB54
FB53
FB52
FB51
FB50
FB49
FB48
MAR7
FB63
FB62
FB61
FB60
FB59
FB58
FB57
FB56
5.12 DMA Registers
LOCAL DMA TRANSMIT REGISTERS
15
8| 7
(TPSR)
0
TRANSMIT
PAGE
START
TRANSMIT BYTE COUNT
(TBCR0,1)
5.13 LOCAL DMA RECEIVE REGISTERS
15
8| 7
(PSTART)
PAGE START
(PSTOP)
PAGE STOP
(CURR)
CURRENT
(BRNY)
BOUNDARY
15
(CLDA0,1)
8|
7
0
0
CURRENT LOCAL DMA
ADDRESS
5.14 REMOTE DMA REGISTERS
15
8| 7
0
(RSAR0,1)
START ADDRESS
(RBCR0,1)
BYTE COUNT
(CRDA0,1)
CURRENT REMOTE DMA
ADDRESS
5.15 (i) Local DMA Transmit Registers
Transmit page start register (TPSR):
This register points to the assembled packet to be transmitted. Only the eight higher order addresses be specified since
all transmit packets are assembled on 256-byte page boundaries.
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
Transmit byte count register0, 1 (TBCR0, TBCR1):
These two registers indicate the length of the packet to be transmitted in bytes. The maximum number of transmit bytes
allowed is 32k bytes. (4000H – 7FFFH) The TC5299J will not truncate transmissions longer than 1500 bytes.
TBCR1
7
L15
6
L14
5
L13
4
L12
3
L11
2
L10
1
L9
-25-
0
L8
Ver. 0.1
07/04/01
TC5299J
TBCR0
7
L7
6
L6
5
L5
4
L4
3
L3
2
L2
1
L1
0
L0
5.16 (ii) Local DMA Receive Registers
Page start, stop registers (PSTART, STOP):
The Page Start and Page stop Registers program the starting and stopping page of the Receive Buffer Ring. Since the
TC5299J uses fixed 256-byte buffers aligned on page boundaries only the upper eight bits of the start and stop address
are specified.
PSTART PSTOP
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
Boundary register (BNRY):
This register is used to prevent overflow of the Receive Buffer Ring. Buffer management compares the contents of this
register to the next buffer address when linking buffers together. If the contents of this register match the next buffer
address the local DMA operation is aborted.
BNRY
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
5.17 (iii) Remote DMA registers
Remote Start Address Registers (RSAR0, 1):
Remote Byte Count Registers (RBCR0, 1):
Remote DMA operations are programmed via the Remote Start Address (RSAR0, 1) and Remote Byte Count (RBCR0,
1) registers. The Remote Start Address is used to point to the start of the block of data to be transferred and the Remote
Byte Count is used to indicate the length of the block (in bytes).
RSAR1
RSAR0
RBCR1
RBCR0
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
7
6
5
4
3
2
1
0
A7
A6
A5
A4
A3
A2
A1
A0
7
6
5
4
3
2
1
0
BC15
BC14
BC13
BC12
BC11
BC10
BC9
BC8
7
6
5
4
3
2
1
0
BC7
BC6
BC5
BC4
BC3
BC2
BC1
BC0
Current Page Register:
This register is used internally by the Buffer Management Logic as a backup register for reception. CURR contains the
address of the first buffer to be used for a packet reception and is used to restore DMA pointers in the event of receive
errors. This register is initialized to the same value as PSTART and should not be written to again unless the controller
is reset.
7
6
5
4
3
2
1
0
CURR
A15
A14
A13
A12
A11
A10
A9
-26-
A8
Ver. 0.1
07/04/01
TC5299J
Current local DMA register 0,1 (CLDA0, 1):
These two registers can be accessed to determine the current Local DMA Address.
CLDA1
CLDA0
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
7
6
5
4
3
2
1
0
A7
A6
A5
A4
A3
A2
A1
A0
Current Remote DMA Address Registers:
The Current Remote DMA Registers contain the current address of the Remote DMA. The bit assignment is shown as
below:
CRDA1
CRDA0
7
6
5
4
3
2
1
0
A15
A14
A13
A12
A11
A10
A9
A8
7
6
5
4
3
2
1
0
A7
A6
A5
A4
A3
A2
A1
A0
-27-
Ver. 0.1
07/04/01
TC5299J
6 Electrical Specification and Timing
MII :
RECEIVE TIMING
An example transfer a packet from PHY to MAC
RXC
RXDV
RXD[3:0]
Receive Data
RXER
TRANSMIT TIMINGS
An example transfer a packet from MAC to PHY
TXC
TXEN
TXD[3:0]
Transm it Data
CRS
COL
-28-
Ver. 0.1
07/04/01
TC5299J
ISA Slave Accesses
ISA Slave Accesses
T16
T6c
ALE
T1
T15
T18
T19
AEN
T2
T6a
SA0-9
T7
T13
IOR*,IOW*
T14
IO16*
T5a
T5c
IORDY
T3
T17
T4
T10
SD0-15
(Read)
T20
T11
SD0-15
(Write)
T9
Data Valid
T12
MR*
T21
MW
*
T22
-29-
Ver. 0.1
07/04/01
TC5299J
Symbol
8-Bit Transfers
Min
Max
Description
16-Bit Transfers
Min
Max
Units
T1
T2
T3
ALE Width (ISA Interface)
AEN valid before Command Strobe Active
SA0-9 Valid before IOR* , IOW* Asserted
20
60
40
20
60
20
ns
ns
ns
T4
T5a
IOR*, Asserted to SD0-15 Driven
SA0-9 Valid before IO16* Valid
0
0
60
ns
ns
T5c
50
ns
T6a
T6c
SA0-9 Valid and IOR* or IOW* Active before IO16*
Valid
IOR*, IOW* Asserted to IORDY Deasserted
ALE Asserted and SA0-9 Valid to IORDY Deasserted
50
60
ns
ns
T7
T9
IOR*, IOW* Deasserted before SA0-9 Invalid
IOR*, Deasserted to SD0-15 Read Data Invalid
T10
IOR*, Deasserted to SD0-15 Floating
T11
T12
SD0-15 Write Data Valid to IOW* Deasserted
IOW*, Deasserted to SD0-15 Write Data Invalid
60
20
20
20
ns
ns
T13
T14
IOR*, IOW* Active Width
IOR*, IOW* Inactive Width
300
85
140
85
ns
ns
T15
T16
ALE Asserted before IOR*, IOW* Asserted
IOR*, IOW* Negated before Next ALE Asserted
25
20
ns
ns
T17
IORDY Asserted to SD0-15 I/O Read Data Valid
T18
T19
IOR*, IOW* Deasserted before AEN Invalid
AEN Valid before ALE Deasserted
T20
T21
IOR* Asserted to SD0-15 Read Data Valid
IORDY Invalid after MR* Deasserted
T22
IORDY Invalid after MW* Deasserted
100
60
15
0
15
0
45
60
25
50
150
-30-
45
60
25
50
ns
ns
ns
ns
ns
ns
90
30
ns
ns
20
ns
Ver. 0.1
07/04/01
TC5299J
7 Physical Dimension
D
1
D1
2
θ2
4
θ1
65
96
97
R1
64
B
R2
E1
E
2
1
GAGE PLANE
.25
S
θ3
128
PIN 1
IDENTIFIER
θ
B
L
L1
33
DETAIL "A"
1
32
e
b
"A"
A A2
-CWITH PLATING
6 A1
0.08
C
b
5
3
PACKAGE LQFP 128
c
c1
5
5
BASE
METAL
b1
5
SECTION B-B
Dimension in mm
Symbol
Dimension in inch
Min
Nom
Max
Min
Nom
Max
A
------
------
1.60
------
------
0.063
A1
0.05
------
------
0.002
------
------
A2
1.35
1.40
1.45
0.053
0.055
0.057
b
0.13
0.18
0.23
0.005
0.007
0.009
b1
0.13
0.16
0.19
0.005
0.006
0.007
c
0.09
------
0.20
0.004
------
0.008
c1
0.09
------
0.16
0.004
------
0.006
D
15.85
16.00
16.15
0.624
0.630
0.636
D1
13.90
14.00
14.10
0.547
0.551
0.555
E
15.85
16.00
16.15
0.624
0.630
0.636
E1
13.90
14.00
14.10
0.547
0.551
0.555
e
L
0.40 BSC
0.45
L1
0.60
0.016 BSC
0.75
0.018
1.00 REF
0.024
0.030
0.039 REF
R1
0.08
------
------
0.003
------
------
R2
0.08
------
0.20
0.003
------
0.008
S
0.20
------
------
θ
0°
3 .5 °
θ1
0°
------
0.008
------
7°
0°
3 .5 °
------
0°
------
θ2
12 ° TYP
12 ° TYP
θ3
12 ° TYP
12 ° TYP
-31-
-----
7°
------
Ver. 0.1
07/04/01
TC5299J
Notice
This document contains information on product, which is in the development phase. TMI reserves the rights to change
specifications, features, functions and availability of the product without notice.
TMI devices are NOT designed, intended, authorized, or warranted to be suitable for use in Life-Supporting
applications.
-32-
Ver. 0.1
07/04/01