mcs7840 MosChip, mcs7840 Datasheet - Page 21

no-image

mcs7840

Manufacturer Part Number
mcs7840
Description
Usb-2.0 To Four Serial Ports
Manufacturer
MosChip
Datasheet
Rev.
Confi guration Options
Four serial ports can be confi gured for operation.
To program and access the serial ports via software, endpoint numbers have been assigned so that serial
ports can be confi gured from the USB side.
Serial Port Set/Get Commands
Vendor commands are the vendor specifi c USB setup commands. The purpose of the vendor commands is
to set/get the contents of the application registers. The following table provides information on the various
vendor specifi c commands.
Windex [7:0] is the register index from where data is to be read.
Brequest specifi es whether to read or write.
Wvalue specifi es the application number and data to be written (ww = data).
Note: “N” in Wvalue and Register Name columns indicate the corresponding serial port number.
Windex is the offset of the register to read/write.
Wlength is the length of the data to read/write.
1.2
0x0E = write to the application register
0x0D = read from the application register
0x01ww is the application number for Serial Port-1
0x02ww is the application number for Serial Port-2
0x03ww is the application number for Serial Port-3
0x04ww is the application number for Serial Port-4
0x09ww is the application number for EEPROM Write/Read
0x00ww is the application number provided for accessing the Control Registers which control the
UARTs. It is possible to enable higher BAUD rates, and features like auto hardware fl ow control using
the Control Registers
Endpoint
0
1
2
3
4
5
6
7
8
9
Control Endpoint
Bulk-Out
Bulk-Out
Bulk-Out
Bulk-Out
Interrupt
Bulk-In
Bulk-In
Bulk-In
Bulk-In
Type
* Controlled by DCR1 bit-6
Default Functionality
Status Endpoint
Serial Port – 1
Serial Port – 1
Serial Port – 2
Serial Port – 2
Serial Port – 3
Serial Port – 3
Serial Port – 4
Serial Port – 4
Function
USB-2.0 to Four Serial Ports
MCS7840
(USB-1.1 / USB-2.0)
Size (Bytes)
5 or 13 *
64 / 512
64 / 512
64 / 512
64 / 512
64 / 512
64 / 512
64 / 512
64 / 512
8 / 64
Page 21

Related parts for mcs7840