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.

Reading integers using SCI

Part Number: LAUNCHXL-F280049C

I have a problem converting integer to char array and I have no idea how to do it. What I'm doing basicaly is merge two modified example codes(epwm updown and sci interrupt) and trying to read the values using SCI.

compAValue = EPWM_getCounterCompareValue(epwmInfo->epwmModule, EPWM_COUNTER_COMPARE_A);
// convert EPWM_COUNTER_COMPARE_A to char array maybe?

I'm not sure if I'm doing it right. It's a really new concept for me to be hones I'm still trying to learn. I'll be looking out for your answers. Thank you!

  • Hi,

    Can you explain more about your requirement? Do you need to provide the inputs to above API through SCI.

    The better way would be to give the corresponding integer value of parameters(should be less than 256) and then convert it to integer in order to pass it to the API.

    Thanks

    Vasudha

  • Hi Vasudha!

    What I'm trying to do is read a pwm signal from terminal by using SCI. I did some changes to my code and managed to get some results. But I got a new problem now. What I see on the terminal is not what I wanted, it beheaves differently than what I expected. I'm new to the forum so before go further should I mark this post as resolved and post another thread or should I continue here?

    Thank you for your time

    Anıl

  • Hi again Vasudha!

    Since there are no further comments from you I'll mark this as resolved.

    Thank you for your time!

    Anıl