ST AEK-COM-ISOSPI1 User Manual
ST AEK-COM-ISOSPI1 User Manual

ST AEK-COM-ISOSPI1 User Manual

Spi to isolated spi dongle
Table of Contents

Advertisement

Quick Links

Getting started with the AEK-COM-ISOSPI1, SPI to isolated SPI dongle based on
introduction
One of the most commonly used communication protocols for device control is the SPI one. In the traditional vehicle
architecture, the SPI control is used to connect the device with the local microcontroller. With trends moving toward domain /
zone architectures, the local microcontroller is disappearing, therefore the protocol has to evolve to cover longer distances to
connect the device to the domain / zone controller. In addition, with electrification progressing inside the new vehicles, another
desirable feature for such a protocol is the electrical isolation. Based on these requirements, the isolated SPI (ISOSPI) protocol
has been defined.
The
AEK-COM-ISOSPI1
board allows converting SPI signals into ISOSPI signals, reducing the number of necessary wires from
4 to 2, and ensuring an isolated differential communication highly immune to noise.
An ISOSPI signal can travel for several meters, maintaining a high ratio between signal and noise.
The ISOSPI protocol features differential communication to ensure higher noise immunity and robustness for long distance
communication. As the ISOSPI signals can travel for several meters, this protocol is particularly suitable for automotive high
voltage applications where electrical isolation is required by the safety standards and the cable length can affect the
communication among devices located in distant parts of the vehicle.
The
AEK-COM-ISOSPI1
board is based on the
transceiver, which can transfer communication data incoming from a classical 4-wire based SPI interface to a 2-wire isolated
interface (and vice versa).
The L9963T hosted on the
AEK-COM-ISOSPI1
any protocol of 8-to-64-bit SPI frames. The SPI peripheral can work up to 10 MHz when configured as a slave. The SPI clock
frequency can be programmed (250 kHz, 1 MHz, 4 MHz, or 8 MHz) when the device is configured as a master.
UM3187 - Rev 1 - June 2023
For further information contact your local STMicroelectronics sales office.
Figure 1.
SPI to ISOSPI conversion block diagram
L9963T
integrated circuit, a general-purpose SPI to isolated SPI bi-directional
can be configured either as a slave or as a master of the SPI bus and supports
UM3187
User manual
the L9963T transceiver
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AEK-COM-ISOSPI1 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST AEK-COM-ISOSPI1

  • Page 1: Figure 1. Spi To Isospi Conversion Block Diagram

    UM3187 User manual Getting started with the AEK-COM-ISOSPI1, SPI to isolated SPI dongle based on the L9963T transceiver introduction One of the most commonly used communication protocols for device control is the SPI one. In the traditional vehicle architecture, the SPI control is used to connect the device with the local microcontroller. With trends moving toward domain / zone architectures, the local microcontroller is disappearing, therefore the protocol has to evolve to cover longer distances to connect the device to the domain / zone controller.
  • Page 2: Figure 2. Aek-Com-Isospi1

    The transceiver is natively compatible with the L9963E IC isolated SPI port, allowing its usage in battery management system (BMS) applications. The basic BMS analog front-end node board is the AEK-POW-BMS63EN. From the microcontroller side, AEK-COM-ISOSPI1 board can be connected via SPI with SPC5, Stellar and STM32 microcontroller families.
  • Page 3: Hardware Overview

    Jumper configuration Amplitude and frequency can be set through the microcontroller GPIO on the AEK-COM-ISOSPI1 DIS pin. You can enable or disable the AEK-COM-ISOSPI1 through jumpers on the DIS pin or through the microcontroller. UM3187 - Rev 1 page 3/35...
  • Page 4: Pin Description

    UM3187 L9963T Figure 5. Jumpers on DIS pin To enable this pin, use jumpers on TXEN or program the microcontroller to set the TXEN pin. Figure 6. TXEN pin NSLAVE can assume the value 0 (for the slave configuration) or 1 (for the master configuration). L9963T The L9963T is a general purpose SPI to isolated SPI transceiver IC, which acts as a bridge among devices located in different voltage domains.
  • Page 5: Cpol And Cpha

    UM3187 Pin description • SDO is always configured as a digital output. Its buffer is enabled only if NCS is asserted. An external pull up/pull down resistor defines the inactive level of the line. • SCK, NCS can be either configured as a digital input (NSLAVE = 0, SPI slave) or as a digital output (NSLAVE = 1, SPI master).
  • Page 6: Figure 8. Spi Protocol Mode 1

    UM3187 Pin description For CPOL = 0, the clock basic value is zero. For CPHA = 1, data are sampled on the clock falling edge and are shifted on the clock rising edge. Figure 8. SPI protocol mode 1 For CPOL = 1, the clock basic value is 1. For CPHA = 0, data are sampled on the clock rising edge and are shifted on the clock falling edge.
  • Page 7: Nslave

    UM3187 Pin description For CPOL = 1, the clock basic value is 1. For CPHA = 1, data are sampled on the clock falling edge and shifted on the clock rising edge. Figure 10. SPI mode 3 1.2.3 NSLAVE The NSLAVE pin is latched by the standby logic in the Trimming & Config Latch state. It must be either shorted to VDD or to GND.
  • Page 8: Txen/Cpha

    UM3187 Pin description • When NSLAVE = 1 (master configuration), this pin acts as a digital input for the selection of CPOL (clock polarity): – CPOL = 0 (shorted to GND) implies that the clock inactive level (when NCS is high) is low. –...
  • Page 9: Spiclkfreq

    The code obtained from these 4 comparator outputs is latched in the Trimming & Config Latch to determine the SPI clock frequency when L9963T works in master mode (NSLAVE = 1). In the AEK-COM-ISOSPI1 the SPICLKFREQ is fixed at 250 kHz. 1.2.9...
  • Page 10: Isofreq

    UM3187 Pin description Parameter Description 333 kbps (low speed configuration, ISOFREQ = 0, default if pin is left floating) The transmission line on the isolated SPI exploits a single twisted pair. Communication data is transmitted/ received over a pulse-shaped signal, in a half-duplex protocol. Line bit rate can be selected by programming the ISOFREQ device pin.
  • Page 11: Power Supply

    UM3187 Power supply Power supply The figure below lists the product power supply ranges. Figure 11. Power supply ranges • Within the range of functionality, the part operates as specified and without parameter deviations. All the functionalities and the electrical parameters are guaranteed. •...
  • Page 12: Finite State Machine

    UM3187 Finite state machine Finite state machine Figure 12. Finite state machine Reset Device is powered up by VDD Power on reset negative released Stand-by Wakeup event (DIS pin pulled down or ISOline activity) or FirstPowerupDone = 0 Regulators enabling FirstPowerupDone = 1 POR_MAIN released Regulators...
  • Page 13: Trimming And Configuration Latch State

    UM3187 Trimming and configuration latch state The Regulators enabling state is left upon Fs_MAIN release. The next state depends on the FirstPowerupDone latch: • In case FirstPowerupDone = 0, the first power-up has never been accomplished. Hence, the device moves to the Trimming &...
  • Page 14: Autodevkit Ecosystem

    PLS UDE and OpenOCD programmers and debuggers Component folder structure Figure 13. AEK-COM-ISOSPI1 component folder structure The cfg folder contains all the configuration files. The doc folder contains the doxygen documentation. The lib folder contains the component header and source files.
  • Page 15: Available Apis

    Table 6. APIs for the AEK-COM-ISOSPI1 API name Description l9963t_PALWritePad (ISOSPI_Driver_t l9963t, ISOSPI_pal_ch_t Sets the logical state of a pad of the AEK-COM-ISOSPI1. l9963t_pal_ch, uint8_t value) l9963t_PALReadPad (ISOSPI_Driver_t l9963t, ISOSPI_pal_ch_t Reads the logical state of a pad of the AEK-COM-ISOSPI1. l9963t_pal_ch) AEK_COM_ISOSPI_SetAsSlave (ISOSPI_DEVICE dev) Sets the AEK-COM-ISOSPI1 as a slave.
  • Page 16: Using Aek-Com-Isosp1 Within Autodevkit

    AutoDevKit Init Package Component These components must be added immediately, or the other components will not be visible. Figure 15. Adding components Step 2. Add the following additional components – AEK-COM-ISOSPI1 Component RLA Figure 16. Adding components UM3187 - Rev 1 page 16/35...
  • Page 17: Figure 17. Adding Components

    UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Step 3. Select [AEK-COM-ISOSPI1 Component RLA] to open the [Application Configuration] window. Figure 17. Adding components Step 4. Click on [+] to add a new element to the board list. Figure 18. Adding components UM3187 - Rev 1...
  • Page 18: Figure 19. Aek-Com-Isopi1 Configuration

    UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Step 5. Double-click on the newly added element to configure the board. Figure 19. AEK-COM-ISOPI1 configuration UM3187 - Rev 1 page 18/35...
  • Page 19: Figure 20. Available Scenarios

    UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Step 6. – Select scenario “two” – Select DSPI and CS – Select the “cfg” configuration as “micro” – Select TxAmp as “not amplified” – Select ISOFreq as “333 KHz” – Select Master Clock Frequency as “5 MHz” –...
  • Page 20: Figure 21. Aek-Com-Isopi1: Scenario Number Two Configuration

    UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Figure 21. AEK-COM-ISOPI1: scenario number two configuration Step 7. Click on the “Allocation” button to allocate the AEK-POW-ISOSPI1 component. Figure 22. Component allocation Step 8. Click on “Board View” to see Hardware connection between the AEK-MCU-C4MLIT1 board and the AEK-COM-ISOSP1 dongle.
  • Page 21 UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Step 9. Create your main application example as follows: #include "components.h" #include "AEK_COM_ISOSPI1_lld.h" * Application entry point. int main(void) { static uint8_t txbuf[512]; static uint8_t rxbuf[512]; /* Initialization of all the imported components in the order specified in the application wizard.
  • Page 22: Figure 24. Application Generation Menu

    UM3187 Using AEK-COM-ISOSP1 within AutoDevKit Step 10. Generate and compile your application. Figure 24. Application generation menu Step 11. Open “UDE Starterkit” and import the “.wsx” file with workspace to flash your application. Figure 25. UDE initial window Step 12. Switch on your AEK-MCU-C4MLIT1 and enjoy your AEK-COM-ISOSP1 application.
  • Page 23: Available Demos For Aek-Com-Isosp1

    UM3187 Available demos for AEK-COM-ISOSP1 Available demos for AEK-COM-ISOSP1 In the Autodevkit release 2.1.0 (or higher), there are the following available demos for the AEK-COM-ISOSP1: • SPC58EC - ISOSPI1_LEDdriver test application for discovery, which is a demo application for the AEK- MCU-C4MLIT1 to drive an AEK-LED-21DISM1 LED driver board with the AEK-COM-ISOSP1;...
  • Page 24: Test Results

    UM3187 Test results Test results The waveforms of the figure below show how a generic SPI signal is converted into an ISOSPI signal through the L9963T. In particular: • The first and second waveforms from the bottom represent ISOL and ISOH signals, respectively, which are ISOSPI signals generated by the L9963T •...
  • Page 25: Schematic Diagram

    UM3187 Schematic diagram Schematic diagram Figure 27. AEK-COM-ISOSPI1 circuit schematic L9963T configurable in MASTER & SLAVE mode FAULT N.M. 22pF 100nF 100nF I/O1 I/O1 60.4 ISOP ISOp VBUS ISOm ISOM R3 10nF I/O2 I/O2 60.4 Shell Shield USBLC6-2SC6Y USB 2.0 Type A Plug...
  • Page 26: Bill Of Materials

    UM3187 Bill of materials Bill of materials Table 7. AEK-COM-ISOSPI1 bill of materials Item Q.ty Ref. Part/Value Description Manufacturer Order code C1, C7 22pF 0603 - 50V - NP0 Class I 885012006053 C2, C8 N.M. 1206 N.M. N.M. C3, C4...
  • Page 27 UM3187 Bill of materials Item Q.ty Ref. Part/Value Description Manufacturer Order code WR-PHD 2.54 mm Multi-Jumper for blister 60900213421 60900213421 Jumper with Test Point WR-WTB 2.54 mm Female Terminal for blister 61900411621 61900411621 Housing WR-WTB 2.54 mm Female Terminal for blister 61900711621 61900711621 Housing...
  • Page 28: Board Versions

    UM3187 Board versions Board versions Table 8. AEK-COM-ISOSPI1 versions Finished good Schematic diagrams Bill of materials AEK$COM-ISOSPI1A AEK$COM-ISOSPI1A schematic diagrams AEK$COM-ISOSPI1A bill of materials 1. This code identifies the AEK-COM-ISOSPI1 evaluation board first version. UM3187 - Rev 1 page 28/35...
  • Page 29: Regulatory Compliance Information

    UM3187 Regulatory compliance information Regulatory compliance information Notice for US Federal Communication Commission (FCC) For evaluation only; not FCC approved for resale FCC NOTICE - This kit is designed to allow: (1) Product developers to evaluate electronic components, circuitry, or software associated with the kit to determine whether to incorporate such items in a finished product and (2) Software developers to write software applications for use with the end product.
  • Page 30: Revision History

    UM3187 Revision history Table 9. Document revision history Date Revision Changes 14-Jun-2023 Initial release. UM3187 - Rev 1 page 30/35...
  • Page 31: Table Of Contents

    UM3187 Contents Contents Hardware overview ..............3 L9963T .
  • Page 32 UM3187 Contents List of tables ................33 List of figures.
  • Page 33 AEK-COM-ISOSPI1 bill of materials ........
  • Page 34 AEK-COM-ISOSPI1 component folder structure ........
  • Page 35 ST’s terms and conditions of sale in place at the time of order acknowledgment. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’...

Table of Contents