3.13.I2C SERIAL INTERFACE.............................................................................................................................9
5.2.INSTRUCTION SET ......................................................................................................................................17
6.2.INSTRUCTION / DATA CACHE......................................................................................................................23
6.3.I2C BUS CONTROLLER................................................................................................................................24
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
ICE
Breaker
4-Bank
ROM
SRAM
FLASH
CPU Interface
Bus Router
General I/O Ports
Interrupt Controller
UART
Unified
CACHE
4-word
Write
Buffer
32-bit
System
Bus
Memory
Controller
with
Refresh
Control
System Bus
Arbiter
Connection
Memory
SAR/UTOPIA
Ethernet MAC
USB Interface
4-Bank
DRAM
4-Bank
External
I/O
Device
External
Bus
Master
MagIC Team Page : 6 SAMSUNG ELECTRONICS
32bit Timer 0, 1
GDMA 0, 1
IIC Controller
PLL* (USB)
PLL* (System)
TAP Controller for JTAG
Figure 1 Top Block Diagram
X'tal Osc
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.
2I/OExternal DMA Requests for GDMA/General I/O Ports.
2I/O
1I/OTIMER0 Out/General I/O Port.
1I/OTIMER1 Out /General I/O Port.
SCL1I/OI2C Serial Clock.
SDA1I/OI2C Seral Data.
UTO_TXADR[2:0]3OTransmit Address Bus.
UTO_TXD[7:0]8OTransmit Data Bus to the ATM PHY.
UTO_TXSOC1OStart Of Cell Indicator for Transmit Data.
UTO_TXENB1OTransmit Data Transfer Enable, Low Active.
UTO_TXCLAV1ICell Buffer Available for Transmit Data.
UTO_TXADR[2:0]3OReceive Address Bus.
UTO_RXD[7:0]8IReceive Data Bus from the ATM PHY.
UTO_RXSOC1IStart Of Cell Indicator for Receive Data.
UTO_RXENB1OReceive Data Transfer Enable, Low Active.
UTO_RXCLAV1ICell Buffer Available for Receive Data.
UTO_CLK1OTransfer/Receive interface byte clock.
USB_DP1I/OUSB data D+
USB_DN1I/OUSB data DFILTER_U1OUSB PLL filter pin.
External DMA Acknowledge from GDMA/General I/O
Ports.
Table 1 Signal Pin Descriptions for Each Group
MagIC Team Page : 12 SAMSUNG ELECTRONICS
ELECTRONICS
S5N8947 (ADSL/Cable Modem MCU)
4.3. Pin Descriptions with the Pin number and Pad type
Pin
No
1VDD
2VSS
3OSC_XINI12MHz reference clock
4OSC_XOO
5XCLK_IIpticS5N8947 System Source Clock
6VSS
7FILTER_SOPoa_bbSystem PLL filter pin
8VDDA_SPWRvddaAnalog power for PLL
9VSSA/VBBA_SGNDvbbaAnalog / bulk ground for PLL
10FILTER_UOpoa_bbUSB PLL filter pin
11VDDA_UPWRvddaAnalog power for PLL
12VSSA/VBBA_UGNDvssaAnalog / bulk ground for PLL
13nTRSTIpticuJTAG Not Reset
14TDIIpticuJTAG Test Data In
15TDOOptot2JTAG Test Data Out
16TMSIpticuJTAG Test Mode Select
17TCKIpticJTAG Test Clock
18CLKOENIpticClock Out Enable/Disable
19MCLKOOpob8System Clock Out
20VDDPWR
21VSSGND
22nRESETIptisNot Reset
23-24B0SIZE[0:1]IpticBank 0 Data Bus Access Size
25ExtMREQIpticExternal Master bus request
26ExtMACKOpob1External bus Acknowledge
27BIGENDIpticdBig endian mode select pin
28nDACKIpticNot external acknowledge signal
29nOEOptot4Not output enable
30-33nECS[0:3]Bpbct4Not external I/O select
34-39nRCS[0:3]Optot4Not ROM/SRAM/Flash Chip select
40-43nRAS[0:3]Optot4Not Row address strobe for DRAM
44-47nCAS[0:3]Optot4Not Column address strobe for DRAM
48nDWEOptot4Not Write Enable
49-50NWBE[0:1]Optot4Not Write Byte Enable
51VDDPWR
52VSSGND
53VDDPWR
54VSSGND
55-56NWBE[2:3]Optot4Not Write Byte Enable
57-69ADDR[0:12]Optot6Address bus
70VDDPWR
71VSSGND
72-80ADDR[13:21]Optot6Address bus
81-86XDATA[0:5]Bptbsut6External bidirectional data bus
87VDDPWR
88VSSGND
89102
103VDDPWR
104VSSGND
Pin Name
XDATA[6:19]Bptbsut6External bidirectional data bus
I/O
Type
Pad typeDescriptions
Psoscm2
USB crystal clock out
SAMSUNG ELECTRONICS Page : 13 MagIC Team
S5N8947 (ADSL/Cable Modem MCU)
ELECTRONICS
107-
118
119-
121
XDATA[20:31]Bptbsut6External bidirectional data bus
P[0:2]Bptbst4smGeneral I/O ports
122VDD_PPWR
123VSS_PGND
124-
138
P[3:17]Bptbst4smGeneral I/O ports
139VDD_PPWR
140VDD_SGND
141-
143
144-
151
UTO_TXADR[0:2]OAddress bus for TX
UTO_TXD[0:7]Opob4Data bus for TX
152UTO_TXSOCOpob4Start Of Cell for TX
153UTO_TXENBOpob4Enable data transfers (active low)
154UTO_TXCLAVIptisCell Buffer Available
155VDD_PPWRvdd3opI/O pad power
156VSS_PGNDvssopI/O pad ground
157VDD_PPWRvdd3opI/O pad power
158VSS_PGNDvssopI/O pad ground
159-
161
162-
169
UTOP_RXADR[0:2]OAddress bus for RX
UTO_RXD[0:7]IptisData bus for RX
170UTO_RXSOCIpticStart Of Cell for RX
171UTO_RXENBOpob4Enable data transfers (active low)