SC16IS752/en: различия между версиями

Материал из Wiren Board
(Новая страница: «<b> /dev/ttyNSC1 </b> port in Linux. The SIM68V GPS module is connected to the TX/RX lines of the port.»)
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
<languages/>
<languages/>
'''SC16IS752''' is a chip that controls serial ports in some versions of the Wiren Board.
'''SC16IS752''' is a chip that controls serial ports in some versions of the Wiren Board controllers.




Строка 45: Строка 45:
===UART0===
===UART0===


The device in Linux: <b>/dev/ttyNSC0</b>. TX/RX port lines are output to [[Special:MyLanguage/UEXT UEXT2|UEXT UEXT2]]. A half-duplex  [[Special:MyLanguage/RS-485|RS-485]]-transceiver(if any) is connected to them  in parallel.
The device in Linux: <b>/dev/ttyNSC0</b>. TX/RX port lines are output to [[UEXT UEXT2|UEXT UEXT2]]. A half-duplex  [[RS-485|RS-485]]-transceiver(if any) is connected to them  in parallel.
The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. In future versions of the driver, RS-485 mode may need to be activated from the userspace.
The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. In future versions of the driver, RS-485 mode may need to be activated from the userspace.


Строка 57: Строка 57:
===GPIO===
===GPIO===


7 линий GPIO выведены на отверстия с шагом 2.54'' на плате Wiren Board.
7 GPIO lines are displayed on the holes in increments of 2.54'' on the mainboard of the Wiren Board controller. A PPS signal from a GPS modem is connected to one of the GPIO lines.
К одной из линий GPIO подключен сигнал PPS с GPS-модема.


[[Special:MyLanguage/Драйвер sc16is7x2|Драйвер sc16is7x2]] экспортирует 8 GPIO в стандартный sysfs-интерфейс Linux под номерами 120-127.
[[Special:MyLanguage/Драйвер sc16is7x2/en|sc16is7x2 driver]] exports 8 GPIOs into the standard Linux sysfs-interface under numbers 120-127.

Текущая версия на 13:41, 26 апреля 2019

Другие языки:

SC16IS752 is a chip that controls serial ports in some versions of the Wiren Board controllers.


Description

SPI-to-UART bridge IC - NXP SC16IS752

two fully-functional UARTs with hardware flow control, up to 8 GPIOs.

Connected to SPI. GPIO is used as chip-select.

Linux uses the sc16is7x2 driver,which has not been ported to upstream yet. It can be found in our Linux repository [1]. The driver is included in the standard image.


GPIO

sc16is7x2 driver exports 8 GPIOs into the standard Linux sysfs-interface under numbers 120-127.


In Wiren Board Smart Home 3.5

UART0

The device in Linux: /dev/ttyNSC0. Half-duplex RS-485-transceiver. RS-485 port-1 (the green pair of terminals).

The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. RS-485 mode may need to be activated from the userspace in future versions of the driver.


UART1

The device in Linux: /dev/ttyNSC1. Half-duplex RS-485-transceiver. RS-485 port-2 (the blue pair of terminals).

The control signals/GPIO and RX/TX lines are output to the WB SH 3.5: UEXT2 connector.

The connector is designed to use GPIO, as well as to connect the RS232 extension module RS232.


In Wiren Board 2.8

UART0

The device in Linux: /dev/ttyNSC0. TX/RX port lines are output to UEXT UEXT2. A half-duplex RS-485-transceiver(if any) is connected to them in parallel. The direction of operation of the transceiver is set by the chip using the RTS signal automatically, the hardware flow control must be disabled. In future versions of the driver, RS-485 mode may need to be activated from the userspace.


UART1

/dev/ttyNSC1 port in Linux. The SIM68V GPS module is connected to the TX/RX lines of the port.


GPIO

7 GPIO lines are displayed on the holes in increments of 2.54 on the mainboard of the Wiren Board controller. A PPS signal from a GPS modem is connected to one of the GPIO lines.

sc16is7x2 driver exports 8 GPIOs into the standard Linux sysfs-interface under numbers 120-127.