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.

TMS570LS3137 :How to realize function?USE IDE?

 HI !

 Thank you !

 I want to realize the gpio output the high  or  low    .

A string of data,the time of every bit  is  1.56us, mean the rate is 641K

for example     0x4E6C63   10011100110110001100011B  

 the "1" output the high,and  "0"output the low

I try the ide and htu refer "SineWaveGenerationUsingPWMWithHercules™N2HET andHTU"  SPNA217,but failed 

 because duty 100% and 0% gpio output always high and low 

I need  help  Thank  you!!

  • Please help me
    Thank you!
  • Zhao,

    Could you pls give little more details on whats exactly not working ?

    Instead of 0/100 % duty cycle if you change the data to be 50% duty cycle then do you at least see anything on the output ? This is just to make sure you have all the pinmux configurations etc done properly to get the example working as is.

    There could be multiple ways to achieve this even with HET or a simpler RTI interrupt for 1.56us to toggle any GPIO pin if you can afford to.
  • hi Karthik
    Thank you for your reply!
    I can achieve this even with HET
    RTI interrupt precision could reach 1.56us? I try only reach the 1us;
    Because of the data I want to send is big.about 1500 bit,and the data is variable and may the bit of "1"or"0" joint,so I want to use the htu function.you change the data to be 20% ,25, 30.....and so on ,not 0%,not 100%duty cycle,all normal output.Just after 0%duty cycle data is also low and always low.
    Similar after 100%duty cycle data is also low and always high.
    for example 20%,25%,30%,0%,10%,30, output normal,normal,normal,low,low,low,
    for example 10%,25%,100%,20%,10%,output normal,normal,high,high,high,
    "SineWaveGenerationUsingPWMWithHercules™N2HET andHTU" SPNA217