
MCS7840
USB-2.0 to Four Serial Ports
Rev.
1.2
Page 21
Configuration Options
Four serial ports can be configured for operation.
To program and access the serial ports via software, endpoint numbers have been assigned so that serial
ports can be configured from the USB side.
Endpoint
Type
Function
Size (Bytes)
(USB-1.1 / USB-2.0)
0
Control Endpoint
Default Functionality
8 / 64
1
Bulk-In
Serial Port – 1
64 / 512
2
Bulk-Out
Serial Port – 1
64 / 512
3
Bulk-In
Serial Port – 2
64 / 512
4
Bulk-Out
Serial Port – 2
64 / 512
5
Bulk-In
Serial Port – 3
64 / 512
6
Bulk-Out
Serial Port – 3
64 / 512
7
Bulk-In
Serial Port – 4
64 / 512
8
Bulk-Out
Serial Port – 4
64 / 512
9
Interrupt
Status Endpoint
5 or 13 *
* Controlled by DCR1 bit-6
Serial Port Set/Get Commands
Vendor commands are the vendor specific 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 specific commands.
Windex [7:0] is the register index from where data is to be read.
Brequest specifies whether to read or write.
•
0x0E = write to the application register
•
0x0D = read from the application register
Wvalue specifies the application number and data to be written (ww = data).
•
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 flow control using
the Control Registers
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.