SAMSUNG S5N8947

S5N8947X
MCU for ADSL/Cable Modem
(Revision 0.1)
May. 23, 2000
SAMSUNG ELECTRONICS PROPRIETARY
Copyright ©1999-2000 Samsung Electronics, Inc. All Rights Reserved
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
CONTENTS
1.
GENERAL DESCRIPTION ................................................................................................................................4
2.
FEATURES ..........................................................................................................................................................5
3.
FUNCTIONAL BLOCK DESCRIPTIONS.........................................................................................................6
3.1.
3.2.
3.3.
3.4.
3.5.
3.6.
3.7.
3.8.
3.9.
3.10.
3.11.
3.12.
3.13.
3.14.
4.
PIN DESCRIPTIONS......................................................................................................................................... 10
4.1.
4.2.
4.3.
5.
PIN CONFIGURATION .................................................................................................................................. 10
PIN DESCRIPTIONS ..................................................................................................................................... 11
PIN DESCRIPTIONS WITH THE PIN NUMBER AND PAD TYPE ............................................................................ 13
OPERATION DESCRIPTION .......................................................................................................................... 16
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
6.
BLOCK DIAGRAM .........................................................................................................................................6
ARCHITECTURE............................................................................................................................................7
SYSTEM MANAGER ......................................................................................................................................7
UNIFIED INSTRUCTION/DATA CACHE ............................................................................................................7
SAR/UTOPIA INTERFACE ..............................................................................................................................7
ETHERNET MAC..........................................................................................................................................7
USB CONTROLLER ......................................................................................................................................8
DMA CONTROLLER .....................................................................................................................................8
UART (SERIAL I/O).....................................................................................................................................8
TIMERS ....................................................................................................................................................8
PROGRAMMABLE I/O................................................................................................................................8
INTERRUPT CONTROLLER .........................................................................................................................8
I2C SERIAL INTERFACE .............................................................................................................................9
PLL (FOR SYSTEM/USB) ..........................................................................................................................9
CPU CORE OVERVIEW ............................................................................................................................... 16
INSTRUCTION SET ...................................................................................................................................... 17
OPERATING STATES............................................................................................................................. 17
OPERATING MODES ............................................................................................................................. 18
REGISTERS............................................................................................................................................. 18
EXCEPTIONS.......................................................................................................................................... 18
HARDWARE STRUCTURE ............................................................................................................................. 20
6.1.
6.1.3.
6.1.4.
6.1.5.
6.2.
6.3.
6.4.
6.4.1.
6.4.2.
6.5.
6.5.1.
6.5.2.
6.6.
6.6.1.
6.7.
6.8.
6.9.
SYSTEM MANAGER .................................................................................................................................... 20
Overview ......................................................................................................................................... 20
System Manager Registers............................................................................................................... 20
System Memory Map ....................................................................................................................... 21
INSTRUCTION / DATA CACHE ...................................................................................................................... 23
I2C BUS CONTROLLER................................................................................................................................ 24
ETHERNET CONTROLLER ............................................................................................................................ 25
Block Diagram ................................................................................................................................ 25
Features and Benefits...................................................................................................................... 25
SAR AND UTOPIA INTERFACE ..................................................................................................................... 27
Block Diagram ................................................................................................................................ 27
Features and Benefits...................................................................................................................... 27
USB CONTROLLER .................................................................................................................................... 28
Block Diagram ................................................................................................................................ 28
DMA CONTROLLER ................................................................................................................................... 29
UART(SERIAL I/O).................................................................................................................................... 30
TIMERS...................................................................................................................................................... 31
MagIC Team
Page : 2
SAMSUNG ELECTRONICS
ELECTRONICS
6.10.
6.11.
S5N8947 (ADSL/Cable Modem MCU)
I/O PORTS..............................................................................................................................................32
INTERRUPT CONTROLLER........................................................................................................................33
7.
SPECIAL FUNCTION REGISTERS ................................................................................................................34
8.
ELECTRIC CHARACTERISTICS ...................................................................................................................37
8.1.
8.2.
8.3.
8.4.
9.
ABSOLUTE MAXIMUM RATINGS........................................................................................................37
RECOMMENDED OPERATING CONDITIONS ...................................................................................................37
DC ELECTRICAL CHARACTERISTICS ................................................................................................38
A.C ELECTRICAL CHARACTERISTICS ...........................................................................................................39
PACKAGE DIMENSION ..................................................................................................................................48
SAMSUNG ELECTRONICS
Page : 3
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
1. GENERAL DESCRIPTION
Samsung's S5N8947 16/32-bit RISC microcontroller is a cost-effective, high-performance
microcontroller solution. The S5N8947 is designed as an integrated Ethernet controller for use in managed
communication hubs and routers. The S5N8947 also provides ATM Layer SAR (Segmentation and
Reassembly) function with UTOPIA interface and the full-rate USB (Universal Serial Bus) function.
The S5N8947 is built around an outstanding CPU core: the 16/32-bit ARM7TDMI RISC processor
designed by Advanced RISC Machines, Ltd. The ARM7TDMI core is a low-power, general purpose,
microprocessor macro-cell that was developed for use in application-specific and custom-specific
integrated circuits. Its simple, elegant, and fully static design is particularly suitable for cost-sensitive and
power-sensitive applications.
Important peripheral functions including an UART channel, 2-channel GDMA, two 32-bit timers, I2C bus
controller, and programmable I/O ports are supported. Built-in logic including an interrupt controller,
DRAM controller, and a controller for ROM/SRAM and flash memory are also supported. The
S5N8947’s System Manager includes an internal 32-bit system bus arbiter and an external memory
controller.
To reduce total system cost, the S5N8947 offers a unified cache, Ethernet controller, SAR and USB. Most
of the on-chip function blocks have been designed using an HDL synthesizer and the S5N8947 has been
fully verified in Samsung's state-of-the-art ASIC test environment.
MagIC Team
Page : 4
SAMSUNG ELECTRONICS
ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
2. FEATURES
ü 4-Kbyte unified cache
ü SAR (Segmentation and Reassembly)
ü UTOPIA (the Universal Test & Operations PHY Interface for ATM) Level 2 Interface
ü Ethernet MAC
ü Full-rate USB controller
ü 2-CH GDMA (General Purpose Direct Memory Access)
ü UART (Universal Asynchronous Receiver and Transmtter)
ü 2 programmable 32bits Timers
ü 18 Programmable I/O ports
ü Interrupt controller
ü I2C controller
ü Built-in PLLs for System/USB
ü Cost effective JTAG-based debug solution
ü Boundary scan
ü Operating Voltage Range(2.5V +/- 0.2V)
ü Operating Frequency Up to 50MHz
ü
208 TQFP Package
SAMSUNG ELECTRONICS
Page : 5
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
3. FUNCTIONAL BLOCK DESCRIPTIONS
3.1. Block Diagram
ARM7TDMI
32bit RISC CPU
4-Bank
ROM
SRAM
FLASH
ICE
Breaker
32-bit
System
Bus
CPU Interface
4-Bank
DRAM
Memory
Controller
with
Refresh
Control
4-Bank
External
I/O
Device
Unified
CACHE
4-word
Write
Buffer
External
Bus
Master
System Bus
Arbiter
Connection
Memory
Bus Router
General I/O Ports
SAR/UTOPIA
Interrupt Controller
Ethernet MAC
UART
USB Interface
32bit Timer 0, 1
PLL* (USB)
X'tal Osc
GDMA 0, 1
PLL* (System)
IIC Controller
TAP Controller for JTAG
Figure 1 Top Block Diagram
MagIC Team
Page : 6
SAMSUNG ELECTRONICS
ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
3.2. Architecture
Integrated system for embedded Ethernet / USB / SAR
Fully 16/32-bit RISC architecture
Efficient and powerful ARM7TDMI core
Little/Big-Endian mode is supported basically, but the internal architecture is big-endian.
Cost-effective JTAG-based debug solution
Supports Boundary Scan
3.3. System Manager
8/16/32-bit external bus support for ROM/SRAM, flash memory, DRAM and external I/O
One external bus master with bus request/acknowledge pins
Supports for EDO/normal or SDRAM
Programmable access cycle
Four-word depth write buffer
Cost-effective memory-to-peripheral DMA interface
3.4. Unified Instruction/Data Cache
Two-way set-associative unified cache (4Kbytes)
Supports for LRU (least recently used) Protocol
Cache is configurable as internal SRAM
3.5. SAR/Utopia Interface
Directly supports ATM Adaptation Layer Five (AAL5) Segmentation And Reassembly
Segments and reassembles data up to 70Mbps
A glueless UTOPIA level 2 interface is supprted (for receiving and transmitting ATM cells with SAR, it
is a standard ATM interface between ATM link and physical layer).
3.6. Ethernet MAC
2 DMA engines with burst mode
Full compliance with IEEE standard 802.3
Supports MII interface (7-wire 10-Mbps interface is also supported).
SAMSUNG ELECTRONICS
Page : 7
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
3.7. USB Controller
Supports 12Mbps full rate function for universal serial bus
3.8. DMA Controller
2-channel general purpose DMA (for memory-to-memory, memory-to-USB, USB-to-memory, UARTto-memeory, memory-to-UART data transfers without CPU intervention)
Initiated by a software or a external DMA request
Increments or decrements source or destination address in 8-bit, 16-bit or 32-bit data transfers
3.9. UART (Serial I/O)
UART (Serial I/O) block with DMA-based or interrupt-based operation
Supports for 5-bit, 6-bit, 7-bit, or 8-bit serial data transmit and receive
Programmable baud rates
Infra-red (IR) TX/RX support (IrDA)
3.10. Timers
Two programmable 32-bit timers
Interval mode or toggle mode operation
Supports a watchdog timer.
3.11. Programmable I/O
18 programmable I/O ports
Pins individually configurable to input, output, or I/O mode for dedicated signals
3.12. Interrupt Controller
18 interrupt sources, including 4 external interrupt sources
Normal or fast interrupt mode (IRQ, FIQ)
Prioritized interrupt handling
MagIC Team
Page : 8
SAMSUNG ELECTRONICS
ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
3.13. I2C Serial Interface
Single Master mode operation only
3.14. PLL (for System/USB)
The external clock can be multiplied by on-chip PLLs to provide high frequency System/USB clock
The input frequency is fixed to 12 MHz
The output frequency is 4.167 times the input clock for System.
The output frequency is 4 times the input clock for USB.
SAMSUNG ELECTRONICS
Page : 9
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
4. PIN DESCRIPTIONS
S5N8947
208-TQFP-2828
(Top View)
VSS
VDD
XDATA[19]
XDATA[18]
XDATA[17]
XDATA[16]
XDATA[15]
XDATA[14]
XDATA[13]
XDATA[12]
XDATA[11]
XDATA[10]
XDATA[9]
XDATA[8]
XDATA[7]
XDATA[6]
VSS
VDD
XDATA[5]
XDATA[4]
XDATA[3]
XDATA[2]
XDATA[1]
XDATA[0]
ADDR[21]
ADDR[20]
ADDR[19]
ADDR[18]
ADDR[17]
ADDR[16]
ADDR[15]
ADDR[14]
ADDR[13]
VSS
VDD
ADDR[12]
ADDR[11]
ADDR[10]
ADDR[9]
ADDR[8]
ADDR[7]
ADDR[6]
ADDR[5]
ADDR[4]
ADDR[3]
ADDR[2]
ADDR[1]
ADDR[0]
nWBE[3]
nWBE[2]
VSS
VDD
VDD
VSS
OSC_XIN
OSC_XO
XCLK_I
VSS
FILTER_S
VDDA_S
VSSA_S
FILTER_U
VDDA_U
VSSA_U
nTRST
TDI
TDO
TMS
TCK
CLKOEN
MCLKO
VDD
VSS
nRESET
B0SIZE[0]
B0SIZE[1]
ExtMREQ
ExtMACK
BIGEND
nDTACK
nOE
nECS[0]
nECS[1]
nECS[2]
nECS[3]
nRCS[0]
VDD
VSS
nRCS[1]
nRCS[2]
nRCS[3]
nRAS[0]
nRAS[1]
nRAS[2]
nRAS[3]
nCAS[0]
nCAS[1]
nCAS[2]
nCAS[3]
nDWE
nWBE[0]
nWBE[1]
VDD
VSS
VDD
VSS
UTO_RXADR[0]
UTO_RXADR[1]
UTO_RXADR[2]
UTO_RXD[0]
UTO_RXD[1]
UTO_RXD[2]
UTO_RXD[3]
UTO_RXD[4]
UTO_RXD[5]
UTO_RXD[6]
UTO_RXD[7]
UTO_RXSOC
UTO_RXENB
UTO_RXCLAV
UTO_CLK
VDD
VSS
SCL
SDA
UCLK
UARXD
UATXD
nUADTR
nUADSR
MDC
MDIO
COL
RXD[0]
RXD[1]
RXD[2]
RXD[3]
RX_DV
VDD
VSS
RX_CLK
RX_ERR
TX_CLK
TXD[0]
TXD[1]
TXD[2]
TXD[3]
TX_EN
TX_ERR
CRS
USB_DP
USB_DN
TMODE
CLKSEL
VDD
VSS
104
103
102
101
100
99
98
97
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
64
63
62
61
60
59
58
57
56
55
54
53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
VSS
VDD
UTO_TXCLAV
UTO_TXENB
UTO_TXSOC
UTO_TXD[7]
UTO_TXD[6]
UTO_TXD[5]
UTO_TXD[4]
UTO_TXD[3]
UTO_TXD[2]
UTO_TXD[1]
UTO_TXD[0]
UTO_TXADR[2]
UTO_TXADR[1]
UTO_TXADR[0]
VSS
VDD
PP[17]
PP[16]
PP[15]
PP[14]
PP[13]
PP[12]
PP[11]
PP[10]
PP[9]
PP[8]
PP[7]
PP[6]
PP[5]
PP[4]
PP[3]
VSS
VDD
PP[2]
PP[1]
PP[0]
XDATA[31]
XDATA[30]
XDATA[29]
XDATA[28]
XDATA[27]
XDATA[26]
XDATA[25]
XDATA[24]
XDATA[23]
XDATA[22]
XDATA[21]
XDATA[20]
VSS
VDD
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
108
107
106
105
4.1. Pin Configuration
Figure 2 S5N8947 Pin Configuration
MagIC Team
Page : 10
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
4.2. Pin Descriptions
Group
System
Configurations
(9)
TAP
Control
(5)
Memory
Interface
(81)
Ethernet
Controller
(18)
UART
(5)
Pin Name
XCLK_I
MCLKO
CLKSEL
nRESET
CLKOEN
BIGEND
FILTER_S
OSC_XIN
OSC_XO
TMODE
TCK
TMS
TDI
TDO
nTRST
ADDR[21:0]
XDATA[31:0]
nRAS[3:0]
nCAS[3:0]
nDWE
nECS[3:0]
nDTACK
nRCS[3:0]
B0SIZE[1:0]
nOE
nWBE[3:0]
ExtMREQ
ExtMACK
MCD
MDIO
COL/COL_10M
TX_CLK/
TX_CLK_10M
TXD[3:0]/
TXD_10M/
LOOP_10M
TX_EN/
TXEN_10M
TX_ERR/
PCOMP_10M
CRS/CRS_10M
RX_CLK/
RXCLK_10M
RXD[3:0]/
RXD_10M
RX_DV/
LINK_10M
RX_ERR
UCLK
UARXD
UATXD
SAMSUNG ELECTRONICS
Pin
Counts
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
22
32
4
4
1
4
1
4
2
1
4
1
1
1
1
1
I/O
Type
I
O
I
I
I
I
O
I
O
I
I
I
I
O
I
O
I/O
O
O
O
I/O
I
O
I
O
O
I
O
O
I/O
I
1
I
Transmit clk/Transmit clk for 10M.
4
O
Transmit data/Transmit data for 10M.
1
O
Transmit enable/Transmit enable for 10M.
1
O
Transmit error/Packet compression enable for 10M.
1
I
Carrier sense/Carrier sense for 10M.
1
I
Receive clock/Receive clock for 10M.
4
I
Receive data/Receive data for 10M.
1
I
Receive data valid.
1
1
1
1
I
I
I
O
Receive error.
External Clock Input for UART.
UART Receive Data.
UART Transmit Data.
Description
External System Clock Source Input.
System Clock Out.
Clock Frequency Select from the internal PLL.
System Reset, Low Active.
System Clock Out Enable.
Big endian mode select pin.
PLL filter pin for System Clock Generation.
12MHz Reference Clock.
Crystal Clock Output.
Test Mode Enable.
JTAG Test Clock Input.
JTAG Test Mode Select.
JTAG Test Data Input.
JTAG Test Data Output.
JTAG Reset Signal, Low Active.
Address Bus.
External Bidirectional 32bit Data Bus.
Row AddressSstrobe for DRAM, Low Active.
Column Address Strobe for DRAM, Low Active.
Write Enable, Low Active.
External I/O Select, Low Active.
External Data Acknowledge Signal.
ROM/SRAM/Flash Chip Select, Low Active.
Bank 0 Data Bus Size for Boot ROM.
Output Enable, Low Active.
Write Byte Enable, Low Active.
External Master Bus Request.
External Bus Acknowledge.
Management data clock.
Management data I/O.
Collision detected/Collision detected for 10M.
Page : 11
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
General
Purpose
In/Out
Ports
(including
xINTREQ
nXDREQ
nXDACK
TIMER0,1)
(18)
I2 C
(2)
Utopia
(Level 2)
(30)
USB
(3)
ELECTRONICS
nUADTR
nUADSR
1
1
I
O
P[7:0]
8
I/O
General I/O ports for Bi-directional Data Only.
xINTREQ[3:0]
/P[11:8]
4
I/O
External Interrupt Requests/General I/O Ports.
2
I/O
External DMA Requests for GDMA/General I/O Ports.
2
I/O
External DMA Acknowledge from GDMA/General I/O
Ports.
1
I/O
TIMER0 Out/General I/O Port.
1
I/O
TIMER1 Out /General I/O Port.
1
1
3
8
1
1
1
3
8
1
1
1
1
1
1
1
I/O
I/O
O
O
O
O
I
O
I
I
O
I
O
I/O
I/O
O
I2C Serial Clock.
I2C Seral Data.
Transmit Address Bus.
Transmit Data Bus to the ATM PHY.
Start Of Cell Indicator for Transmit Data.
Transmit Data Transfer Enable, Low Active.
Cell Buffer Available for Transmit Data.
Receive Address Bus.
Receive Data Bus from the ATM PHY.
Start Of Cell Indicator for Receive Data.
Receive Data Transfer Enable, Low Active.
Cell Buffer Available for Receive Data.
Transfer/Receive interface byte clock.
USB data D+
USB data DUSB PLL filter pin.
XDREQ[1:0]/
P[13:12]
nXDACK[1:0]/
P[15:14]
TIMER0/
P[16]
TIMER1/
P[17]
SCL
SDA
UTO_TXADR[2:0]
UTO_TXD[7:0]
UTO_TXSOC
UTO_TXENB
UTO_TXCLAV
UTO_TXADR[2:0]
UTO_RXD[7:0]
UTO_RXSOC
UTO_RXENB
UTO_RXCLAV
UTO_CLK
USB_DP
USB_DN
FILTER_U
UART Data Terminal Ready, Low Active.
UART Data Set Ready, Low Active.
Table 1 Signal Pin Descriptions for Each Group
MagIC Team
Page : 12
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
4.3. Pin Descriptions with the Pin number and Pad type
Pin
No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23-24
25
26
27
28
29
30-33
34-39
40-43
44-47
48
49-50
51
52
53
54
55-56
57-69
70
71
72-80
81-86
87
88
89102
103
104
Pin Name
VDD
VSS
OSC_XIN
OSC_XO
XCLK_I
VSS
FILTER_S
VDDA_S
VSSA/VBBA_S
FILTER_U
VDDA_U
VSSA/VBBA_U
nTRST
TDI
TDO
TMS
TCK
CLKOEN
MCLKO
VDD
VSS
nRESET
B0SIZE[0:1]
ExtMREQ
ExtMACK
BIGEND
nDACK
nOE
nECS[0:3]
nRCS[0:3]
nRAS[0:3]
nCAS[0:3]
nDWE
NWBE[0:1]
VDD
VSS
VDD
VSS
NWBE[2:3]
ADDR[0:12]
VDD
VSS
ADDR[13:21]
XDATA[0:5]
VDD
VSS
I/O
Type
Descriptions
ptic
12MHz reference clock
USB crystal clock out
S5N8947 System Source Clock
O
PWR
GND
O
PWR
GND
I
I
O
I
I
I
O
PWR
GND
I
I
I
O
I
I
O
B
O
O
O
O
O
PWR
GND
PWR
GND
O
O
PWR
GND
O
B
PWR
GND
Poa_bb
vdda
vbba
poa_bb
vdda
vssa
pticu
pticu
ptot2
pticu
ptic
ptic
pob8
System PLL filter pin
Analog power for PLL
Analog / bulk ground for PLL
USB PLL filter pin
Analog power for PLL
Analog / bulk ground for PLL
JTAG Not Reset
JTAG Test Data In
JTAG Test Data Out
JTAG Test Mode Select
JTAG Test Clock
Clock Out Enable/Disable
System Clock Out
ptot6
ptbsut6
Address bus
External bidirectional data bus
XDATA[6:19]
B
ptbsut6
External bidirectional data bus
VDD
VSS
PWR
GND
SAMSUNG ELECTRONICS
I
O
I
Pad type
Psoscm2
ptis
ptic
ptic
pob1
pticd
ptic
ptot4
pbct4
ptot4
ptot4
ptot4
ptot4
ptot4
Not Reset
Bank 0 Data Bus Access Size
External Master bus request
External bus Acknowledge
Big endian mode select pin
Not external acknowledge signal
Not output enable
Not external I/O select
Not ROM/SRAM/Flash Chip select
Not Row address strobe for DRAM
Not Column address strobe for DRAM
Not Write Enable
Not Write Byte Enable
ptot4
ptot6
Not Write Byte Enable
Address bus
Page : 13
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
107118
119121
122
123
124138
139
140
141143
144151
152
153
154
155
156
157
158
159161
162169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186189
190
191
192
193
194
195
196199
200
201
202
ELECTRONICS
XDATA[20:31]
B
ptbsut6
P[0:2]
B
ptbst4sm
General I/O ports
VDD_P
VSS_P
PWR
GND
P[3:17]
B
ptbst4sm
General I/O ports
VDD_P
VDD_S
PWR
GND
UTO_TXADR[0:2]
O
UTO_TXD[0:7]
O
pob4
UTO_TXSOC
UTO_TXENB
UTO_TXCLAV
VDD_P
VSS_P
VDD_P
VSS_P
O
O
I
PWR
GND
PWR
GND
pob4
pob4
ptis
vdd3op
vssop
vdd3op
vssop
UTOP_RXADR[0:2]
O
UTO_RXD[0:7]
I
ptis
Data bus for RX
UTO_RXSOC
UTO_RXENB
UTO_RXCLAV
UTO_CLK
VDD_I
VSS_I
SCL
SDA
UCLK
UARXD
UATXD
nUADTR
nUADSR
MDC
MDIO
COL/COL_10M
I
O
I
O
PWR
GND
B
B
I
I
O
I
O
O
O
I
ptic
pob4
ptis
pob4
Start Of Cell for RX
Enable data transfers (active low)
Cell Buffer available
Transfer/Receive interface byte clock
ptbcd4
ptbcd4
ptis
ptic
pob4
ptic
pob4
pob4
ptbbcut4
ptis
RXD[0:3]/RXD_10M
I
ptis
Receive data/Receive data for 10M
RX_DV/LINK_10M
VDD
VSS
RX_CLK/RXCLK_10
M
RX_ERR
TX_CLK/TX_CLK_10
M
TXD[0:3]/TXD_10M/
LOOP_10M
TX_EN/TXEN_10M
TX_ERR/PCOMP_10
M
CRS/CRS_10M
I
PWR
GND
ptis
Receive data valid
I
ptis
Receive clock/Receive clock for 10M
I
ptis
Receive error
I
ptis
Transmit clock/Transmit clock for 10M
O
pob4
Transmit data/Transmit data for 10M
O
pob4
Transmit enable/Transmit enable for 10M
O
pob4
Transmit error/Packet compression enable for 10M
I
ptis
Carrier sense/Carrier sense for 10M
MagIC Team
External bidirectional data bus
Address bus for TX
Data bus for TX
Start Of Cell for TX
Enable data transfers (active low)
Cell Buffer Available
I/O pad power
I/O pad ground
I/O pad power
I/O pad ground
Address bus for RX
I2C serial clock
I2C serial data
UART external clock for UART
UART receive data
UART transmit data
Not UART0 data terminal ready
Not UART0 data set ready
Management data clock
Management data I/O
Collision detected/Collision detected for 10M
Page : 14
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
203
204
205
206
207
208
USB_DP
USB_DN
TMODE
CLKSEL
VDD
VSS
SAMSUNG ELECTRONICS
B
B
I
I
PWR
GND
pbusb1
ptic
ptic
USB data D+
USB data DTest Mode
Clock Out Enable/Disable
Page : 15
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
5. OPERATION DESCRIPTION
5.1. CPU Core Overview
The S5N8947 CPU core is the ARM7TDMI processor, a general purpose, 32-bit microprocessor
developed by Advanced RISC Machines, Ltd. (ARM). The core's architecture is based on Reduced
Instruction Set Computer (RISC) principles. The RISC architecture makes the instruction set and its
related decoding mechanisms simpler and more efficient than those with microprogrammed Complex
Instruction Set Computer (CISC) systems. The resulting benefit is high instruction throughput and
impressive real-time interrupt response. Pipelining is also employed so that all components of the
processing and memory systems can operate continuously. The ARM7TDMI has a 32-bit address bus.
An important feature of the ARM7TDMI processor, and one which differentiates it from the ARM7
processor, is a unique architectural strategy called THUMB. The THUMB strategy is an extension of the
basic ARM architecture and consists of 36 instruction formats. These formats are based on the standard
32-bit ARM instruction set, but have been re-coded using 16-bit wide opcodes.
Address
Register
Address
Incrementer
Register Bank
Instruction
Decoder and
Logic Controll
Multiplier
Barrel
Shifter
32-BIT ALU
Write Data
Register
Instruction
Pipeline and Read
Data Register
Figure 3 ARM7TDMI Core Block Diagram
Because THUMB instructions are one-half the bit width of normal ARM instructions, they produce very high-density
code. When a THUMB instruction is executed, its 16-bit opcode is decoded by the processor into its equivalent instruction in
the standard ARM instruction set. The ARM core then processes the 16-bit instruction as it would a normal 32-bit
instruction. In other words, the THUMB architecture gives 16-bit systems a way to access the 32-bit performance of the ARM
core without incurring the full overhead of 32-bit processing. Because the ARM7TDMI core can execute both standard 32-bit
ARM instructions and 16-bit THUMB instructions, it lets you mix routines of THUMB instructions and ARM code in the
same address space. In this way, you can adjust code size and performance, routine by routine, to find the best programming
solution for a specific application.
MagIC Team
Page : 16
SAMSUNG ELECTRONICS
ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
5.2. Instruction Set
The S5N8947 instruction set is divided into two subsets: a standard 32-bit ARM instruction set and
a 16-bit THUMB instruction set.
The 32-bit ARM instruction set is comprised of thirteen basic instruction types which can be divided
into four broad classes:
l Four types of branch instructions which control program execution flow, instruction privilege levels,
and switching between ARM code and THUMB code.
l Three types of data processing instructions which use the on-chip ALU, barrel shifter, and multiplier
to perform high-speed data operations in a bank of 31 registers (all with 32-bit register widths).
l Three types of load and store instructions which control data transfer between memory locations and
the registers. One type is optimized for flexible addressing, another for rapid context switching, and
the third for swapping data.
l Three types of co-processor instructions which are dedicated to controlling external co-processors.
These instructions extend the off-chip functionality of the instruction set in an open and uniform way.
NOTE : All 32-bit ARM instructions can be executed conditionally.
The 16-bit THUMB instruction set contains 36 instruction formats drawn from the standard 32-bit
ARM instruction set. The THUMB instructions can be divided into four functional groups:
l Four branch instructions.
l Twelve data processing instructions, which are a subset of the standard ARM data processing
instructions.
l Eight load and store register instructions.
l Four load and store multiple instructions.
NOTE : Each 16-bit THUMB instruction has a corresponding 32-bit ARM instruction with the identical
processing model.
The 32-bit ARM instruction set and the 16-bit THUMB instruction sets are good targets for
compilers of many different high-level languages. When assembly code is required for critical code
segments, the ARM programming technique is straightforward, unlike that of some RISC processors
which depend on sophisticated compiler technology to manage complicated instruction interdependencies.
Pipelining is employed so that all parts of the processor and memory systems can operate
continuously. Typically, while one instruction is being executed, its successor is being decoded, and a third
instruction is being fetched from memory.
5.3. OPERATING STATES
From a programmer's point of view, the ARM7TDMI core is always in one of two operating states.
These states, which can be switched by software or by exception processing, are:
l ARM state (when executing 32-bit, word-aligned, ARM instructions), and
l THUMB state (when executing 16-bit, half-word aligned THUMB instructions).
SAMSUNG ELECTRONICS
Page : 17
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
5.4. OPERATING MODES
l
l
l
l
l
l
l
The ARM7TDMI core supports seven operating modes:
User mode: the normal program execution state
FIQ (Fast Interrupt Request) mode: for supporting a specific data transfer or channel process
IRQ (Interrupt ReQuest) mode: for general purpose interrupt handling
Supervisor mode: a protected mode for the operating system
Abort mode: entered when a data or instruction pre-fetch is aborted
System mode: a privileged user mode for the operating system
Undefined mode: entered when an undefined instruction is executed
Operating mode changes can be controlled by software, or they can be caused by external interrupts
or exception processing. Most application programs execute in User mode. Privileged modes (that is, all
modes other than User mode) are entered to service interrupts or exceptions, or to access protected
resources.
5.5. REGISTERS
The S5N8947 CPU core has a total of 37 registers: 31 general-purpose 32-bit registers, and 6 status
registers. Not all of these registers are always available. Which registers are available to the programmer at
any given time depends on the current processor operating state and mode.
NOTE : When the S5N8947 is operating in ARM state, 16 general registers and one or two status
registers can be accessed at any time. In privileged mode, mode-specific banked registers are
switched in.
Two register sets, or banks, can also be accessed, depending on the core's current state: the ARM
state register set and the THUMB state register set:
l The ARM state register set contains 16 directly accessible registers: R0-R15. All of these registers,
except for R15, are for general-purpose use, and can hold either data or address values. An additional
(seventeenth) register, the CPSR (Current Program Status Register), is used to store status
information.
l The THUMB state register set is a subset of the ARM state set. You can access eight general
registers, R0-R7, as well as the program counter (PC), a stack pointer register (SP), a link register
(LR), and the CPSR. Each privileged mode has a corresponding banked stack pointer, link register,
and saved process status register (SPSR).
The THUMB state registers are related to the ARM state registers as follows:
l THUMB state R0-R7 registers and ARM state R0-R7 registers are identical
l THUMB state CPSR and SPSRs and ARM state CPSR and SPSRs are identical
l THUMB state SP, LR, and PC map directly to ARM state registers R13, R14, and R15, respectively
In THUMB state, registers R8-R15 are not part of the standard register set. However, you can access
them for assembly language programming and use them for fast temporary storage, if necessary.
5.6. EXCEPTIONS
MagIC Team
Page : 18
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
An exception arises whenever the normal flow of program execution is interrupted. For example,
when processing must be diverted to handle an interrupt from a peripheral. The processor's state just prior
to handling the exception must be preserved so that the program flow can be resumed when the exception
routine is completed. Multiple exceptions may arise simultaneously.
To process exceptions, the S5N8947 uses the banked core registers to save the current state. The
old PC value and the CPSR contents are copied into the appropriate R14 (LR) and SPSR register. The PC
and mode bits in the CPSR are forced to a value which corresponds to the type of exception being
processed.
The S5N8947 core supports seven types of exceptions. Each exception has a fixed priority and a
corresponding privileged processor mode, as shown in following Table
Exception
Mode on Entry
Priority
Reset
Supervisor mode
Data abort
Abort mode
2
FIQ
FIQ mode
3
IRQ
IRQ mode
4
Prefetch abort
Abort mode
5
Undefined instruction
Undefined mode
6
SWI
Supervisor mode
6 (lowest)
1 (highest)
Table 2 S5N8947 CPU Exceptions
SAMSUNG ELECTRONICS
Page : 19
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6. HARDWARE STRUCTURE
6.1. System Manager
6.1.3. Overview
The S5N8947 microcontroller’s System Manager has the following functions.
l
l
l
l
l
To arbitrate system bus access requests from several master blocks, based on fixed priorities.
To provide the required memory control signals for external memory accesses. For example, if a
master block such as the DMA controller or the CPU generates an address which corresponds to a
DRAM bank, the System Manager’s DRAM controller generates the required normal/EDO or
SDRAM access signals. The interface signals for normal/EDO or SDRAM can be switched by
SYSCFG[31].
To provide the required signals for bus traffic between the S5N8947 and ROM/SRAM and the
external I/O banks.
To compensate for differences in bus width for data flowing between the external memory bus and the
internal data bus.
To support both little and big endian for external memory or I/O devices. Internal registers, however,
operate under big-endian mode.
Note : By generating an external bus request (ExtMREQ), an external device can access the S5N8947’s
external memory. The S5N8947 can access slow external devices using a nDTACK signal. The DTACK
signal, which is generated by the external device, extends the duration of the CPU’s memory access cycle
beyond its programmable value.
6.1.4. System Manager Registers
To control external memory operations, the System Manager uses a dedicated set of special registers.
By programming the values in the System Manager special registers, you can specify such things as :
l
l
l
l
l
Memory type
External bus width access cycle
Control signal timing (RAS and CAS, for example)
Memory bank locations
Size of each memory bank to be used for arbitrary address spacing
The System Manager uses special register setting to control the generation and processing of the
control signals, addresses, and data that are required by external devices in a standard system
configuration. Special registers are also used to control access to ROM/SRAM/Flash banks, up to four
DRAM banks and four external I/O banks, and a special register mapping area.
MagIC Team
Page : 20
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
The address resolution for each memory bank base pointer is 64 Kbytes (16 bits). The base address
pointer is 10 bits. This gives a total addressable memory bank space of 16 M words.
0x3FFFFFF
Reserved
Special Register bank
16 K words (Fixed)
Internal SRAM
4 K bytes (Fixed)
External I/O bank 3
External I/O bank 2
Continuous 16 K word space
for 4 external I/O banks
External I/O bank 1
4 K words
(Fixed for all I/O banks)
External I/O bank 0
16 M words
(16 M x 32 bits)
SA[25:0]
DRAM/SDRAM bank 3
DRAM/SDRAM bank 2
DRAM/SDRAM bank 1
DRAM/SDRAM bank 0
ROM/SRAM/Flash bank 3
ROM/SRAM/Flash bank 2
ROM/SRAM/Flash bank 1
0x0000000
16 K words - 4 M words (32 bits)
ADDR[21:0]
ROM/SRAM/Flash bank 0
Figure 4 S5N8947 System Memory Map
6.1.5. System Memory Map
Followings are several important features to note about the S5N8947 system memory map :
l
The size and location of each memory bank is determined by the register settings for “current bank
base pointer” and “current bank end pointer”. You can use this base/next bank pointer concept to set
up a consecutive memory map. To do this, you set the base pointer of the “next bank” to the same
address as the next pointer of the “current bank”. Please note that when setting the bank control
registers, the address boundaries of consecutive banks must not overlap. This can be applied even if
one or more banks are disabled.
SAMSUNG ELECTRONICS
Page : 21
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
l
l
ELECTRONICS
Four external I/O banks are defined in a continuous address space. A programmer can only set the
base pointer for external I/O bank 0. The start address of external I/O bank 1 is then calculated as the
external I/O bank 0 start address +16 K. Similary, the start address for external I/O bank 2 is the
external I/O bank 0 start address + 32 K, and the start address for external I/O bank 3 is the external
I/O bank 0 start address + 48 K. Therefore, the total consecutive addressable space of the four
external banks is defined as the start address of external I/O bank 0 + 64 K bytes.
Within the addressable space, the start address of each I/O bank is not fixed. You can use bank
control registers to assign a specific bank start address by setting the bank’s base pointer. The address
resolution is 64 K bytes. The bank’s start address is defined as “base pointer << 16” and the bank’s
end address (except for external I/O banks) is “next pointer << 16 – 1”.
After a power-on or system reset, all bank address pointer registers are initialized to their default
values. In this means that a system reset automatically defines ROM bank 0 as a 32-Mbyte space with a
start address of zero. This means that, except for ROM bank 0, all banks are undefined following a system
startup.
The reset value for the next pointer and base pointer of ROM bank 0 are 0x200 and 0x000,
respectively. This means that a system reset automatically defines ROM bank 0 as a 32-Mbyte space with a
start address of zero. This initial definition of ROM bank 0 lets the system power-on or reset operation
pass control to the user-supplied boot code that is stored in external ROM. (This code is located at address
0 in the system memory map.) When the boot code (i.e. ROM program) executes, it performs various
system initialization tasks and reconfigures the system memory map according to the application’s actual
external memory and device configuration.
The initial system memory map following system startup is shown in following :
0x3FFFFFF
Special Function
Registers
0x3FF0000
Undefined Area
0x2000000
64 M Bytes
SA[25:0]
ROM/SRAM/FLASH
Bank 0 Area
(Accessible)
32 M
0x0000000
ROM/SRAM/FLASH
Bank 0 Area
(Accessible)
4 M Address[21:0]
Figure 5 Initial system memory map (After reset)
MagIC Team
Page : 22
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.2. Instruction / Data Cache
The S5N8947 CPU has a unified internal 4-Kbyte instruction/data cache. The cache is configured
using two-way, set-associative addressing. The replacement algorithm is pseudo-LRU (Least Recently
Used). The cache line size is four words (16 bytes). When a miss occurs, four word must be fetched
consecutively from external memory. Typically, RISC processors take advantage of unified
instruction/data caches to improve performance.
31 30 29 28 27 26 25
10 9
4
3
2
1
0
Tag Address (15-bit)
Enable non-cacheable control
100: Set 0 direct access
101: Set 1 direct access
110: TAG direct access
2-bit
6-bit
15
switch
2
15
15
Set 1 Tag
Set 0 Tag
Height = 128
CS
7-bit
Decoder
Tag RAM (32-bit)
Set 1 Icache line = 4 instruction/data (128-bit)
Instr3
Instr2
Instr1
Instr0
Set 0 Icache line = 4 instruction/data (128-bit)
Instr3
Instr2
Instr1
Instr0
7-bit
Height =
128
32-bit
32-bit
2
32
2
(Set 0 Hit)
(Set 1 Hit)
SAMSUNG ELECTRONICS
32
32
Page : 23
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.3. I2C Bus Controller
The S5N8947’s Internal IC bus (I2C-bus) controller has the following important features :
l
l
l
l
It requires only two bus lines, a serial data line (SDA) and a serial clock line (SCL). When the I2C-bus
is free, both lines are High level.
Each device that is connected to the bus is software-addressable by a unique address. Slave
relationships on the bus are constant. The bus master can be either a master-transmitter or a masterreceiver. The I2C bus controller supports only single master mode.
It supports 8-bit, bi-directional, serial data transfers.
The number of ICs that you can connect to the same I2C-bus is limited only by the maximum bus
capacitance of 400 pF.
Following figure shows a block diagram of the S5N8947’s I2C-bus controller.
SDA
Data
Control
SCL
SCL
Control
Shift buffer register (IICBUF)
Serial
Clock
Prescaler
System clock (fMCLK)
16
Prescaler register (IICPS)
0
BUSY
COND1 COND0
ACK
LRB
IEN
BF
Control status register (IICCON)
Figure 6 I2C-Bus block diagram
MagIC Team
Page : 24
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.4. Ethernet Controller
The S5N8947 has an Ethernet controller which operates at either 100/10-Mbits per second in halfduplex or full-duplex mode. In half-duplex mode, the controller supports the IEEE 802.3 Carrier Sense
Multiple Access with Collision Detection (CSMA/CD) protocol. In full-duplex mode, it supports the IEEE
802.3 MAC Control Layer, including the Pause operation for flow control.
6.4.1. Block Diagram
BDMA+SBUS I/F
BDMA Tx
Buffer
Controller
32
S
Y
S
T
E
M
BDMA Tx
Buffer
(64 words)
B
D
I
Bus Arbiter/
Controller
32
BDMA Rx
Buffer
Controller
B
U
S
32
BDMA Rx
Buffer
(64 words)
CAM
Contents
Memory
(32-words)
BDMA
control and
status
register
8
32
8
MAX Tx
Buffer
(80 bytes)
MAC
MAX Tx
Buffer
Controller
MAX Rx
Buffer
(16 bytes)
M
I
I
/
10
M
b
p
s
MAX Rx
Buffer
controller
32
32
Address
CAM
Interface
and
comparator
Flow
Controller
CRC
Checker
MAC control
and status
register
7
W
i
r
e
Station
Manager
Figure 7 Ethernet controller block diagram
6.4.2. Features and Benefits
The most important features and benefits of the S5N8947 Ethernet controller are follows :
l
l
l
l
l
l
l
l
l
Cost-effective connection to an external Repeater Interface Controller(RIC)/Ethernet backbone
Buffered DMA (BDMA) engine using Burst mode
BDMA Tx/Rx buffers (256 bytes/256 bytes)
MAC Tx/Rx FIFOs (80 bytes/16 bytes) to support re-transmit after collision without DMA request
and to handle DMA latency
Data alignment logic
Supports for old and new media (compatible with existing 10-Mbit/s networks)
Full IEEE 802.3 compatibility for existing applications
Provides a standard Media Independent Interface (MII)
Provides an external 7-wire interface, also.
SAMSUNG ELECTRONICS
Page : 25
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
l
l
l
l
l
l
l
l
l
l
ELECTRONICS
Station Management (STA) signaling for external physical layer configuration and link negotiation
On-chip CAM (21 addresses)
Full-duplex mode for doubled bandwidth
Pause operation hardware support for full-duplex flow control
Long packet mode for specialized environments
Short packet mode for fast testing
PAD generation for ease of processing and reduced processing time
Support for old and new media : Compatible with existing 100/10Mbit/s networks.
Full IEEE 802.3 compatibility : Compatible with existing hardware and software.
Standard CSMA/CD,Full duplex capability at 100/10 Mbit/s : Increase in data throughput
performance.
MagIC Team
Page : 26
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.5. SAR and Utopia Interface
The S5N8947 provides ATM layer Segmentation and Reassembly (SAR) function over a 8bit
UTOPIA interface. The S5N8947 delivers an integrated solution for performing the SAR tasks required to
communicate over an ATM network. The device translates packet-based data into 53-byte ATM cells that
are asynchronously mapped into various physical media. The S5N8947 can be effectively applied for
equipment requiring an interface between packet-based data and ATM-based networks.
6.5.1. Block Diagram
Reassembler
AAL5, 3/ 4, 0
System
I/F and
FIFOs
Segmentor
AAL5, 3/4, 0
UTOPIA
and
FIFOs
Scheduler
(CBR,UBR,rt-VBR,nrt-VBR)
Registers
Connection Memory
(Internal and/or External)
Figure 8 SAR function block diagram
6.5.2. Features and Benefits
l
l
l
l
l
l
l
l
l
l
l
l
Supports CBR, UBR, rt-VBR and nrt-VBR traffic with rates set on a per-VC or per-VP basis.
Supports AAL0 (raw cells) and AAL5 segmentation and reassembly.
Segments and reassembles data up to about 70M bps via UTOPIA interface.
Generates and verifies CRC-10 for OAM cells and AAL3/4 cells.
Supports concurrent OAM cells and AAL5 cells on each active connection.
Supports simultaneous segmentation and reassembly of up to 32 connections with internal memory
and up to 4K connections with external memory.
On chip 8K bytes SRAM for internal connection memory.
Supports Contents Addressable Memory (CAM) for channel mapping (up to 32 connections).
Supports packet sizes up to 64K bytes.
Supports scatter and gather packet capability for large packets
Start of Packet offset available for ease of implementing bridging and routing between different
protocols.
Provides glue-less UTOPIA level 2 interface (up to 7 PHYs).
SAMSUNG ELECTRONICS
Page : 27
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.6. USB Controller
The Universal Serial Bus (USB) is an industry standard bus architecture for computer peripheral
attachment. The USB provides a single interface for easy, plug-and-play, hot-plug attachment of
peripherals such as keyboard, mouse, speakers, printers, scanners, and communication devices. The USB
allows simultaneous use of many different peripherals with a combined transfer rate of up to 12 Mbit/s.
The S5N8497 controller includes a highly flexible integrated USB peripheral controller that lets
designers implement a variety of microcontroller-based USB peripheral devices for telephony, audio, or
other high-end applications. The S5N8947 controller is intended for USB peripherals that use the fullspeed signalling rate of 12 Mbit/s. The USB low-speed rate (1.5 Mbit/s) is not supported. An integrated
USB transceiver is provided to minimize system device count and cost, but an external transceiver can be
used instead, if required. The USB peripheral controller’s features meet or exceed all of the USB device
class resource requirements defined by the USB specification Version 1.0 and 1.1. Consult the USB
specification for details about overall USB system design. The integrated USB peripheral controller
provides a very efficient and easy-to-use interface, so that device software (or firmware) does not incur the
overhead of managing low-level USB protocol requirements.
The USB peripheral controller hardware implements a number of USB standard commands directly;
the rest can be implemented in device software. In addition, the USB peripheral controller provides a high
degree of flexibility to help designers accommodate vendor- or device-class-specific commands, as well as
any new features that might be added in future USB specifications.
Specialized hardware is provided to support Bulk data transfers. Using the Microcontroller’s DMA
features, large size of bulk transfers from an off-chip peripheral, can be automatically synchronized to the
USB data rate with little or no CPU overhead.
Robust error detection and management features are provided so the device software can manage
transfers in any number of ways as required by the application. The USB suspend/ resume, reset, and
remote wake up features are also supported.
6.6.1. Block Diagram
Serial Interface Unit
(SIE)
Endpoint 0 FIFO
Endpoint 2
16 in FIFO
Endpoint 3
64 out FIFO
Endpoint 4
64 in FIFO
X2
MCU / DMA Interface
HOST
Serial
Interface
Engine
(SIE)
MCU Address Decoder
Endpoint 1
16 out FIFO
X2
Figure 9 USB Module Block Diagram
MagIC Team
Page : 28
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.7. DMA Controller
The S5N8947 has a two-channel general DMA controller, called the GDMA. The two-channel
GDMA performs the following data transfers without CPU intervention:
l Memory-to-memory (memory to/from memory)
l UART-to-memory (serial port to/from memory)
l USB-to-memory (USB port to/from memory)
The on-chip GDMA can be started by software and/or by an external DMA request (nXDREQ).
Software can also be used to restart a GDMA operation after it has been stopped.
The CPU can recognize when a GDMA operation has been completed by software polling and/or
when it receives an appropriate internally generated GDMA interrupt. The S5N8947 GDMA controller
can increment or decrement source or destination addresses and conduct 8-bit (byte), 16-bit (half-word),
or 32-bit (word) data transfers.
System BUS
Mode Selection
GDMA Channel 0
nXDREQ 0
UART
USB
(to Memory)
nDREQ
nDACK
nXDACK 0
GDMA0
Port 14 Data
IOPCON [27:26]
GDMA Channel 1
USB
(from Memory)
nXDREQ 1
nDREQ
nDACK
nXDACK 1
Mode Selection
GDMA1
IOPCON [29:28]
Port 15 Data
Figure 10 GDMA controller block diagram
SAMSUNG ELECTRONICS
Page : 29
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.8. UART(Serial I/O)
The S5N8947 UART (Universal Asynchronous Receiver/Transmitter) unit provides an asynchronous
serial I/O (SIO) port. This can operate in interrupt-based or DMA-based mode. That is, the UART can
generate internal interrupts or DMA requests to transfer data between the CPU and the serial I/O port.
l
l
l
l
l
The most important features of the S5N8947 UART include:
Programmable baud rates
Infra-red (IR) transmit/receive
Insertion of one or two Stop bits per frame
Selectable 5-bit, 6-bit, 7-bit, or 8-bit data transfers
Parity checking
This unit has a baud rate generator, transmitter, receiver, and a control unit, as shown in next figure.
The baud-rate generator can be driven by the internal system clock, MCLK. The transmitter and receiver
block use this baud rate clock and have independent data buffer registers and data shifters.
Transmit data is written first to the transmit buffer register. From there, it is copied to the transmit
shifter and then shifted out by the transmit data pin, UATXDn. Receive data is shifted in by the receive
data pin, UARXDn. It is then copied from the shifter to the receive buffer register when one data byte has
been received.
This unit provides software controls for mode selection, and for status and interrupt generation.
Transmit Buffer Register
(UTXBUFn)
Baud Rate Divisor
(UTBUFn)
Baud Rate Generator
Transmit Shift Register
0
IR Rx
Decoder
UATxDn
1
SYSTEM BUS
Line Control Register
(ULCONn)
UART Control Register
(UCONn)
UART Status Register
(USTATn)
nUADTRn
nUADSRn
Receive Buffer Register
(URXBUFn)
Receive Shift Register
0
1
UARxDn
IR Rx
Decoder
Figure 11 UART block diagram
MagIC Team
Page : 30
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.9. Timers
The S5N8947 has two 32-bit timers. These timers can operate in interval mode or in toggle mode.
The output signals are TOUT0 and TOUT1, respectively.
You enable or disable the timers by setting control bits in the timer mode register, TMOD. An
interrupt request is generated whenever a timer count-out (down count) occurs.
Watchdog timer is also implemented in the S5N8947. The following guidelines apply to watchdog
timer functions:
— When a watchdog timer is enabled, it loads a data value to its count register and begins decrementing
the count register value by the system clock.
— If the reset from the watchdog timer (WDRESET) reaches to zero, the Watchdog will start its reset
sequence. The reset value is then reloaded and the watchdog timer is disabled.
— The WDRESET performs the same function as the External Reset (System Reset) to each block.
32-Bit Timer Data
Register (TDATAn)
Auto
Re-load
fMCLK
TMOD.TEn
32-Bit Timer Count
Register (TCNTn)
[Down Counter]
TMOD.TMDn
TMOD.TCLRn
INTPND and
INTMSK
Interrupt
Request
PND
Pulse
Generator
Port 16, Port 17
Data Out
TOUTn
IOPCON.TOENn
Figure 12 32-bit timer block diagram
SAMSUNG ELECTRONICS
Page : 31
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.10. I/O Ports
The S5N8947 has 18 programmable I/O ports. You can configure each I/O port to input mode,
output mode, or special function mode. To do this, you write the appropriate settings to the IOPMOD and
IOPCON registers. User can set filtering for the input ports using IOPCON register.
The modes of the ports from port0 to port7 are determined only by the IOPMOD register. But
port[11:8] can be used as xINTREQ[3:0], port[13:12] as nXDREQ[1:0], port[15:14] as nXDACK[1:0],
port[16] as TOUT0, or port[17] as TOUT1 depending on the settings in IOPCON register.
IOPMOD
Alternate Functions
Output
Latch
VDD
IOPCON
Port0 - Port7
Port8/xINTREQ0
SYSTEM BUS
IOPDATA
(Write)
IOPDATA
(Read)
Input
Latch
Interrupt or DMA
Request
Port11/xINTREQ3
Port12/nXDREQ0
Port13/nXDREQ1
Port14/nXDACK0
Port15/nXDACK1
Port16/TOUT0
Port17/TOUT1
Active
On/Off &
Edge
Detection
Filter
On/Off
IOPCON
IOPCON
Figure 13 I/O port function diagram
MagIC Team
Page : 32
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
6.11. Interrupt Controller
The S5N8947 interrupt controller has a total of 18 interrupt sources. Interrupt requests can be generated
by internal function blocks and external pins.
The ARM7TDMI core recongnizes two kinds of interrupts: a normal interrupt request (IRQ), and a fast
interrupt request (FIQ). Therefore all S5N8947 interrupts can be categorized as either IRQ or FIQ. The
S5N8947 interrupt controller has an interrupt pending bit for each interrupt source.
Four special registers are used to control interrupt generation and handling:
l Interrupt priority registers. The index number of each interrupt source is written to the pre-defined
interrupt priority register field to obtain that priority. The interrupt priorities are pre-defined from 0 to
17.
l Interrupt mode register. Defines the interrupt mode, IRQ or FIQ, for each interrupt source.
l Interrupt pending register. Indicates that an interrupt request is pending. If the pending bit is set, the
interrupt pending status is maintained until the CPU clears it by writing a "1" to the appropriate
pending register. When the pending bit is set, the interrupt service routine starts whenever the
interrupt mask register is "0". The service routine must clear the pending condition by writing a "1" to
the appropriate pending bit. This avoids the possibility of continuous interrupt requests from the same
interrupt pending bit.
l Interrupt mask register. Indicates that the current interrupt has been disabled if the corresponding
mask bit is "1". If an interrupt mask bit is "0" the interrupt will be serviced normally. If the global
mask bit (bit 18) is set to "1", no interrupts are serviced. However, the source's pending bit is set if the
interrupt is generated. When the global mask bit has been set to "0", the interrupt is serviced.
Index Values
[17]
[16]
[15]
[14]
[13]
[12]
[11]
[10]
[9]
[8]
[7]
[6]
[5]
[4]
[3]
[2]
[1]
[0]
SAMSUNG ELECTRONICS
Interrupt Sources
I2C-bus interrupt
Ethernet controller MAC Rx interrupt
Ethernet controller MAC Tx interrupt
Ethernet controller BDMA Rx interrupt
Ethernet controller BDMA Tx interrupt
SAR Tx/Rx done interrupt
SAR Tx/Rx error interrupt
USB interrupt
GDMA channel 1 interrupt
GDMA channel 0 interrupt
Timer 1 interrupt
Timer 0 interrupt
UART receive and error interrupt
UART transmit interrupt
External interrupt 3
External interrupt 2
External interrupt 1
External interrupt 0
Table 3 S5N8947 Interrupt Sources
Page : 33
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
7. SPECIAL FUNCTION REGISTERS
Group
System
Manager
Ethernet
(BDMA)
Registers
SYSCFG
SYSCON
EXTACON0
EXTACON1
EXTDBWTH
ROMCON0
ROMCON1
ROMCON2
ROMCON3
DRAMCON0
DRAMCON1
DRAMCON2
DRAMCON3
REFEXTCON
BDMATXCON
BDMARXCON
BDMATXPTR
BDMARXPTR
BDMARXLSZ
BDMASTAT
CAM
BDMATXBUF
BDMARXBUF
Ethernet
(MAC)
USB
MagIC Team
MACON
CAMCON
MACTXCON
MACTXSTAT
MACRXCON
MACRXSTAT
STADATA
STACON
CAMEN
EMISSCNT
EPZCNT
ERMPZCNT
ETXSTAT
FA
PM
EI
UI
EIE
UIE
LBFN
Offset
0x0000
0x3000
0x3008
0x300C
0x3010
0x3014
0x3018
0x301C
0x3020
0x3024
0x3028
0x302C
0x3030
0x3034
0x9000
0x9004
0x9008
0x900C
0x9010
0x9014
0x91000x917C
0x92000x92FC
0x98000x99FC
0xA000
0xA004
0xA008
0xA00C
0xA010
0xA014
0xA018
0xA01C
0xA028
0xA03C
0xA040
0xA044
0x9040
0x7000
0x7004
0x7008
0x700C
0x7010
0x7014
0x7018
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
System configuration register
System control register
External I/O timing register 1
External I/O timing register 2
Data bus width for each memory bank
ROM/SRAM/Flash bank 0 control register
ROM/SRAM/Flash bank 1 control register
ROM/SRAM/Flash bank 2 control register
ROM/SRAM/Flash bank 3 control register
DRAM bank 0 control register
DRAM bank 1 control register
DRAM bank 2 control register
DRAM bank 3 control register
Refresh and external I/O control register
Buffered DMA receive control register
Buffered DMA transmit control register
Transmit trame descriptor start address
Receive frame descriptor start address
Receive frame maximum size
Buffered DMA status
CAM content (32 words)
R/W
BDMA Tx buffer (64 words) for test mode Undefined
addressing
BDMA Rx buffer (64 words) for test mode Undefined
addressing
Ethernet MAC control register
0x00000000
CAM control register
0x00000000
MAC transmit control register
0x00000000
MAC transmit status register
0x00000000
MAC receive control register
0x00000000
MAC receive status register
0x00000000
Station management data
0x00000000
Station management control and address
0x00006000
CAM enable register
0x00000000
Missed error count register
0x00000000
Pause count register
0x00000000
Remote pause count register
0x00000000
Transmit control frame status
0x00000000
Function address register
0x00000000
Power management register
0x00000000
Endpoint interrupt register
0x00000000
USB interrupt register
0x00000000
Endpoint interrupt enable register
0x0000001F
USB interrupt enable register
0x00000004
Frame number1 register
0x00000000
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R
R
R
R/W
R/W
R/W
R/W
R/W
R/W
R
Page : 34
Reset/Value
0x23FF0000
0x00000000
0x00000000
0x00000000
0x00000000
0x20000060
0x00000060
0x00000060
0x00000060
0x00000000
0x00000000
0x00000000
0x00000000
0x83FD0000
0x00000000
0x00000000
0x00000000
0x00000000
Undefined
0x00000000
Undefined
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
SAR
HBFN
0x701C
0x7020
IE0M
*E0C
0x7024
*E0BC
0x7028
0x7030
*O1M
0x7034
*O1C1
0x7038
*O1C2
0x703C
*E1BC
0x7040
*I2M
0x7044
*I2C1
0x7048
*I2C2
0x7050
*O3M
0x7054
*O3C1
*O3C2
0x7058
*E3BC
0x705C
*I4M
0x7060
*I4C1
0x7064
*I4C2
0x706C
*PDC
0x7070
*EP0D
0x7100
*EP1D
0x7104
*EP2D
0x7108
*EP3D
0x710C
*EP4D
0x7110
SW_RESET
0x00
GLOBAL_MODE
0x08
TIMEOUT_BASE
0x0C
TX_READY1
0x10
TX_READY2
0x14
TX_DONE_ADDR 0x18
TX_DONE_SIZE
0x1C
RX_POOL0_ADDR 0x20
RX_POOL0_SIZE
0x24
RX_POOL1_ADDR 0x28
RX_POOL1_SIZE
0x2C
RX_POOL2_ADDR 0x30
RX_POOL2_SIZE
0x34
RX_POOL3_ADDR 0x38
RX_POOL3_SIZE
0x3C
RX_DONE0_ADDR 0x40
RX_DONE0_SIZE 0x44
RX_DONE1_ADDR 0x48
RX_DONE1_SIZE 0x4C
UTOPIA_CONFIG 0x50
UTOPIA_TIMEOUT 0x54
CLOCK_RATIO
0x64
DONE_INT_MASK 0x70
ERR_INT_MASK
0x74
DONE_INT_STAT 0x78
ERR_INT_STAT
0x7C
1/R_LOOKUP_TBL 0x80
VP_LOOKUP_TBL 0x84
UBR_SCH_TBL
0x88
CBR_SCH_TBL
0x8C
SAMSUNG ELECTRONICS
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Frame number2 register
Input EP0 MAXP register
EP0 Control register
EP0 Write Byte Counter
EP1 OUT MAXP register
EP1 OUT Control register 1
EP1 OUT Control register 2
EP1 Write Byte Counter
EP2 IN MAXP register
EP2 IN Control register 1
EP2 IN Control register 2
EP3 OUT MAXP register
EP3 OUT Control register 1
EP3 OUT Control register 2
EP3 Write Byte Counter
EP4 IN MAXP register
EP4 IN Control register 1
EP4 IN Control register 2
Power-down Counter Register
EP0 FIFO data register
EP1 FIFO data register
EP2 FIFO data register
EP3 FIFO data register
EP4 FIFO data register
Software reset register
Global mode register
Base multiple for receive packet timeout register
Transmit ready first packet or subpacket address
Transmit ready last packet or subpacket address
Transmit packet done queue base address register
Transmit packet done queue size register
Receive queue 0 base address register
Receive queue 0 size register
Receive queue 1 base address register
Receive queue 1 size register
Receive queue 2 base address register
Receive queue 2 size register
Receive queue 3 base address register
Receive queue 3 size register
Receive packet done queue 0 base address register
Receive packet done queue 0 size register
Receive packet done queue 1 base address register
Receive packet done queue 1 size register
UTOPIA interface configuration register
0x00000000
0x00000000
0x00000000
0x00000000
0x00000001
0x00000000
0x00000000
0x00000000
0x00000001
0x00000000
0x00000000
0x00000004
0x00000000
0x00000000
0x00000000
0x00000004
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00FF7FFF
0x00000000
0x00000000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
0x00C00000
0x00000000
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
UTOPIA interface timeout register
Ratio of SAR clock freq toUNI interface speed
Interrupt mask for done interrupt register
Interrupt mask for error interrupt register
Interrupt status for done interrupt register
Interrupt status for error interrupt register
Base address of 1/Rate lookup table
Base address of VP lookup table
Base address and entry number of UBR schedule
Base address and entry number of CBR schedule
0xFFFFFFFF
0x0000008E
0xFFFFFFFF
0xFFFFFFFF
0x00000000
0x00000000
0x00000000
0x00000200
0x00000300
0x00000380
Page : 35
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
CELL_BUFF
SCH_CONN_TBL
I/O Ports
Interrupt
Controller
I 2C Bus
GDMA
UART
Timers
MagIC Team
0x90
0x94
ELECTRONICS
R/W
R/W
Base address and entry number of cell buffer
Base address and entry number of scheduler
connection table
AAL_CONN_TBL 0x98
R/W
Base address and entry number of AAL
connection table
SAR_CONN_TBL
0x9C
R/W
Base address and entry number of SAR
connection table
CAM_VPVC/CN 0x100-1FC R/W CAM VPCI, VCI and connection number register
CONFIGURATION 0x200 R/W
Clock control and connection memory
configuration register
EXT_CMBASE
0x204 R/W
External connection memory base address register
IOPMOD
0x5000
R/W
I/O port mode register
IOPCON
0x5004
R/W
I/O port control register
IOPDATA
0x5008
R/W
Input port data register
INTMOD
0x4000
R/W
Interrupt mode register
INTPND
0x4004
R/W
Interrupt pending register
INTMSK
0x4008
R/W
Interrupt mask register
INTPRI0
0x400C
R/W
Interrupt priority register 0
INTPRI1
0x4010
R/W
Interrupt priority register 1
INTPRI2
0x4014
R/W
Interrupt priority register 2
INTPRI3
0x4018
R/W
Interrupt priority register 3
INTPRI4
0x401C
R/W
Interrupt priority register 4
INTPRI5
0x4020
R/W
Interrupt priority register 5
INTOFFSET
0x4024
R
Interrupt offset address register
INTPNDPRI
0x4028
R
Interrupt pending priority register
INTPNDTST
0x402C
W
Interrupt pending test register
INTOSET_FIQ 0x4030
R
FIQ interrupt offset register
INTOSET_IRQ 0x4034
R
IRQ interrupt offset register
IICCON
0XF000
R/W
I2C bus control status register
IICBUF
0xF004
R/W
I2C bus shift buffer register
IICPS
0xF008
R/W
I2C bus prescaler register
IICCOUNT
0xF00C
R
I2C bus prescaler counter register
GDMACON0 0xB000
R/W
GDMA channel 0 control register
GDMACON1 0xC000
R/W
GDMA channel 1 control register
GDMASRC0
0xB004
R/W
GDMA source address register 0
GDMADST0
0xB008
R/W
GDMA destination address register 0
GDMASRC1
0xC004
R/W
GDMA source address register 1
GDMADST1
0xC008
R/W
GDMA destination address register 1
GDMACNT0 0xB00C
R/W
GDMA channel 0 transfer count register
GDMACNT1 0xC00C
R/W
GDMA channel 1 transfer count register
ULCON
0xD000
R/W
UART line control register
UCON
0xD004
R/W
UART control register
USTAT
0xD008
R
UART status register
UTXBUF
0xD00C
W
UART transmit holding register
URXBUF
0xD010
R
UART receive buffer register
UBRDIV
0xD014
R/W
Baud rate divisor register
TMOD
0x6000
R/W
Timer mode register
TDATA0
0x6004
R/W
Timer 0 data register
TDATA1
0x6008
R/W
Timer 1 data register
TCNT0
0x600C
R/W
Timer 0 count register
TCNT1
0x6010
R/W
Timer 1 count register
WDCON
0x6014
R/W
Watchdog Timer Control register
WDCNT
0x6018
R
Watchdog Timer Count register
Page : 36
0x00000400
0x00000500
0x00000600
0x00000700
0x00000000
0x00000044
0x00000000
0x00000000
0x00000000
Undefined
0x00000000
0x00000000
0x003FFFFF
0x03020100
0x07060504
0x0B0A0908
0x0F0E0D0C
0x00001110
0x00000000
0x00000054
0x00000000
0x00000000
0x00000054
0x00000054
0x00000000
Undefined
0x00000000
0x00000000
0x00000000
0x00000000
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
0xXXXXXX00
0xXXXXXX00
0xXXXXXXC0
Undefined
Undefined
0xXXXXXX00
0x00000000
0x00000000
0x00000000
0xFFFFFFFF
0xFFFFFFFF
0xFFFFFF00
0xFFFFFFFF
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
8. ELECTRIC CHARACTERISTICS
8.1. ABSOLUTE MAXIMUM RATINGS
Parameter
Supply Voltage
DC input Voltage
DC input current
Symbol
Rating
VDD/VDDA
3.6
VIN
2.5 V I/O
3.6
5 V-tolerant
6.5
Units
V
V
IIN
± 200
mA
Operating temperature
TOPR
0 to 70
ºC
Storage temperature
T STG
– 65 to 150
ºC
Table 4 Absolute Maximum Ratings
8.2. Recommended Operating Conditions
Parameter
Symbol
Supply Voltage
VDD/VDDA
2.3 to 2.7
V
fOSC
12
MHz
External Loop Filter Capacitance
LF
820
pF
Commercial temperature
TA
0 to 70
ºC
Oscillator frequency
Rating
Units
Table 5 Recommaended Operating Conditions
NOTES
ü It is strongly recommended that all the supply pins (VDD/VDDA) be powered from the same source
to avoid power latch-up.
SAMSUNG ELECTRONICS
Page : 37
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
8.3. DC ELECTRICAL CHARACTERISTICS
VDD =2.5V+/-0.2V, VEXT = 5+/-0.25V, TA=-40 to 85 Centigrade (In case of 5V-tolerant I/O)
Parameter
Symbol
Conditions
Min
Typ
Max
Unit
(1)
–
1.7
–
–
V
VIL(1)
–
–
–
0.7
V
Switching threshold
VT
LVCMOS
–
0.5 VDD
–
V
Schmitt trigger positive-going threshold
VT+
LVCMOS
–
–
1.9
–
Schmitt trigger negative-going threshold
VT–
LVCMOS
0.6
–
–
–
High level input current
Input buffer
IIH
VIN = VDD
– 10
–
10
µA
10
25
50
Low level input current
Input buffer
with pull-up
Input buffer ILH
– 10
–
10
– 50
– 25
– 10
High level input voltage
Low level input voltage
High level output voltage
Low level output voltage
LVCMOS
interface
LVCMOS
interface
VIH
VIN = VSS
Input buffer
with pull-up
Type B1 to VOH
B16(2)
Type B1
IOH = – A
Type B2
IOH = – 2 mA
Type B4
IOH = – 4 mA
Type B6
IOH = – 6 mA
Type B1 to VOL
B16(2)
Type B1
Type B2
IOL = – 2 mA
Type B4
IOL = – 4 mA
Type B6
IOL = – 6 mA
–
V
IOL = – A
0.05
V
IOL = – 1 mA
0.5
IOH = – 1 mA
VDD
0.05
1.9
– –
µA
Tri-state output leakage current
IOZ
VOUT = VSS or – 10
VDD
10
µA
Maximum operating current
IDD
VDD = 3.6 V,
fMCLK = 50MHz
55
mA
Table 6 DC Electrical Characteristics
NOTES:
1. All 5V-tolerant input have less than 0.2V hysterisis.
2. Type B1 means 1mA output driver cells, and Type B6/B24 means 6mA/24mA output driver cells.
MagIC Team
Page : 38
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
8.4. A.C Electrical Characteristics
(Ta = -40 to +85 Centigrade, VDD = 2.3V to 2.7V)
Description
Min
Signal Name
Max
tEMz
Memory control signal High-Z time
5.1
tEMRs
ExtMREQ setup time
0
tEMRh
ExtMREQ hold time
3.0
tEMAr
ExtMACK rising edge delay time
12.1
29.3
tEMAf
ExtMACK falling edge delay time
12.3
29.7
tADDRh
Address hold time
8.5
tADDRd
Address delay time
7.08
17.5
tNRCS
ROM/SRAM/Flash bank chip select delay time
5.2
12.4
tNROE
ROM/SRAM or external I/O bank output enable delay
5.7
13.6
tNWBE
ROM/SRAM or external I/O bank write byte enable delay
5.5
13.1
tRDh
Read data hold time
3.0
tWDd
Write data delay time (SRAM or external I/O)
tWDh
Write data hold time (SRAM or external I/O)
9.4
tNRASf
DRAM row address strobe active delay
5.6
13.4
tNRASr
DRAM row address strobe release delay
4.3
16.38
tNCASf
DRAM column address strobe active delay
5.5
13.1
tNCASr
DRAM CAS signal release delay time
4.36
13.1
tNDWE
DRAM bank write enable delay time
5.8
13.9
tNDOE
DRAM bank out enable delay time
5.7
13.6
tNECS
External I/O bank chip select delay time
5.3
12.5
tWDDd
DRAM write data delay time (DRAM)
5.9
14.2
tWDDh
DRAM write data hold time (DRAM)
7.4
tWs
External wait setup time
0
tWh
External wait hold time
3.0
External clock to MCLKO delay time when PLL power-down
5.0
TMCLKOd
10.1
Unit
ns
17.23
12.45
Table 7 AC Electrical Characteristics
SAMSUNG ELECTRONICS
Page : 39
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
Address, Data,
nOE, nWBE, nDWE,
nRCS, nCAS, nRAS
tEMz
tEMRs
tEMRh
ExtMREQ
tEMAr
tEMRf
ExtMACK
Figure 14 External Bus Request Timing
MagIC Team
Page : 40
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
tADDRh
tADDRd
Address
tACS
tNECS
tCOH
tNECS
nECS
tNROE
tNROE
tACC
nOE
tCOS
nWBE
tRDh
Data(R)
tWS
tWH
nEWAIT
tCOH = 0
tCOH = 1
Data Fetch
(tCOH = 0)
Data Fetch
(tCOH = 1)
Figure 15 External I/O Read Timing with nEWAIT (tCOH = 1, tACC = 1, tCOS = 1, tACS = 1)
SAMSUNG ELECTRONICS
Page : 41
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
tADDRh
tADDRd
Address
tACS
tNECS
tCOH
tNECS
nECS
tNROE
tNROE
nWBE
tRDh
Data(W)
tWS
tWH
nEWAIT
tCOH = 0
Data Fetch
(tCOH = 0)
tCOH = 1
Data Fetch
(tCOH = 1)
Figure 16 External I/O Write Timing with nEWAIT (tCOH = 1, tACC = 1, tCOS = 1, tACS = 1)
MagIC Team
Page : 42
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
tADDRh
tADDRd
tNRCS
tNRCS
Address
nRCS
tACC
tNROE
tNROE
nOE
tRDh
Data(R)
Figure 17 ROM/SRAM/Flash Read Access Timing
XCLK
tADDRh
tADDRd
tNRCS
tNRCS
Address
nRCS
tACC
tNRWE
tNRWE
nWBE
tWDd
tWDh
Data(W)
Figure 18 ROM/SRAM/Flash Write Access Timing
SAMSUNG ELECTRONICS
Page : 43
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
tNRASr
tRP
tNRASf
nRAS
tRC
tCS
tCP
tCS
nCAS
tADDRd
tNCASf
tNCASw
Address
Row Address
tNCASr tNCASf
Column Address
tNCASr
Column Address
tNDWE
tNDOE
tADDRh
nOE
tWDDh
EDO
Data(R)
Fetch time
(EDO DRAM)
Fetch time
(EDO DRAM)
Figure 19 EDO/FP DRAM Bank Read Timing (Page Mode)
MagIC Team
Page : 44
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
XCLK
tNRASr
tRP
tNRASf
nRAS
tRC
tCS
tCP
tCS
nCAS
tNCASf
tADDRd
tNCASw
Address
Row
Address
tNDWE
tNCAS
r
tNCAS
f
Column
Address
tNCAS
r
Column
Address
tADDR
h
tNDWE
nDWE
tWDDd
tWDDh
tWDDh
Data(W)
tWDDd
Figure 20 EDO/FP DRAM Bank Write Timing (Page Mode)
Timing Parameters for MII Transactions
The timing diagrams in this section conform to the guidelines described in the "Draft Supplement to ANSI/IEEE Std. 802.3,
Section 22.3, Signal Characteristics."
Tx_clk
0ns MIN, 25ns MAX
TxD[3:0]
Tx_en
Figure 21 Transmit Signal Timing Relationship at MII
Rx_clk
10ns MIN
RxD[3:0],
Rx_DV,
Rx_er
10ns MIN
INPUT VALID
Figure 22 Receive Signal Timing Relationship at MII
SAMSUNG ELECTRONICS
Page : 45
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
7 Cycles
7 Cycles
MDC
0ns MIN, 300ns MAX
MDIO
Figure 23 MDIO Sourced by PHY
MDC
10ns MIN
MDIO
10ns MIN
INPUT VALID
Figure 24 MDIO Sourced by STA
Timing Parameters for UTOPIA, An ATM-PHY Interface Specification
The AC characteristics are based on the timing specification for the receiver side pof a signal. The setup and hold times are
defined with regard to a positive clock edge (see Figure 25). Tacking the actual used clock frequency into account (e.g. up to
the max. frequency), the corresponding (min. and max.) transmit side “clock to output” propagation delay specifications can
be derived. The timing references (tT5 to tT12) are according to Table 8 and 9.
Clock
Signal
tT5, tT7
Input setup to clock
tT6, tT8
Input hold from clock
Figure 25 Aetup and hold time definition (single- and multi-PHY)
Figure 26 shows the tri-state timing for the multi-PHY application (multiple PHY devices, multiple output signals are
multiplexed together).
Clock
Signal going low
impedance to clock
Signal going high
impedance to clock
tT9
tT10
Signal
tT11
tT12
Signal going low
impedance from clock
Signal going high
impedance from clock
Figure 26 Tri-state timing (multi-PHY, multiple devices only)
In the following Tables, A⇒P (column DIR, direction) defines a signal from the ATM layer (transmitter, driver) to the PHY
layer (receiver), A⇐P defines a signal from the PHY layer (transmitter, driver) to the ATM layer (receiver).
MagIC Team
Page : 46
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
Signal Name
DIR
Item
TxClk
A⇒P
f1
TxClk frequency (nominal)
tT2
TxClk duty cycle
tT3
TxData[7:0], TxPrty, TxSOC,
TxEnb*, TxAddr[4:0]
A⇒P
TxFull*/TxClav[3:0]
A⇐P
Description
Min
Max
0
33MHz
40%
60%
TxClk peak-to-peak jitter
-
5%
tT4
TxClk rise/fall time
-
3ns
tT5
Input setup to TxClk
8ns
-
tT6
Input hold from TxClk
1ns
-
tT7
Input setup to TxClk
8ns
-
tT8
Input hold from TxClk
1ns
-
tT9
Signal going low impedance to TxClk
8ns
-
tT10 Signal going high impedance to TxClk
0ns
-
tT11 Signal going low impedance from TxClk
1ns
-
tT12 Signal going high impedance from TxClk
1ns
-
Min
Max
0
33MHz
40%
60%
Table 8 Transmit timing (8-bit data bus, N33MHz at cell interface, multi-PHY)
Signal Name
DIR
Item
RxClk
A⇒P
f1
RxClk frequency (nominal)
tT2
RxClk duty cycle
tT3
RxClk peak-to-peak jitter
-
5%
tT4
RxClk rise/fall time
-
3ns
tT5
Input setup to RxClk
8ns
-
tT6
Input hold from RxClk
1ns
-
tT7
Input setup to RxClk
8ns
-
tT8
Input hold from RxClk
1ns
-
tT9
Signal going low impedance to RxClk
8ns
-
tT10 Signal going high impedance to RxClk
0ns
-
tT11 Signal going low impedance from RxClk
1ns
-
tT12 Signal going high impedance from RxClk
1ns
-
RxEnb*, RxAddr[4:0]
RxData[7:0], RxPrty, RxSOC,
RxEmpty*/RxClav[3:0]
A⇒P
A⇐P
Description
Table 9 Receive timing (8-bit data bus, N33MHz at cell interface, multi-PHY)
SAMSUNG ELECTRONICS
Page : 47
MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
9. PACKAGE DIMENSION
This section describes the mechanical data for the S5N8947 208-pin TQFP package.
208-TQFP-2828 PACKAGE DIMENSIONS
Figure 27 208-TQFP-2828 Package Dimensions
MagIC Team
Page : 48
SAMSUNG ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
Revision History
Revision
No.
0.1
Date
Description
2000-05-23
S5N8947X (Rev.0.1) Released.
IMPORTANT NOTICE
The information furnished by Samsung Electronics in this document is belived to be accurate and
reliable. However, no resposibility is assumed by Samsung Electronics for its use, nor for any
infringements of patents or other rights of third parties resulting from its use. No license is granted
under any patents or patent rights of Samsung Electronics. Samsung Electronics reserves the right to
make changes to its products or to discontinue any semiconductor product or service without notice,
and advises its customers to obtain the latest version of relevant information to verify, before placing
orders, that the information being relied on is current and complete.
For More Information
Tel: (82)-(31)-209-8301, Fax: (82)-(31)-209-8309
E-mail: [email protected]
http://www.intl.samsungsemi.com
Copyright ©2000 Samsung Electronics, Inc. All Rights Reserved
SAMSUNG ELECTRONICS
Page : 49
MagIC Team