mcs7840 MosChip, mcs7840 Datasheet

no-image

mcs7840

Manufacturer Part Number
mcs7840
Description
Usb-2.0 To Four Serial Ports
Manufacturer
MosChip
Datasheet
Features
General Description
The MCS7840 is a USB-2.0 to Quad-Serial Port
device. It has been developed to connect a wide
range of standard serial devices to a USB host.
The MCS7840 has a USB Device Controller
connected to four (4) individual UARTs.
Support for the following serial communication
programs is included:
HyperTerminal, PComm, Windows direct
connection, Windows dial-up connection through
modem, Networking over IrDA and Windows direct
connection over IrDA, Minicom.
MosChip Semiconductor
USB-2.0 Device Controller
On-Chip USB-2.0 PHY
On-Chip Voltage Regulators
Four 16c450/16c550 compatible UARTs
Supports SIR IrDA Mode on any/all ports
Supports RS-232, RS-485 and RS-422
Serial Ports
5, 6, 7 & 8-bit Serial Data support
Hardware and Software Flow Control
Serial Port speeds from 50 bps to 6 Mbps
Custom BAUD Rates supported through
external clock and/or by programming the
internal PLL
On-Chip 512-Byte FIFOs for upstream and
downstream data transfers for each Serial
Port
Supports Remote Wakeup and Power
Management features
Serial Port Transceiver Shut-Down
support
Two-Wire I
EEPROM read/write through USB
iSerial feature support with EEPROM
One Bi-directional multi-function GPIO
On-Chip buffers for Serial Port signals to
operate without external Transceivers over
short cable lengths
Bus-Powered Device
2
C Interface for EEPROM
♦ 3335 Kifer Rd, Santa Clara, CA 95051 ♦ Tel (408) 737-7141 ♦ Fax (408) 737-7708
Application Note
Evaluation Board
Package
Driver Support
Utility Support
Applications
MCS7840CV
Commercial Grade (0 °C to +70 °C)
AN-7840
MCS7840-EVB
64-pin LQFP Package
Windows
(98SE / ME / 2000 / XP / 2003 Server)
Linux Kernel 2.6.5 and above
MAC 10.2 & above
Windows CE5.0
Windows Vista
Windows based EEPROM Tool
Mass Production Utility
Serial Attached Devices
Modems, Serial Mouse, Generic Serial
Devices
Serial-Port Server
Data Acquisition System
POS Terminal & Industrial PC
USB-2.0 to Four Serial Ports
Ordering Information
MCS7840
64-LQFP
RoHS

Related parts for mcs7840

mcs7840 Summary of contents

Page 1

... Transceivers over short cable lengths • Bus-Powered Device General Description The MCS7840 is a USB-2.0 to Quad-Serial Port device. It has been developed to connect a wide range of standard serial devices to a USB host. The MCS7840 has a USB Device Controller connected to four (4) individual UARTs. ...

Page 2

... MCS7840 USB-2.0 to Four Serial Ports SCL EEPROM Controller DP DM XTAL OUT USB-2.0 PHY XTAL IN Clock Recovery Ext_Clock PLL Page 2 Block Diagram SDA Wake-Up Block Bulk In FIFOs USB-2.0 Device Bridge Controller Bulk Out FIFOs VSPEC_CMD_ Processor Resets BAUD Clock Generator x4 Interrupt-In ...

Page 3

... A USB_RREF 6 USB_DM 7 USB_DP 8 Vcc 9 A GND 10 A Vcc TEST_MODE TXD_4 13 DTR_4_N 14 RTS_4_N 15 RXD_4 16 Rev. 1.2 USB-2.0 to Four Serial Ports Pin-Out Diagram MCS7840CV MCS7840 RXD_2 48 RTS_2_N 47 DTR_2_N 46 TXD_2 45 EE_SDA 44 EE_SCL 43 RESET 42 GPIO 41 VCC3IO 40 Vcc 39 K GND 38 18A_PLL Vcc 37 18A_PLL REG02_V18 36 GND 35 ...

Page 4

... MCS7840 USB-2.0 to Four Serial Ports Pin Assignments Pin Name 1 GND K 2 USB_XSCI 3 USB_XSCO 4 Vcc A 5 GND A 6 USB_RREF 7 USB_DM 8 USB_DP 9 Vcc A 10 GND A 11 Vcc K 12 TEST_MODE 13 TXD_4 14 DTR_4_N 15 RTS_4_N 16 RXD_4 17 RI_4_N 18 DSR_4_N 19 DCD_4_N 20 CTS_4_N 21 TXD_1 22 DTR_1_N Page 4 Type Functional Description ...

Page 5

... Port #1. I Power-On Reset signal (active high). I/O 2-Wire EEPROM Clock. Default = High (1) I/O 2-Wire EEPROM Data in/out. Default = High (1) Serial Port 2 Transmit Data out to transceiver, or IrDA Output data out to IR LED Serial Port 2 Data Terminal Ready (in serial protocol), Output active low. MCS7840 Page 5 ...

Page 6

... MCS7840 USB-2.0 to Four Serial Ports Pin Name 47 RTS_2_N 48 RXD_2 49 GND K 50 EXT_CLOCK 51 Vcc 3IO 52 RI_2_N 53 DSR_2_N 54 DCD_2_N 55 CTS_2_N 56 TXD_3 57 DTR_3_N 58 RTS_3_N 59 RXD_3 60 RI_3_N 61 DSR_3_N 62 DCD_3_N 63 CTS_3_N 64 Vcc K Page 6 Type Functional Description Serial Port 2 Request To Send (in serial protocol), Output active low. Serial Port 2 Serial Receive Data in from transceiver Input or IrDA data in from IrDA detector ...

Page 7

... The bridge logic interfaces to a vendor specifi c command processor block containing commands/register settings (BAUD settings etc.) which are specifi this device. Rev. 1.2 MCS7840 USB-2.0 to Four Serial Ports Interrupt-In Block The Interrupt-In controller block gives the status of the serial port interrupt registers to the USB-2.0 Device Controller ...

Page 8

... MCS7840 USB-2.0 to Four Serial Ports UART Functional Description Overview The UARTs are high performance serial ports that comply with the 16c550 specifi cation. All UARTs are similar in operation and function, and are described in this section. The function of a single UART is described below. ...

Page 9

... Enable RTS/CTS Flow Loop Control Tx THR Rx Framing Empty Empty Break ΔDCD RI DSR CTS Scratch Pad Register Divisor Latch bits[7:0] Divisor Latch bits[15:8] MCS7840 Bit-3 Bit-2 Bit-1 Bit Rdy Rx Rdy Stat Int Int Int Int Mask Mask Mask Mask Flush Flush ...

Page 10

... MCS7840 USB-2.0 to Four Serial Ports Transmitter Holding Register & Receiver Holding Register (THR & RHR): Data is written into the bottom of the THR queue & read from the top of the RHR queue completely asynchronously to the operation of the transmitter & receiver. The size of the FIFOs is dependent upon the setting of the FCR register ...

Page 11

... Logic 1: Enable the Receiver Status Interrupt (Normal Mode) Logic 0: Disable the Modem Status Interrupt Logic 1: Enable the Modem Status Interrupt Logic 0: Disable Sleep Mode Logic 1: Enable Sleep Mode where by the internal clock of the channel is switched OFF MCS7840 Bit[2] Bit[1] Bit[0] Rx Stat Tx Rdy Rx Rdy ...

Page 12

... MCS7840 USB-2.0 to Four Serial Ports FIFO Control Register (FCR): The FCR controls the UART behavior in various modes. Register: FCR Description: FIFO Control Register Offset: 2 Permissions: Write Access Condition: Default Value: 0x00 Bit[7] Bit[6] RHR Trigger Level Bit Description 0 Enable FIFO Mode ...

Page 13

... Receiver Status Error 1 or address bit detected in 9-bit mode 2a Receiver Data Available 2b Receiver Time-Out 3 Transmitter THR Empty 4 Modem Status Change Note: ISR[0] indicates whether any interrupt is pending MCS7840 Bit[2] Bit[1] Bit[0] Interrupt (All Modes) Pending ISR[5:0] 6’b000001 6’b000110 6’b000100 6’b001100 6’b000010 6’ ...

Page 14

... MCS7840 USB-2.0 to Four Serial Ports Line Control Register (LCR): The LCR specifi es the data format that is common to both transmitter and receiver. Register: LCR Description: Line Control Register Offset: 3 Permissions: Read/Write Access Condition: Default Value: 0x00 Bit[7] Bit[6] TX DLE Break LCR[1:0] Data Length of serial characters. ...

Page 15

... Logic 0: Either there is no receiver data error in the FIFO or it was cleared by an earlier read of LSR Logic 1: At least one parity error, framing error or break indication is present in the FIFO. MCS7840 USB-2.0 to Four Serial Ports Bit[2] Bit[1] Bit[0] Parity ...

Page 16

... MCS7840 USB-2.0 to Four Serial Ports Modem Control Register (MCR): This register controls the UART’s fl ow control and self diagnostic features. Register: MCR Description: Modem Control Register Offset: 4 Permissions: Read/Write Access Condition: Default Value: 0x00 Bit[7] Bit[6] DTR-DSR/DCD Flow Control Bit ...

Page 17

... CTS# line is 0 Logic 0: DSR# line is 1 DSR Logic 1: DSR# line is 0 Logic 0: RI# line Logic 1: RI# line is 0 Logic 0: DCD# line is 1 DCD Logic 1: DCD# line is 0 MCS7840 USB-2.0 to Four Serial Ports Bit[2] Bit[1] Bit[0] ΔDSR ΔCTS Teri Operation Page 17 ...

Page 18

... MCS7840 USB-2.0 to Four Serial Ports Scratch Pad Register (SPR): The scratch pad register does not infl uence operation of the UART in RS-232 mode in any way, and is used for temporary data storage. When using RS-422/485 Mode, bit[6] and bit[7] of the Scratch Pad Register are used for mode setting and DTR active level settings ...

Page 19

... Access Condition: LCR[ Default Value: 0x00 Bit[7] Bit[6] Rev. 1.2 USB-2.0 to Four Serial Ports Bit[5] Bit[4] Bit[3] Least Signifi cant Byte of divisor latch Bit[5] Bit[4] Bit[3] Most Signifi cant Byte of divisor latch MCS7840 Bit[2] Bit[1] Bit[0] Bit[2] Bit[1] Bit[0] Page 19 ...

Page 20

... MCS7840 USB-2.0 to Four Serial Ports RS-422 / RS-485 Mode Support Two additional modes of serial port operation are supported, these are: • RS-422 Mode – Full Duplex Serial Port for industrial applications • RS-485 Mode – Half Duplex Serial Port for industrial applications ...

Page 21

... Serial Port – 2 Bulk-In Serial Port – 3 Bulk-Out Serial Port – 3 Bulk-In Serial Port – 4 Bulk-Out Serial Port – 4 Interrupt Status Endpoint * Controlled by DCR1 bit-6 MCS7840 USB-2.0 to Four Serial Ports Size (Bytes) (USB-1.1 / USB-2. 512 64 / 512 64 / 512 64 / 512 64 / 512 64 / 512 64 / 512 ...

Page 22

... MCS7840 USB-2.0 to Four Serial Ports bmrequestType Brequest Get Application Vendor Specifi c Command (Serial Port -N) bmrequestType Brequest Set Application Vendor Specifi c Command (Serial Port -N) Page 22 Wvalue 0xC0 0x0D 0x0N00 0xC0 0x0D 0x0N00 0xC0 0x0D 0x0N00 0xC0 0x0D 0x0N00 0xC0 0x0D ...

Page 23

... BDeviceProtocol bMaxPacketSize0 IdVendor IdVendor IdProduct IdProduct BcdDevice BcdDevice iManufacturer iProduct iSerialNumber BNumConfi gurations * Values returned Without / With the Serial EEPROM present. Rev. 1.2 MCS7840 USB-2.0 to Four Serial Ports Location 0 8’h12 1 8’h01 2 8’h00 3 8’h02 4 8’hFF 5 8’h00 6 8’ ...

Page 24

... MCS7840 USB-2.0 to Four Serial Ports USB Confi guration Descriptors USB Interface Descriptors Page 24 Confi guration Index Descriptor BLength 0 BDescriptorType 1 WtotalLength(L) 2 WtotalLength(M) 3 BNumInterfaces 4 BConfi gurationValue 5 IConfi guration 6 BmAttributes 7 BMaxPower 8 Confi guration Index Descriptor BLength 0 BDescriptorType 1 BInterfaceNumber 2 BAlternateSetting ...

Page 25

... Endpoint-1 Serial Port 1 Bulk-In Endpoint-2 Serial Port 1 Bulk-Out Endpoint-3 Serial Port 2 Bulk-In Endpoint-4 Serial Port 2 Bulk-Out Rev. 1.2 MCS7840 USB-2.0 to Four Serial Ports Confi guration Descriptor Index bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize(L) wMaxPacketSize(M) bInterval Confi guration Descriptor Index bLength bDescriptorType ...

Page 26

... MCS7840 USB-2.0 to Four Serial Ports Endpoint-5 Serial Port 3 Bulk-In Endpoint-6 Serial Port 3 Bulk-Out Endpoint-7 Serial Port 4 Bulk-In Endpoint-8 Serial Port 4 Bulk-Out Page 26 Confi guration Descriptor Index bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize(L) wMaxPacketSize(M) bInterval Confi guration Descriptor Index bLength bDescriptorType ...

Page 27

... Endpoint-9 Interrupt Endpoint Rev. 1.2 MCS7840 USB-2.0 to Four Serial Ports Confi guration Descriptor Index bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize(L) wMaxPacketSize(M) bInterval * programmable using intr_pg_fs , Data 0 8’h07 1 8’h05 2 8’h89 3 8’h03 4 8’h0A 5 8’h00 * 8’h01 / 8’h05 6 (default FS/HS) intr_pg_hs ...

Page 28

... MCS7840 USB-2.0 to Four Serial Ports EEPROM Content Layout Bytes # of Bytes [1:0] 2 [3:2] 2 [5:4] 2 [7: [23:22] 2 [71:24] 48 [113:72] 42 [129:114] 16 Page 28 Name EE Check EEPROM Present Check value = 0x9710 VID Vendor ID = 0x9710 PID ...

Page 29

... EEPROM Contents for MCS7840 (Example Contents) EE_Check, VID, PID, RN, SER1_DRC0, SER1_DRC1, SER1_DRC2, SER2_DRC0, SER2_DRC1, SER2_DRC2, SER3_DRC0, SER3_DRC1, SER3_DRC2, SER4_DRC0, SER4_DRC1, SER4_DRC2, INTR_PG_FS, INTR_PG_HS, Language ID, Manufacture ID ...

Page 30

... MCS7840 USB-2.0 to Four Serial Ports Device Confi guration Bit Fields and Descriptions Bytes and 22-30 form twenty-four 8-bit DCR Registers. These Bytes are read from the EEPROM, and loaded into the Global Device Confi guration Registers after Power-On Reset. They can be programmed by software using the following application number and register indexes as shown in the table ...

Page 31

... Downstream Data Buffer is NOT EMPTY; Otherwise Drive RTS inactive. Drive RTS inactive when Downstream Data Buffer is NOT EMPTY; Otherwise Drive RTS active. RS-232 / RS-422 / RS-485 Serial Port Mode. IrDA Mode. Reserved MCS7840 USB-2.0 to Four Serial Ports Bit[1] Bit[0] RS_ Reserved SDM Default ...

Page 32

... MCS7840 USB-2.0 to Four Serial Ports Serial Port 1 – Device Confi guration Register 1 Bit[7] Bit[6] Interrupt IN Power-Down Reserved Endpoint Status DCR1 Name Bit GPIO_I_ [1:0] 00: PMG 01: 10: 11: Tx_I_ [3:2] 00: PMG 01: 10: 11: RW_ 4 INHB 0: 1: PLL_ Power-Down 0: 5 Bypass 1: Control Interrupt Endpoint 1: Status ...

Page 33

... Remote Wakeup Mode: Engages Remote Wakeup, The device issues Disconnect Signal. Engages Remote Wakeup, The device issues Resume Signal. SHDN Polarity: Pin 12 Active Low Shut-Down Signal. Pin 12 Active High Shut-Down Signal. MCS7840 USB-2.0 to Four Serial Ports Bit[2] Bit[1] Bit[0] EWU_ EWU_ EWU_ ...

Page 34

... MCS7840 USB-2.0 to Four Serial Ports Serial Port (2, 3, & 4) – Device Confi guration Register 0 The Confi guration Registers for these three Serial Ports are all identical. They are very similar to Serial Port 1, but have a few less confi guration options. ...

Page 35

... Serial output signals TxD, DTR_n and RTS_n (Default RW_INH Remote Wake Inhibit: Enable the USB Remote Wakeup function Inhibit the USB Remote Wakeup function Reserved Reserved Reserved MCS7840 USB-2.0 to Four Serial Ports Bit[2] Bit[1] Bit[0] Reserved Default Value ...

Page 36

... MCS7840 USB-2.0 to Four Serial Ports Serial Port (2, 3, & 4) – Device Confi guration Register 2 The Confi guration Registers for these three Serial Ports are all identical. They are very similar to Serial Port 1, but have a few less confi guration options. ...

Page 37

... No serial load. I Operating current of 3.3V. No serial load. 3.3V Operating current of 1.8V. No serial load. I 1.8V Rev. 1 Parameter MCS7840 USB-2.0 to Four Serial Ports -0.3 to 2.16 V -0.3 to 4.0 V -0.3 to 4.0 V -0 +70 °C -40 to +150 °C 2000 V 200 mA, 1.5 x VCC 115 °C 65 °C/W Min Typ ...

Page 38

... MCS7840 USB-2.0 to Four Serial Ports DC Characteristics of 3.3V I/O Cells Symbol Parameter Vcc Core Power Supply K Power Supply Vcc 3IO Input Low Voltage Vi L Input High Voltage Switching Threshold Vt- Schmitt Trigger Vt+ Threshold Voltage Vo Output Low Voltage L Output High Voltage Characteristics of 5V Tolerant I/O Cells ...

Page 39

... LQFP Package Dimensions Rev. 1 Millimeters Symbol MIN TYP A1 0.05 A2 1.35 b 0.17 c 0.09 e 0.50 L 0.45 HD 11.75 D 9.90 HE 11.75 E 9.90 MCS7840 USB-2.0 to Four Serial Ports MAX 0.15 1.45 0.27 0.20 0.75 12.25 10.10 12.25 10.10 Page 39 ...

Page 40

... MCS7840 USB-2.0 to Four Serial Ports MosChip Semiconductor Technology, LTD products are not authorized for use as critical components in life support devices or systems. Life support devices are applications that may involve potential risks of death, personal injury or severe property or environmental damages. These critical components are semiconductor products whose failure to perform can be reasonably expected to cause the failure of the life support systems or device adversely impact its effectiveness or safety ...

Page 41

... Removed ‘Confi dential’ notice from all pages Rev. 1.2 Revision History Changes Preliminary Release Removed Preliminary Notice. Deleted Leakage Current table Updated Operating Conditions table Updated 3.3V DC Characteristics table Updated 5V DC Characteristics table MCS7840 USB-2.0 to Four Serial Ports Date 30-May-2006 01-Jun-2006 05-Jun-2006 28-Aug-2006 16-Sept-2006 6-August-2007 Page 41 ...

Related keywords