SBAA607A December   2023  – January 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P4 , AMC1303M2520 , AMC1305L25 , AMC1306M25 , TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DK-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Design Challenge With Digital Interface Timing Specifications
  6. 3Design Approach With Clock Edge Delay Compensation
    1. 3.1 Clock Signal Compensation With Software Configurable Phase Delay
    2. 3.2 Clock Signal Compensation With Hardware Configurable Phase Delay
    3. 3.3 Clock Signal Compensation by Clock Return
    4. 3.4 Clock Signal Compensation by Clock Inversion at the MCU
  7. 4Test and Validation
    1. 4.1 Test Equipment and Software
    2. 4.2 Testing of Clock Signal Compensation With Software Configurable Phase Delay
      1. 4.2.1 Test Setup
      2. 4.2.2 Test Measurement Results
    3. 4.3 Testing of Clock Signal Compensation by Clock Inversion at MCU
      1. 4.3.1 Test Setup
      2. 4.3.2 Test Measurement Results
        1. 4.3.2.1 Test Result – No Clock Inversion of Clock Input at GPIO123
        2. 4.3.2.2 Test Result – Clock Inversion of Clock Input at GPIO123
    4. 4.4 Digital Interface Timing Validation by Calculation Tool
      1. 4.4.1 Digital Interface With No Compensation Method
      2. 4.4.2 Commonly Used Method - Reduction of the Clock Frequency
      3. 4.4.3 Clock Edge Compensation With Software Configurable Phase Delay
  8. 5Conclusion
  9. 6References
  10. 7Revision History

Design Challenge With Digital Interface Timing Specifications

Isolated Delta-Sigma modulators offer interface options for both an externally and internally generated clock signal with either a CMOS interface or a LVDS interface. For devices with externally-provided clock source, for example AMC1306M25 with CMOS interface or AMC1305L25 with LVDS interface the clock signal is routed from the MCU to the Delta-Sigma modulator’s clock input, whereas for devices with an internally-provided clock source, the output bit-stream is synchronized to the internally generated clock, for exampleAMC1303M2520. There are also isolated Delta-Sigma modulator devices with Manchester coded output bit stream that support single-wire data and clock transfer, for example AMC1306E25. For all isolated Delta-Sigma modulators, the data output of the modulator provides a bit stream of digital ones and zeros that is shifted out synchronous to the clock edge.

Figure 2-1 shows a simplified example of CMOS interface with 3.3V I/O between the isolated Delta-Sigma modulator AMC1306M25 and a C2000 MCU TMS320F28379D. As the AMC1306M25 requires an externally-provided clock source, the clock signal is generated by the MCU TMS320F28379D and is provided to the Delta-Sigma modulators clock input, CLKIN. In parallel, the generated clock signal is also routed to the clock input to the MCUs Sigma-Delta Filter Module (SDFM) SD1_C1 (GPIO123). Depending on the system design there can be a clock buffer included in the clock interface between the MCU and the isolated Delta-Sigma modulator. The isolated data output DOUT of the Delta-Sigma modulator is directly connected to the MCUs Sigma-Delta Filter Module (SDFM) data input SD1_D1 (GPIO122).

GUID-20231128-SS0I-KTPN-VDJF-FRDXRMSLMCTL-low.svgFigure 2-1 Simplified AMC1306M25 Digital Interface to TMS320F28379D

Valid communication between the isolated Delta-Sigma modulator and the MCU is described in the respective device data sheets by the setup and hold timing requirements. The setup time is the amount of time that the data signal must be valid and stable prior to a clock signal transition to capture the data signal in the MCU. Hold time is the amount of time that a signal must be held valid and stable after a clock signal transition occurs. Meeting the MCUs setup and hold time requirements is crucial as any violation can cause incorrect data to be captured. Incompatibility between the digital interface setup and hold timing requirements of the isolated Delta-Sigma modulator and the MCU can present a design challenge.

Figure 2-2 outlines the digital interface timing for setup and hold time of the AMC1306x which supports a recommended clock frequency (CLKIN) from 5 MHz to 21 MHz with a data hold time th(MIN) = 3.5 ns and a data delay time td (MAX) = 15 ns.

GUID-20231128-SS0I-26F6-CKCF-BLLRP5QPWCLZ-low.svgFigure 2-2 AMC1306x Digital Interface Timing

Figure 2-3 outlines the timing diagram, of the TMS320F28379D Sigma-Delta Filter Module (SDFM) for Mode 0. The data input at SDx_Dy needs to meet the minimum setup time tsu(SDDV-SDCH)M0 and minimum hold time th(SDCH-SDD)M0 with reference to the rising clock edge of the SDx_Cy signal in the SDFM module.

GUID-20231128-SS0I-CXNQ-KSGX-WMQVQ4GJC3GG-low.svgFigure 2-3 TMS320F28379D SDFM Timing Diagram – Mode 0

For the TMS320F28379D SDFM module in Mode 0, we recommend to use the SDFM operation with qualified GPIO (3-sample window). This mode provides protection against random noise glitches with the input clock signal (SDx_Cy) and data input (SDx_Dy) to avoid false comparator over-current trip and false Sinc filter output. The minimum setup and hold times for a 200 MHz system clock with TMD320F28379D are both 10 ns: tsu (SDDV-SDCH)M0 (MIN) = 10 ns and th(SDCH-SDD)M0 (MIN) = 10 ns.

This creates a design challenge as the AMC1306M25 minimum hold time th(MIN) is 3.5 ns, but 10 ns is required for the SDFM module to maintain correct acquisition at the data input SDx_Dy with reference to the rising clock edge of the SDx_Cy signal.

An additional challenge is that the propagation delay of additional components in the signal chain with the digital interface such as a clock buffer as well as the propagation delay of the clock and data signals introduced by the trace length on the PCB have an impact on the timings between SDx_Cy and SDx_Dy inputs and complicate the correct acquisition timing of the data input.

The same applies to Delta-Sigma modulators with a LVDS interface, such as the AMC1305L25. The only difference to AMC1306M25 Delta-Sigma modulators with CMOS interface type is that additional components like a LVDS driver and receiver are required with the digital signal chain to a MCU with CMOS interface, which contribute to further propagation delays. Figure 2-4 shows a simplified digital interface between the isolated Delta-Sigma modulator AMC1305L25 with LVDS interface and the MCU TMS320F28379D with CMOS interface.

GUID-20231128-SS0I-CNNF-CXFC-SD6PGWMQJVVG-low.svgFigure 2-4 AMC1305L25 Digital Interface to TMS320F28379D

Figure 2-5 shows a simplified digital interface of an isolated Delta-Sigma modulator with internally-created clock source AMC1303Mx with CMOS interface to TMS320F28379D with CMOS interface. The internally generated clock signal CLKOUT of the AMC1303Mx is input to the MCUs Sigma-Delta Filter Module (SDFM) SD1_C1 (GPIO123). The isolated data output DOUT of the Delta-Sigma Modulator is directly connected to MCUs data input SD1_D1 (GPIO122) of the SDFM.

GUID-20231128-SS0I-Z5QG-4VF6-X9T5CHWMPWHG-low.svgFigure 2-5 AMC1303M2520 3.3-V CMOS Digital Interface to TMS320F28379D

When using an isolated modulator with an internal clock, the digital interface challenge is limited to the different timing specifications of the isolated Delta-Sigma modulator and the MCUs setup and hold times. The propagation delay of clock and data signals introduced by the trace length on the PCB can be neglected if the clock and data signals are routed at the same length. Typically, the modulator is directly interfaced to the MCU and there’s no need for a buffer or level-shifter, which adds additional propagation delay.

The AMC1303Mx hold time th(MIN) is 7 ns and the delay time td (MAX) is 15 ns for the 10 MHz and 20 MHz clock versions. The challenge is that the AMC1303Mx minimum hold th(MIN) is 7 ns, but 10 ns is required by the SDFM module for correct acquisition of the data input at SDx_Dy without any setup and hold time violations.

For isolated Delta-Sigma modulators with a Manchester encoded bitstream output, e.g. AMC1306E25, data and clock are transferred through a single-wire. So that the setup and hold time requirements of the receiving device versus the modulator clock do not have to be considered.

A commonly used method and compromise to meet the MCUs setup and hold time requirements is to reduce the clock frequency. However, reducing the clock frequency is also reducing the data output rate of the isolated Delta-Sigma modulator and increases the latency of the current measurement. A more suitable method is to use clock edge delay compensation which enables moving the clock edge of the clock signal to an ideal sample point of the data signal to meet the setup and hold timing requirements. By using this method, the clock frequency limitations are eliminated which allows the isolated Delta-Sigma modulator and the system to operate at full performance.