SPRACO5 September   2019 F29H850TU , F29H859TU-Q1 , 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

Introduction

Pulse Width Modulation (PWM) is a powerful way of encoding analog signal levels and is commonly used for controlling DC power to an electrical device. PWM can also be used for data transmission by varying the output pulse width proportionally with the data to be transferred, but a powerful decoding unit is required at the receiver. Normal capture peripheral eCAP cannot support high transmission frequencies for high resolution data communication, which results in a high latency solution. However, HRCAP of C2000 operates over and above standard eCAP and is capable of measuring width of external pulses to a higher degree of accuracy compared to standard capture unit eCAP. Thus, using HRCAP as a decoding unit at the receiver adds differentiation to the system by significantly reducing the latency for high resolution data transfer.

The application report describes the high resolution peripherals of C2000 in brief and discusses the system implementation details. The document also discusses the software flow of both the transmitter and receiver examples and the achieved effective number of bits (ENOB) and latency at various transmission frequencies. Use Table 1 to choose various parameters while designing your own system. The showcasing example configures F2838x as transmitter and F28004x as receiver, but the software can easily be ported to any C2000 device that supports HRCAP Type 1. Also in order to quickly evaluate the system, the single device loopback example is also provided where the same F28004x device is used as both transmitter and receiver.

The showcasing example code discussed in this document can be found in C2000Ware v2.00.00.03 or latest, located within the following local directory after installation:

C:\ti\c2000\C2000Ware_<version_number>\demo_examples\hrcap_hrpwm_data_transfer

The available example projects are:

  • cross_device_data_tansfer\Transmitter
  • cross_device_data_tansfer\Receiver
  • device_loopback