SC16IS740_750_760_6 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 06 — 13 May 2008 34 of 62
NXP Semiconductors
SC16IS740/750/760
Single UART with I
2
C-bus/SPI interface, 64-byte FIFOs, IrDA SIR
8.19 I/O Control register (IOControl)
This register is only available on the SC16IS750 and SC16IS760.
Remark: As I/O pins, the direction, state, and interrupt of GPIO4 to GPIO7 are controlled
by the following registers: IODir, IOState, IOIntEna, and IOControl. The state of CD, RI,
DSR pins will not be reflected in MSR[7:5] or MSR[3:1], and any change of state on these
three pins will not trigger a modem status interrupt (even if enabled via IER[3]), and the
state of the DTR pin cannot be controlled by MCR[0].
As modem CD, RI, DSR pins, the status at the input of these three pins can be read from
MSR[7:5] and MSR[3:1], and the state of DTR pin can be controlled by MCR[0]. Also, if
modem status interrupt bit is enabled, IER[3], a change of state of RI, CD, DSR pins will
trigger a modem interrupt. Bit[7:4] of the IODir, IOState, and IOIntEna registers will not
have any effect on these three pins.
Table 30. IOControl register bits description
Bit Symbol Description
7:4 - reserved for future use
3 SRESET software reset
A write to bit will reset the device. Once the device is reset this bit is
automatically set to ‘0’
2 - reserved for future use
1 GPIO[7:4] or
modem pins
This bit programs GPIO[7:4] as I/O pins or modem
RI, CD, DTR, DSR
pins.
0 = GPIO[7:4] behave as I/O pins
1 = GPIO[7:4] behave as
RI, CD, DTR, DSR
0 IOLATCH enable/disable inputs latching
0 = input values are not latched. A change in any input generates an
interrupt. A read of the input register clears the interrupt. If the input
goes back to its initial logic state before the input register is read,
then the interrupt is cleared.
1 = input values are latched. A change in the input generates an
interrupt and the input logic value is loaded in the bit of the
corresponding input state register (IOState). A read of the IOState
register clears the interrupt. If the input pin goes back to its initial
logic state before the interrupt register is read, then the interrupt is
not cleared and the corresponding bit of the IOState register keeps
the logic value that initiates the interrupt.
SC16IS740_750_760_6 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 06 — 13 May 2008 35 of 62
NXP Semiconductors
SC16IS740/750/760
Single UART with I
2
C-bus/SPI interface, 64-byte FIFOs, IrDA SIR
8.20 Extra Features Control Register (EFCR)
[1] For SC16IS760 only.
9. RS-485 features
9.1 Auto RS-485 RTS control
Normally the RTS pin is controlled by MCR bit 1, or if hardware flow control is enabled, the
logic state of the RTS pin is controlled by the hardware flow control circuitry. EFCR
register bit 4 will take the precedence over the other two modes; once this bit is set, the
transmitter will control the state of the RTS pin. The transmitter automatically asserts the
RTS pin (logic 0) once the host writes data to the transmit FIFO, and deasserts RTS pin
(logic 1) once the last bit of the data has been transmitted.
To use the auto RS-485 RTS mode the software would have to disable the hardware flow
control function.
Table 31. Extra Features Control Register bits description
Bit Symbol Description
7 IRDA MODE IrDA mode
0 = IrDA SIR,
3
16
pulse ratio, data rate up to 115.2 kbit/s
1 = IrDA SIR,
1
4
pulse ratio, data rate up to 1.152 Mbit/s
[1]
6 - reserved
5 RTSINVER invert
RTS signal in RS-485 mode
0:
RTS = 0 during transmission and RTS = 1 during reception
1:
RTS = 1 during transmission and RTS = 0 during reception
4 RTSCON enable the transmitter to control the
RTS pin
0 = transmitter does not control
RTS pin
1 = transmitter controls
RTS pin
3 - reserved
2 TXDISABLE Disable transmitter. UART does not send serial data out on the
transmit pin, but the transmit FIFO will continue to receive data from
host until full. Any data in the TSR will be sent out before the
transmitter goes into disable state.
0: transmitter is enabled
1: transmitter is disabled
1 RXDISABLE Disable receiver. UART will stop receiving data immediately once this
bit set to a 1, and any data in the TSR will be sent to the receive FIFO.
User is advised not to set this bit during receiving.
0: receiver is enabled
1: receiver is disabled
0 9-BIT MODE Enable 9-bit or Multidrop mode (RS-485).
0: normal RS-232 mode
1: enables RS-485 mode
SC16IS740_750_760_6 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 06 — 13 May 2008 36 of 62
NXP Semiconductors
SC16IS740/750/760
Single UART with I
2
C-bus/SPI interface, 64-byte FIFOs, IrDA SIR
9.2 RS-485 RTS output inversion
EFCR bit 5 reverses the polarity of the RTS pin if the UART is in auto RS-485 RTS mode.
When the transmitter has data to be sent it will deasserts the RTS pin (logic 1), and when
the last bit of the data has been sent out the transmitter asserts the RTS pin (logic 0).
9.3 Auto RS-485
EFCR bit 0 is used to enable the RS-485 mode (multidrop or 9-bit mode). In this mode of
operation, a ‘master’ station transmits an address character followed by data characters
for the addressed ‘slave’ stations. The slave stations examine the received data and
interrupt the controller if the received character is an address character (parity bit = 1).
To use the auto RS-485 mode the software would have to disable the hardware and
software flow control functions.
9.3.1 Normal multidrop mode
The 9-bit Mode in EFCR (bit 0) is enabled, but not Special Character Detect (EFR bit 5).
The receiver is set to Force Parity 0 (LCR[5:3] = 111) in order to detect address bytes.
With the receiver initially disabled, it ignores all the data bytes (parity bit = 0) until an
address byte is received (parity bit = 1). This address byte will cause the UART to set the
parity error. The UART will generate a line status interrupt (IER bit 2 must be set to ‘1’ at
this time), and at the same time puts this address byte in the RX FIFO. After the controller
examines the byte it must make a decision whether or not to enable the receiver; it should
enable the receiver if the address byte addresses its ID address, and must not enable the
receiver if the address byte does not address its ID address.
If the controller enables the receiver, the receiver will receive the subsequent data until
being disabled by the controller after the controller has received a complete message from
the ‘master’ station. If the controller does not disable the receiver after receiving a
message from the ‘master’ station, the receiver will generate a parity error upon receiving
another address byte. The controller then determines if the address byte addresses its ID
address, if it is not, the controller then can disable the receiver. If the address byte
addresses the ‘slave’ ID address, the controller take no further action, the receiver will
receive the subsequent data.
9.3.2 Auto address detection
If Special Character Detect is enabled (EFR[5] is set and the XOFF2 register contains the
address byte) the receiver will try to detect an address byte that matches the programmed
character in the XOFF2 register. If the received byte is a data byte or an address byte that
does not match the programmed character in the XOFF2 register, the receiver will discard
these data. Upon receiving an address byte that matches the Xoff2 character, the receiver
will be automatically enabled if not already enabled, and the address character is pushed
into the RX FIFO along with the parity bit (in place of the parity error bit). The receiver also
generates a line status interrupt (IER[2] must be set to ‘1’ at this time). The receiver will
then receive the subsequent data from the ‘master’ station until being disabled by the
controller after having received a message from the ‘master’ station.
If another address byte is received and this address byte does not match Xoff2 character,
the receiver will be automatically disabled and the address byte is ignored. If the address
byte matches Xoff2 character, the receiver will put this byte in the RX FIFO along with the
parity bit in the parity error bit (LSR bit 2).

BOB-09981

Mfr. #:
Manufacturer:
SparkFun
Description:
Interface Development Tools I2C/SPI-to-UART Breakout - SC16IS750
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet