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-POSMGR: How to change the clock cycle numbers of tformat encoder?

Part Number: BOOSTXL-POSMGR

Hello, expert:

      I see about tformat encoder page 13 of the document (www.ti.com.cn/.../tidue74c.pdf has the description "In this state,CLB generates a number of clock cycles corresponding to the data to be sent by encoder -- which in turn is dependent onthe command transmitted. Once the number of SPI CLKs generated matches the data bits transmitted by encoder, the transaction is complete and FSM1 moves back to IDLE state waiting for next operation to be Triggered. "So how is the corresponding clock cycle triggered?If my clock frequency is correct, how can I modify the program to get my clock cycle number correct?

Best Regards

Johnson Alanl

  • There is a function in the library to setup a command. The number of clocks this function uses in the setup depends on the command. 

  • hello ,

    Thank you very much for your reply, but I am not sure which functions can be modified to get the clock number I want.

    Best Regards

    Johnson Alanl

  • Johnson,

    When I responded last night I didn't have the code in front of me.  The function name is PM_tformat_setupCommand()

    For each command there is a formula for clocks to send and clocks to receive.  For example, below, the commands for DATAID0, 1, 7, 8 and C all have the same size. 

  • Lori,

    Thank you very much for your reply.Now I see what you mean, that is, the function (PM_tformat_setupCommand()) can determine the number of clocks, in other words, once the function is consistent, it has a fixed number of clocks.What puzzled me was that when I used the same function (PM_tformat_setupCommand()) and changed the channel that generated the clock waveform from PWMB to PWMA, the number of cycles of the clock waveform also changed.

    Best Regards

    Johnson Alanl

  • Johnson,

    Double check all the connections in the CLB.

    Make sure the values written to the CLB via tformat_configureCLBLen() are being picked up and loaded into the right blocks by the HLC.  If you switched around the functionality of the specific counters, as an example, the HLC program may need modification. 

    Regards

    Lori