S50 Hardware User Guide
1VV0301505 Rev. 1
Page
19
of
53
2018-03-02
General Purpose I/O (GPIO)
Functionality is defined project specific in the firmware used.
It is possible to use the programmable digital I/Os GPIO[0:14] on the S50. Unused
GPIO pins shall be left unconnected to stay compatible. There may be functions assigned
to some in future versions of the firmware. Refer to 5.3
I
2
C Interface
Functionality is defined project specific in the firmware used.
The I
2
C bus interface serves as an interface between the internal microcontroller and the
serial I
2
C bus. S50 is the master and controls all I
2
C bus specific sequencing,
protocol and timing. It supports standard (100kHz) and fast (400kHz) speed modes. The
S50 as an I
2
C master must be the only master of the I
2
C bus (no
multimaster
capability). Clock stretching is supported.
SDA and SCL can be used to form an I
2
C interface. It is required to connect 4k7 pull-up
resistors on SCL and SDA when this interface is used.
I2C-SCL
I2C-SDA
GPIO[0]/I2C-SCL
GPIO[1]/I2C-SDA
S50
Rpu
VSUP
B-2
D-3
Rpu
VSUP
4k
7
4k
7
Figure 11: S50 I
2
C Interface
SPI Serial Peripheral Interface
Functionality is defined project specific in the firmware used.
The serial peripheral interface (SPI) allows for full-duplex, synchronous, serial
communication with external devices. The interface can be configured as the master and
then provides the communication clock (SCK) to the external slave device(s), or as the
slave. The SPI Interface supports SPI-modes 0 through 3. Module pins are used as follows:
•
GPIO[2]: SPI-MOSI
•
GPIO[5]: SPI-MISO
•
GPIO[8]: SPI-SCK
GPIO[8]/SPI-SCK
GPIO[2]/SPI-MOSI
S50
E-2
SPI-Master
connected device
SPI-Slave
GPIO[5]/SPI-MISO
D-1
F-2
SCK, SPI_CLK
SDI, MOSI
SDO, MISO
typical signals:
Figure 12: S50 SPI Interface (Example: Master Mode)
Содержание BlueMod+S50/AI
Страница 1: ...BlueMod S50 Hardware User Guide 1VV0301505 Rev 1 2018 03 12...
Страница 53: ......