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.

How to configure external peripherals

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hello everyone.

 

I’m very new to DSP CCS, for my motor control application project I’m using TMS320F28335 processor. I want to interface my processor with external controller with CAN protocol, PC through RS232, and encoder through quadrature encoder module. I have referred datasheet of TMS320F28335; it was not detailed explanation of register configuration. Please someone help me how to configure I/O ports of CAN, UART and etc, with some examples

 

With regards

Raghavendra  

  • Raghavendra said:
    I have referred datasheet of TMS320F28335; it was not detailed explanation of register configuration. Please someone help me how to configure I/O ports of CAN, UART and etc, with some examples

    The peripheral registers are described in reference guides specific to the peripheral.  This document lists all of the relative reference guides for a particular device family:

    http://www.ti.com/lit/spru566

    For examples I suggest starting with the C/C++ header files and peripheral examples.  For 2833x and CCS 4 these can be found in www.ti.com/controlsuite

    Other getting started links here:

    http://processors.wiki.ti.com/index.php/Getting_Started_with_C2000_Links

    -Lori

  • Chee Shen said:

    I'm very much interested in the matrix operation in C200 too.

    Some searching in internet only tells C6000 can do the matrix operation handly, but none regarding C2000 implementation.

    Shen,

    C28x does not have any special hardware to accelerate matrix operations, but it can certainly do them in C or assembly.

    We don't have a library today, but if you could answer some questions it will help us understand the need for the future.

    Could you give more details on the application and the need for matrix operations. 

    Is the only operation of interest a multiplication?  What size matrix?  Are you interested in a IQmath version or a floating-point version?

    What is the benchmark you are targeting (i.e. how many cycles?).

    Thank you for your input.

    Lori

     

  • thanks lori

      I'm interested only in matrix multiplication floating point.

    the matrix multiplication and order of matrix is (3x3 with 3x3) and (3x3 with 3x1)

    example of my matrix element cos(0.00000008381903)

    can u suggest me how to interface external memory to TMS320F28335 processor with 16bit data bus and 16 bit address bus.  i'm using ezDSP development kit for my project.

    please give me any sample code for testing.

    with regards

    Raghavendra

  • Re: XINTF example, there is one for CCSv3.3 (SPRC530) or CCSv4 (www.ti.com/controlsuite )

     

    C:\tidcs\c28\DSP2833x\v131\DSP2833x_examples\dma_xintf_to_ram

    C:\ti\controlSUITE\device_support\f2833x\v132\DSP2833x_examples_ccsv4\dma_xintf_to_ram

     

    We're looking to add some matrix math examples as well

     

  • Hi Lori,

    Without those hardware in C2000, using C is possible but most of us are looking for faster operation(e.g with library  in assembly), since the system clock for TMS320F28335 is only 150MHz. Says in an application of 20kHz sampling period, the number of cycle available in each cycle is only 7500. TMS320F28346 with 300Mhz CC is not a solution since it does not have built in ADC. 

    1)

    The C2000 series DSP is meant to real time control of machines,and etc which utilizing QEP,CAP,ADC,and PWM. When come to higher level of control of machine, the state space model of machine( matrix size may ranged from 2x2 to 5x5, or slightly more) were occasionally required in control algorithm, depends on nature of control principle.State space models are able to be discretized and programmed in DSP in non-matrix form, but there are cases in which the non-matrix form is hesistate to be used. Besides machine control, some principle in signal processing, like filtering, maybe needed, on line transposition of matrix is required sometimes.

    2)

    Operations interested are arithmetic matrix operation(add,substract,multiply), matrix transposition, determinant.

    3) no benchmarking

     

    Regards,

    Chee Shen

    2812 and  28335 user

  • Dear Lori,

     

    I'm using TMS320F28335 TM DSP Platform Code Composer Studio DSK V3.3 IDE, and eDSP tool for F28335

    i facing two problems

    problem 1)

        when i tried with example programs eCAN communication program its working for internal can communications

        the example programs are * ecan_a_to_b_xmit and * ecan_back2back

        When i used ecan_back2back example program for Externel CAN devices. the transmission is happening but while receiving i'm not able to receive desired data

        But in the case of ecan_a_to_b_xmit example program only transmission part is happening no reception.

    problem 2)

        i can only run my program in only in debug mode alone, please help me out how to generate .hex file from .out file while re-build the project.

  • Are there any news on the support for matrix operations for floating point operations for c28335 (or the new c28069) ?