SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Code Composer Studio and C2000 are trademarks of Texas Instruments.
All trademarks are the property of their respective owners.
The C2000 Real-Time MCU Pulse Train Output (PTO) APIs leverage the Configurable Logic Block (CLB), Type 1 or later, to generate a specified PTO or to decode a PTI (Pulse Train Input).
This document describes the implementation and associated software for each modules listed below:
PulseGen: Output a simple pulse and a direction-indication signal.
QepDiv: Scale Quadrature Encoded Pulse inputs (QEP-A, QEP-B and QEP-Index) to output reduced frequency PTO signals.
Abs2Qep: Translate a change in absolute position into equivalent QEP-A/B and QEP-I signals.
QepOnClb Implements a basic QEP decoder by using the CLB.
There are two categories of software provided:
Example Application Projects: Small applications which configure a C2000 Real-Time MCU, incorporates the appropriate reference library, and demonstrates the functionality. Section 6 describes how to access the source code, import the project into CCS, and then build and run the example.
Reference API Libraries: Software implementation of the module. Section 7 includes a description of each API, how to access the source code, and how to rebuild the libraries. Section 8 explains how to incorporate the API into your own project.
The PTO-PulseGen function can be used to generate pulse and direction outputs as required by the application. Figure 2-1 shows the PulseGen output and Figure 2-2 shows the implementation diagram.