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.

TMS320F28379D: CLB Counter Event Up/Down

Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSCONFIG

I'm trying to implement an additional QEP channel using the CLB and the first step is to determine if the counter supports Up and Down Counting using events?  I have the counter counting up using but I cannot seem to find the method for Up/Down using an Input.  I assume this can be done with a CLB_selectCounterInputs but prefer not having CPU intervention.

-Mark

  • Mark,

    Yes, the CLB counters can count both up and down. To configure up or down please click on the counter element in sysconfig and look for the up/down count controls.

    Regards,
    Peter

  • I'm aware of using the dialog to configure up/down mode however there is no interface to allow for the Mode Input to control direction in event mode.  My objective is to create a LUT to compute the direction and clock signals but there is no interface to allow for counters to be controlled via these inputs.  

  • Mark,

    I am looking at COUNTER_0 in SysConfig. Mode1 determines whether the count us increment or decrement. When I click on mode1 I see many options that could become the sources. For example, if I select LUT_1.OUT, the output signal from LUT_1 will determine the up- or down- count in this COUNTER_0.

    Regards,
    PEter