
CP2105
Rev. 1.0
13
6.1. ECI Baud Rate Generation
The baud rate generator for the enhanced interface is very flexible, allowing the user to request any baud rate in
the range from 300 bps to 2.0 Mbps. If the baud rate cannot be directly generated from the 48 MHz oscillator, the
device will choose the closest possible option. The actual baud rate is dictated by
Equation 1 and
Equation 2.Equation 1. Clock Divider Calculation
Equation 2. Baud Rate Calculation
Most baud rates can be generated with an error of less than 1.0%. A general rule of thumb for the majority of UART
applications is to limit the baud rate error on both the transmitter and the receiver to no more than ±2%. The clock
divider value obtained in
Equation 1 is rounded to the nearest integer, which may produce an error source. Another
error source will be the 48 MHz oscillator, which is accurate to ±0.25%. Knowing the actual and requested baud
rates, the total baud rate error can be found using
Equation 3.Equation 3. Baud Rate Error Calculation
The UART also supports the transmission of a line break. The length of time for a line break is programmable from
1 to 125 ms, or it can be set to transmit indefinitely until a stop command is sent from the application.
7. GPIO Mode and Modem Mode
Each interface on the CP2105 can be configured in either GPIO Mode or Modem Mode. This allows the SCI and
ECI to have either modem control signals or GPIO signals available at various pins.
Table 11 shows the functions
that are available in each mode.By default, both interfaces are configured for GPIO Mode.
Only one mode can be selected for each interface. Also, the mode of the CP2105 can only be configured once and
cannot be reset to the default configuration after being programmed. Refer to “AN223: Port Configuration and
GPIO for CP210x” for more information on how to configure the port pins of the CP2105.
Table 11. CP2105 Modem Mode and GPIO Mode
Interface
Pin #
Modem Mode
GPIO Mode
Standard
Communications
Interface
24
DCD_SCI
GPIO_0_SCI
23
DTR_SCI
GPIO_1_SCI
22
DSR_SCI
GPIO_2_SCI
1
RI_SCI
SUSPEND_SCI
Enhanced
Communications
Interface
15
DTR_ECI
GPIO_0_ECI
14
DSR_ECI
GPIO_1_ECI
17
RI_ECI
SUSPEND_ECI
Clock Divider
48 MHz
2
Prescale
Requested Baud Rate
----------------------------------------------------------------------------------------------------
=
Prescale
4 if Requested Baud Rate
365 bps
=
Prescale
1 if Requested Baud Rate
365 bps
=
Actual Baud Rate
48 MHz
2
Prescale
Clock Divider
-----------------------------------------------------------------------------
=
Prescale
4 if Requested Baud Rate
365 bps
=
Prescale
1 if Requested Baud Rate
365 bps
=
Baud Rate Error (%)
100
1
Actual Baud Rate
Requested Baud Rate
-----------------------------------------------------------
–
0.25%
=