Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE
I'm having some trouble with my terminal. I'm trying to read a pwm data from my terminal but the printing order is all messed up and meaningless.
int i = 0;
for (i = 0; i<20; i++)
{
SCI_writeCharBlockingNonFIFO(SCIA_BASE, (uint16_t)(*(msg+i)));
DEVICE_DELAY_US(50000);
ltoa(compAValue,buffer);
SCI_writeCharArray(SCIA_BASE, (uint16_t*)buffer,5);
DEVICE_DELAY_US(50000);
SCI_writeCharBlockingNonFIFO(SCIA_BASE, (uint16_t)(*(prc+i)));
DEVICE_DELAY_US(50000);
}
This code remains in a code block that changes the duty cycle of a pwm signal. But it stops the cycle change when I try to run it. (msg,prc and buffer is defined in globals. compAValue is defined in cycle change main.) I'm modifying examples to learn better but I can't seem to resolve what I occured right now. I'll be waiting for your answers. Thank you ^^