Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Float to char

$
0
0

Hi Ki,

I am using F28069 Piccolo series DSP (C2000 application). Currently I am checking the result in CCS Watch window

What ever be the number format the Bchar value it shows as 004C5....

Adding to Rafael' Reply,

I am expecting Bchar to be an array of ASCII values,  0x33 0x2E 0x32 0x32 0x33 0x34 0x35 0x36 0x00 so that in the Terminal / TeraTerm window I can see the value 3.223456

sciamsg function is as shown below

void scia_msg(char * msg)

{

int i;

i = 0;

while(msg[i] != '\0')

{

scia_xmit(msg[i]);

i++;

}

}

void scia_xmit(inta)

{

while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {}

SciaRegs.SCITXBUF=a;

}

--- Madan


Viewing all articles
Browse latest Browse all 91752

Trending Articles