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.

Can someone help with random bitframe?

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hello. I am using TMS320f28335 with ezdsp. To solve my problem I need to generate a random sequency of bits (for example 8  bits) and save them in a register of the DSP. Then I need a signal with that sequence in one of the outputs of the DSP.

Can someone orientate me in how to do this? What registers do i have to use to save the bits? I am very new programming dsps and only worked with pwm and leds but I don't know how can I do this. 

Thank you.

  • Hello,

    Since you mentioned you were new to C2000, I recommend taking one of the training workshops to learn more about the device.
    You can find the training resources here:
    www.ti.com/.../support.page
    There may not be a workshop available specific to the f2833x devices but any of these trainings will still provide a good foundation for any C2000 device.

    In particular, the 1 day workshop is a good option to cover much of the C2000 functionality.
    training.ti.com/c2000-mcu-1-day-workshop-8-part-series

    Based on this, you can decide on specific communication interface and sensing/control peripherals to use to generate outputs in your project. You can review software example projects provided in controlSUITE. After installing controlSUITE, the examples can be found here for the f2833x:
    controlSUITE\device_support\f2833x\v141\DSP2833x_examples_ccsv5

    Elizabeth
  • For a random number, you can include the C standard library (stdlib.h ) and call either srand() or rand() depending on your needs.