This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BOOSTXL-AFE031-DF1: reverse engineering example code for RX

Part Number: BOOSTXL-AFE031-DF1
Other Parts Discussed in Thread: AFE032, AFE031, , C2000WARE, TMS320F28379D, LAUNCHXL-F280049C

Hello.

I'm a developer working on a commercial product, and my boss asked me to evaluate if AFE031 (or AFE032) is a good choice for our newest project.

So, I ordered 2 sets of: C2000 Piccolo MCU F280049C LaunchPad and BOOSTXL-AFE031-DF1.

The problem is that the product that we want to use the AFE031 on uses a different processor (from ST), so, I need to estimate how difficult it would be to reverse-engineer the example code and port it to a different processor. I managed to figure out the transmission part, but on the receiving end, the main functionality is in a pre-compiled .lib file (\C2000Ware_2_01_00_00\device_support\f28004x\examples\boostxl_afe031_f28004x_rx\fsk_corr_detect.lib)

So, is there anywhere I can get the source-code for this file? Or should I just recommend my boss to pick a plc-frontend from a different manufacturer?

  • Hello User,

    AFE031 and AFE032 are very similar, however the ICs are not pin-to-pin compatible. Both parts are in QFN-48 pin package. The selection of two ICs will depend on your design and product requirements. 

    AFE031 is a lower cost, but it is very capable PLC controller (it is designed for a different applications). AFE031's power amplifier output can provide up to 12V peak to peak voltage swing with continuous current up to 1.5A_peak (with 15V PA Supply). The power amplifier's frequency response is approx. 670kHz. 

    http://www.ti.com/lit/ds/symlink/afe031.pdf

    AFE032 is slightly more powerful PLC analog front-end controller. AFE032's power amplifier output can provide up to 12V peak to peak voltage swing with continuous current up to 1.9A_peak (with 15V PA power Supply). Its full power BW is approx. 1MHz. 

    http://www.ti.com/lit/ds/symlink/afe032.pdf

    If you provide me with design and product requirements, I can recommend the IC on your behalf.  

    Regarding to MCUs, you may use any MCU that is familiar to you (as long as comparable or similar to TMS320F28379D performance specification). You do not have to use TMS320F28379D micro that recommended by C2000 LaunchPad XL development board. 

    Regarding to development sample code, you are able to download them in the link below. If you have any technical questions, I will be available to support, recommend and explain any technical issues that you may encounter. 

    Best,

    Raymond

  • Thank you for your reply.

    But my main question remains:

    I have read the pdf that you linked, and I have downloaded

    http://www.ti.com/tool/download/C2000WARE

    The example code according to the pdf you linked is:

    C:\ti\c2000\C2000Ware_x_xx_xx_xx\device_support\f2837xd\examples\cpu1

    The available example projects are:

    • boostxl_afe031_f28379d_pwmmode

    • boostxl_afe031_f28379d_dacmode

    • boostxl_afe031_f28379d_rx

    I have uploaded the example code to two LAUNCHXL-F280049C boards, and it works just fine.

    But now to the problem:

    The last example code: "boostxl_afe031_f28379d_rx" contains a file named: "fsk_corr_detect.lib"

    The code for decoding the signal is in that file.

    A .lib file is a precompiled "library file", meaning that I can use it, but I can not read the code.

    And my job right now is to read and understand this code, this is why I am asking if there is anyway for me to get my hands on a readable version of this file.

  • Hello User,

    Question:

    But now to the problem:

    The last example code: "boostxl_afe031_f28379d_rx" contains a file named: "fsk_corr_detect.lib"

    The code for decoding the signal is in that file.

    A .lib file is a precompiled "library file", meaning that I can use it, but I can not read the code.

    And my job right now is to read and understand this code, this is why I am asking if there is anyway for me to get my hands on a readable version of this file.


    I did not write the code and it was done by TI's MCU group. I will see if that if I am able to get your the copy (I can not sure if it can be released to public, but I will ask). 

    AFE03x IC is sending out analog frequency via Binary Frequency Shift Keying technique. For instance, if one analog frequency at 141kHz that represents logic "0" and other analog frequency at 131kHz that represent "1", you have to convert the analog signal to "1" and "0" through ADC with certain sampling rate. Typically, the ADC sampling rate has to be 10X or greater than the highest receiving frequency.  Once the analog signal is converted digital data, Fast FFT algorithm is performed, which "1" and "0" will be extracted; and the entire process is repeated until the entire message is received. It is a pretty standard decoding technique using MCU.

    There are other decoding technique, and it may be converted the FSK signals using hardware or combined hardware/software techniques. 

    Enclosed is BFSK signal data presented in the Rx line. 

    If you have other questions, please let us know.

    Best,

    Raymond

  • Hi User,

    In the application note that I attached yesterday, you have to email the address below, and request for the source file, see section 5.3.4.

    Here is the link again - 

    http://www.ti.com/lit/an/sprac94c/sprac94c.pdf

    Best,

    Raymond

  • Thank you, I actually missed that part of the document.