SPRACO5 September   2019 TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1

 

  1.   Leveraging High Resolution Capture (HRCAP) for Single Wire Data Transfer
    1.     Trademarks
    2. 1 Introduction
    3. 2 System Showcase
      1. 2.1 HRPWM: Encoding Unit
      2. 2.2 HRCAP: Decoding Unit
    4. 3 Software Flow
      1. 3.1 User Configurable Parameters
      2. 3.2 SFO Background Loop
      3. 3.3 Interrupt Based Encoding and Decoding
      4. 3.4 Offset Calibration
    5. 4 Experimental Setup and Results
    6. 5 Summary
    7. 6 References

Software Flow

The proposed data transfer technique is demonstrated using F2838x as transmitter and F28004x as receiver, both the transmitter and receiver projects are provided in the C2000Ware. The transmitter example makes use of the internal analog-to-digital converter (ADC) to sample the external real signal at a configurable sampling frequency and converts it into a digital value, which is then sent across to the receiver using proposed communication technique. For better visual inspection of the system functionality, the example also allows you to manually write to the "dig_value_input" using the CCS expressions window at transmitter window and observe the receiver’s expression window so as to verify that the sent data is received correctly. In order to make use of this manual inspection mode, set USE_ADC_INPUT = 0, then you need to set "USE_ADC_NPUT" = 0, which will use the user-written value for data transfer instead of the sampled ADC data. The block diagram for the cross device communication example is shown in Figure 2. The same data transfer is also demonstrated as loopback example as well using the same device F28004x as both transmitter and receiver, in case you want to validate the functionality by just having one device. The block diagram for the loopback example is shown in Figure 3.

Figure 2. Cross Device Data Transfer
Figure 3. Device Loopback Data Transfer