The DS80C400 is a fast 8051-compatible
microcontroller that executes instructions up to three
times faster than an original 8051 at the same crystal
speed. Its maximum system-clock frequency of
75MHz results in a minimum instruction cycle time
of 54ns. Access to large program or data memory
areas is simplified with a 24-bit addressing scheme
that supports up to 16MB of flat memory. To
accelerate data transfers between the microcontroller
and the 16MB memory map, the DS80C400 provides
four data pointers, each of which can be configured
to automatically increment or decrement upon
execution of certain data pointer-related instructions.
The mircocontroller’s hardware math accelerator
further increases the speed of 32-bit and 16-bit
multiply and divide operations as well as high-speed
shift, normalization, and accumulate functions.
PIN CONFIGURATION
10
1
7
6
7
FEATURES
§High-Performance Architecture
-Single 8051 instruction cycle in 54ns
-DC to 75MHz clock rate
-Flat 16MB address space
-Four data pointers with auto-increment/
decrement and select-accelerate data movement
-16/32-bit math accelerator
§Multitiered Networking and I/O
-10/100 Ethernet media access controller (MAC)
-CAN 2.0B controller
-1-Wire
-Three full-duplex hardware serial ports
-Up to eight bidirectional 8-bit ports (64 digital
I/O pins)
§Robust ROM Firmware
-Supports network boot over Ethernet using
DHCP and TFTP
Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device
may be simultaneously available through various sales channels. For information about device errata, click here: www.maxim-ic.com/errata.
LQFP
5
1
5
1 of 125100902
§Industrial Control/Automation
§Vending
§Data Converters (Serial-to-Ethernet)
§Data Collection Equipment
§Environmental Monitoring
§Home/Office Automation
§Transaction/Payment Terminals
ORDERING INFORMATION
PART
DS80C400-40°C to +85°C75MHz100 LQFP
TEMP
RANGE
MAX
CLOCK
SPEED
PINPACKAGE
Page 2
FEATURES (continued)
§10/100 Ethernet MAC
-Flexible IEEE 802.3 MII (10/100Mbps) and
ENDEC (10Mbps) interfaces allow selection
of PHY
-Low-power operation
-Ultra-low-power sleep mode with Magic
Packet™ and wake-up frame detection
-8kB on-chip Tx/Rx packet data memory
with buffer control unit reduces load on
CPU
-Half- or full-duplex operation with flow
control
-Multicast/broadcast address filtering with
VLAN support
§Full-Function CAN 2.0B Controller
-15 message centers
-Supports standard (11-bit) and extended
(29-bit) identifiers and global masks
-Media byte filtering to support
DeviceNet™, SDS, and higher layer CAN
protocols
-Auto-baud mode and SIESTA low-power
mode
§Integrated Primary System Logic
-16 total interrupt sources with 6 external
-Four 16-bit timer/counters
-2X/4X clock multiplier reduces
electromagnetic interference (EMI)
-Programmable watchdog timer
-Oscillator-fail detection
-Programmable IrDA clock
DS80C400
§Advanced Power Management
-Energy saving 1.8V Core
-3.3V I/O operation, 5V tolerant
-Power-management, idle, and stop mode
operations with switchback feature
-Ethernet and CAN shutdown control for
power conservation
-Early warning power-fail interrupt
-Power-fail reset
§Enhanced Memory Architecture
-Selectable 8/10-bit stack pointer for highlevel language support
-1kB additional on-chip SRAM usable as
stack/data memory
-Merged program/data memory space
allows in-system programming
-Defaults to true 8051 memory
compatibility
2 of 125
Page 3
Figure 1. Block Diagram
A
MANAGEMENT
I/O
DS80C400
MDC MDIO
MII I/O (15)
OW
OWSTP
1-WIRE
CONTROLLER
MII
MII
BUFFER CONTROL UNIT
P1.0–P1.7
PORT 1
PORT LATCH
SRAM
9kk x 8
B
P0.0–P0.7
SERIAL
PORT 0
PORT 1
TIMER 2
PORT 7
PORT LATCH
STACK
MATH
ADDER
ONE’S COMP.
ACCELERATOR
POINTER
256 x 8
SFRs/ SRAM
TIMED
INTERRUPT
ACCESS
LOGIC
PORT 2
P2.0–P2.7P7.0–P7.7
PORT LATCH
P3.0–P3.7
PORT 3
SERIAL
TIMER 3
PORT 0
PORT LATCH
TIMER 0
DATA BUS
TIMER 1
CAN
SRAM
256 x 8
PORT LATCH
PORT 5
P5.0–P5.7
ACCUMULATOR
DPTR0
DPTR1
DPTR2
PSW
DPTR3
CAN 0
CONTROLLER
COUNTER
PROGRAM
POWER
CC
MONITOR
V
(1)
(4)
(4)
SS
CC1
CC3
V
V
V
OSCILLATOR-
FAIL DETECT
ROM
BOOT
64k x 8
WATCHDOG
RESET
CONTROL
RST
RSTOL
REGISTER
INTRUCTION
MEMORY
CONTROL
CLOCK AND
EA
MUX
PSEN
DDRESS BUS
PORT LATCH
PORT LATCH
OSCILLATOR
ALE
XTAL1
XTAL2
SERIAL
PORT 2
PORT 6
PORT 4
P6.0–P6.7
P4.0– 4.7
3 of 125
Page 4
Table 1. Pin Description
PINNAMEFUNCTION
DS80C400
70V
12, 36,
62, 87
13, 39,
63, 88
68ALE
CC1
V
CC3
V
SS
+1.8V Core Supply Voltage
+3.3V I/O Supply Voltage
Digital Circuit Ground
Address Latch Enable, Output. When the
MUX pin is low, this pin outputs a clock to
latch the external address LSB from the multiplexed address/data bus on Port 0. This
signal is commonly connected to the latch enable of an external transparent latch. ALE
has a pulse width of 1.5 XTAL1 cycles and a period of four XTAL1 cycles. When the
MUX pin is high, the pin toggles continuously if the ALEOFF bit is cleared. ALE is
forced high when the device is in a reset condition or if the ALEOFF bit is set while the
MUX pin is high.
67
PSEN
Program Store Enable, Output. This signal is the chip enable for external ROM memory.
PSEN provides an active-low pulse and is driven high when external ROM is not being
accessed.
69
40
EA
MUX
External Access Enable, Input. Connect to GND to use external program memory.
Connect to V
to use internal ROM.
CC
Multiplex/Demultiplex Select, Input. This pin selects if the address/data bus operates in
multiplexed (
MUX = 0) or demultiplexed ( MUX = 1) mode. The MUX pin is sampled
only on a power-on reset.
97RSTReset, Input. The RST input pin contains a Schmitt voltage input to recognize external
active-high reset inputs. The pin also employs an internal pulldown resistor to allow for a
combination of wired-OR external-reset sources. An RC circuit is not required for powerup, as the device provides this function internally.
98
RSTOL
Reset Output Low, Output. This active-low signal is asserted:
when the microcontroller has entered reset through the RST pin; during crystal warm-up
period following power-on or stop mode; during a watchdog timer reset (2 cycles
37,
38
XTAL2,
XTAL1
duration); during an oscillator failure (if OFDE = 1); whenever V
V
RST3
CC1
£ V
XTAL1, XTAL2. Crystal oscillator pins support fundamental mode, parallel resonant, AT
cut crystals. XTAL1 is the input if an external clock source is used in place of a crystal.
RST1
or V
XTAL2 is the output of the crystal amplifier.
AD0–7 (Port 0), I/O. When the MUX pin is connected low, Port 0 is the multiplexed
address/data bus. While ALE is high, the LSB of a memory address is presented. While
ALE falls, the port transitions to a bidirectional data bus. When the
MUX pin is
connected high, Port 0 functions as the bidirectional data bus. Port 0 cannot be modified
by software. The reset condition of Port 0 pins is high. No pullup resistors are needed.
P1.0–P1.7Port 1, I/O. Port 1 can function as either an 8-bit, bidirectional I/O port or as an alternate interface
for internal resources. The reset condition of Port 1 is all bits at logic 1 through a weak pullup. The
logic 1 state also serves as an input mode, since external circuits writing to the port can overdrive
the weak pullup. When software clears any port pin to 0, a strong pulldown is activated that
remains on until either a 1 is written to the port pin or a reset occurs. Writing a 1 after the port has
been at 0 activates a strong transition driver, followed by a weaker sustaining pullup. Once the
momentary strong driver turns off, the port once again becomes the output (and input) high state.
PortAlternate Function
89P1.0T2 External I/O for Timer/Counter 2
90P1.1T2EX Timer/Counter 2 Capture/Reload Trigger
91P1.2RXD1 Serial Port 1 Receive
92P1.3TXD1 Serial Port 1 Transmit
93P1.4INT2 External Interrupt 2 (Positive Edge Detect)
94
8TXClkTransmit Clock, Input. The transmit clock is a continuous clock sourced from the Ethernet PHY
controller. It is used to provide timing reference for transferring of TX_EN and TXD[3:0] signals
from the MAC to the external Ethernet PHY controller. The input clock frequency of TXClk
should be 25MHz for 100Mbps operation and 2.5MHz for 10Mbps operation. For ENDEC
operation, TXClk serves the same function, but the input clock frequency should be 10MHz.
7TX_ENTransmit Enable, Output. The transmit enable is an active-high output and is synchronous with
respect to the TXClk signal. TX_EN is used to indicate valid nibbles of data for transmission on
the MII pins TXD.3–TXD.0. TX_EN is asserted with the first nibble of the preamble and remains
asserted while all nibbles to be transmitted are presented on the TXD.3–TXD.0 pins. TX_EN
negates prior to the first TXClk following the final nibble of the frame. TX_EN serves the same
function for ENDEC operation.
3TXD.3
4TXD.2
5TXD.1
6TXD.0
Transmit Data, Output. The transmit data outputs provide 4-bit nibbles of data for transmission
over the MII. The transmit data is synchronous with respect to the TXClk signal. For each TXClk
period when TX_EN is asserted,
TXD.3–TXD.0 provides the data for transmission to the Ethernet PHY controller. When TX_EN is
deasserted, the TXD data should be ignored. For ENDEC operation, only TXD.0 is used for
transmission of frames.
7 of 125
Page 8
DS80C400
PINNAMEFUNCTION
10RXClkReceive Clock, Input. The receive clock is a continuous clock sourced from the Ethernet PHY
controller. It is used to provide timing reference for transferring of RX_DV, RX_ER, and
RXD[3:0] signals from the external Ethernet PHY controller to the MAC. The input clock
frequency of RXClk should be 25MHz for 100Mbps operation and 2.5MHz for 10Mbps operation.
For ENDEC operation, RXClk serves the same function, but the input clock frequency should be
10MHz.
11RX_DVReceive Data Valid, Input. The receive data valid is an active-high input from the external
Ethernet PHY controller and is synchronous with respect to the RXClk signal. RX_DV is used to
indicate valid nibbles of data for reception on the MII pins RXD.3–RXD.0. RX_DV is asserted
continuously from the first nibble of the frame through the final nibble. RX_DV negates prior to
the first RXClk following the final nibble. RX_DV serves the same function for ENDEC
operation.
9RX_ERReceive Error, Input. The receive error is an active-high input from the external Ethernet PHY
controller and is synchronous with respect to the RXClk signal. RX_ER is used to indicate to the
MAC that an error (e.g., a coding error, or any error detectable by the PHY) was detected
somewhere in the frame presently being transmitted by the PHY. RX_ER has no effect on the
MAC while RX_DV is deasserted. RX_ER should be low for ENDEC operation.
17RXD.3
16RXD.2
15RXD.1
14RXD.0
1CRSCarrier Sense, Input. The carrier sense signal is an active-high input and should be asserted by the
2COLCollision Detect, Input. The collision detect signal is an active-high input and should be asserted
18MDCMII Management Clock, Output. The MII management clock is generated by the MAC for use by
19MDIOMII Management Input/Output, I/O. The MII management I/O is the data pin for serial
99OW1-Wire Data, I/O. The 1-Wire data pin is an open-drain, bidirectional data bus for the 1-Wire Bus
100
OWSTP
Receive Data, Input. The receive data inputs provide 4-bit nibbles of data for reception over the
MII. The receive data is synchronous with respect to the RXClk signal. For each RXClk period
when RX_DV is asserted, RXD.3–RXD.0 have the data to be received by the MAC. When
RX_DV is deasserted, the RXD data should be ignored. For ENDEC operation, only RXD.0 is
used for reception of frames.
external Ethernet PHY controller when either the transmit or receive medium is not idle. CRS
should be deasserted by the PHY when the transmit and receive mediums are idle. The PHY
should ensure that the CRS signal remains asserted throughout the duration of a collision
condition. The transitions on the CRS signal need not be synchronous to TXClk or RXClk. CRS
serves the same function for ENDEC operation.
by the external Ethernet PHY controller upon detection of a collision on the medium. The PHY
should ensure that COL remains asserted while the collision condition persists. The transitions on
the COL signal need not be synchronous to TXClk or RXClk. The COL signal is ignored by the
MAC when operating in full-duplex mode. COL serves the same function for ENDEC operation.
the external Ethernet PHY controller as a timing referenced for transferring information on the
MDIO pin. MDC is a periodic signal that has no maximum high or low times. The minimum high
and low times are 160ns each. The minimum period for MDC is 400ns independent of the period
of TXClk and RXClk.
communication with the external Ethernet PHY controller. In a read cycle, data is driven by the
PHY to the MAC synchronously with respect to the MDC clock. In a write cycle, data from the
MAC is output to the external PHY synchronously with respect to the MDC clock.
Master. External 1-Wire slave devices are connected to this pin. This pin must be pulled high by
an external resistor, normally 2.2k.
Strong Pullup Enable, Output. This 1-Wire pin is an open-drain active-low output used to enable
an external strong pullup for the 1-Wire bus. This pin must be pulled high by an external resistor,
normally 10k. This functionality helps recovery times when the 1-Wire bus is operated in
overdrive and long-line standard communication modes. It can optionally be enabled while the bus
master is in the idle state for slave devices requiring sustained high-current operation.
8 of 125
Page 9
DS80C400
DETAILED DESCRIPTION
The DS80C400 is a fast 8051-compatible microcontroller that executes instructions up to three times
faster than an original 8051 at the same crystal speed. Its maximum system-clock frequency of 75MHz
results in a minimum instruction cycle time of 54ns. Access to large program or data memory areas is
simplified with a 24-bit addressing scheme that supports up to 16MB of flat memory. To accelerate data
transfers between the microcontroller and the 16MB memory map, the DS80C400 provides four data
pointers, each of which can be configured to automatically increment or decrement upon execution of
certain data pointer-related instructions. The mircocontroller’s hardware math accelerator further
increases the speed of 32-bit and 16-bit multiply and divide operations as well as high-speed shift,
normalization, and accumulate functions.
With extensive networking and I/O capabilities, the DS80C400 is equipped to serve as a central controller
in a multitiered network. The 10/100 Ethernet media access controller (MAC) enables the DS80C400 to
access and communicate over the Internet. While maintaining a presence on the Internet, the
microcontroller can actively control lower tier networks with dedicated on-chip hardware. These
hardware resources include a full CAN 2.0B controller, a 1-Wire net controller, three full-duplex serial
ports, and eight 8-bit ports (up to 64 digital I/O pins).
Instant connectivity and networking support are provided through an embedded 64kB ROM. This ROM
contains firmware to perform a network boot over an Ethernet connection using DHCP in conjunction
with TFTP. The ROM firmware realizes a full, application-accessible TCP/IP stack, supporting both IPv4
and IPv6, and implements UDP, TCP, DHCP, ICMP, and IGMP. In addition, a priority-based,
preemptive task scheduler is also included. The firmware has been structured so that a MAC address can
optionally be acquired from an IEEE-registered DS2502-E48.
The 10/100 Ethernet MAC featured on the DS80C400 complies with both the IEEE 802.3 MII and
ENDEC PHY interface standards. The MII interface supports 10/100Mbps bus operation, while the
ENDEC interface supports 10Mbps operation. The MAC has been designed for low-power standard
operation and can optionally be placed into an ultra-low-power sleep mode, to be awakened manually or
by detection of a Magic Packet or wake-up frame. Incorporating a buffer control unit reduces the burden
of Ethernet traffic on the CPU. This unit, after initial configuration through an SFR interface, manages all
Tx/Rx packet activity and status reporting through an on-chip 8kB SRAM. To further reduce host
(DS80C400) software intervention, the MAC can be set up to generate a hardware interrupt following
each transmit or receive status report. The DS80C400 MAC can be operated in half-duplex or full-duplex
mode with flow control, and provides multicast/broadcast-address filtering modes as well as VLAN tagrecognition capability.
The DS80C400 features a full-function CAN 2.0B controller. This controller provides 15 total message
centers, 14 of which can be configured as either transmit or receive buffers and one that can serve as a
receive double buffer. The device supports standard 11-bit or 29-extended message identifiers, and offers
two separate 8-bit media masks and media arbitration fields to support the use of higher-level CAN
protocols such as DeviceNet and SDS. A special auto-baud mode allows the CAN controller to quickly
determine required bus timing when inserted into a new network. A SIESTA sleep mode has been made
available for times when the CAN controller can be placed into a power-saving mode.
The DS80C400 has resources that far exceed those normally provided on a standard 8-bit microcontroller.
Many functions, which might exist as peripheral circuits to a microcontroller, have been integrated into
the DS80C400. Some of the integrated functions of the DS80C400 include 16 interrupt sources (six
external), four timer/counters, a programmable watchdog timer, a programmable IrDA output clock, an
oscillator-fail detection circuit, and an internal 2X/4X clock multiplier. This frequency multiplier allows
the microcontroller to operate at full speed with a reduced crystal frequency, reducing EMI.
9 of 125
Page 10
DS80C400
Advanced power-management support positions the DS80C400 for portable and power-conscious
applications. The low-voltage microcontroller core runs from a 1.8V supply while the I/O remains 5V
tolerant, operating from a 3.3V supply. A power-management mode (PMM) allows software to switch
from the standard machine cycle rate of 4 clocks per cycle to 1024 clocks per cycle. For example, 40MHz
standard operation has a machine cycle rate of 10MHz. In PMM, at the same external clock speed,
software can select a 39kHz machine cycle rate, considerably reducing power consumption. The
microcontroller can be configured to automatically switch back from PMM to the faster mode in response
to external interrupts or serial port activity. The DS80C400 provides the ability to place the CPU into an
idle state or an ultra-low-power stop-mode state. As protection against brownout and power-fail
conditions, the microcontroller is capable of issuing an early warning power-fail interrupt and can
generate a power-fail reset.
Defaulting to true 8051-memory compatibility, the microcontroller is most powerful when taking
advantage of its enhanced memory architecture. The DS80C400 has a selectable 10-bit stack pointer that
can address up to 1kB of on-chip SRAM stack space for increased code efficiency. It can be operated in a
24-bit paged or 24-bit contiguous address mode, giving access to a much larger address range than the
standard 16-bit address mode. Support for merged program and data memory access allows in-system
programming, and it can be configured to internally demultiplex data and the lowest address byte, thereby
eliminating the need for an external latch and potentially allowing the use of slower memory devices.
10 of 125
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.