Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

imdzac
Level 1
5 sign-ins First reply posted First question asked
Level 1

BOARD :PSOC5LP , CY8CKIT-059, float printing is not working with USB-UART -PSOC5LP

 

CODE :

sprintf(charbuf,"%f\n",adc_volt) //adc_volt is float, charbuf is array
USBUART_1_PutString(charbuf);

OUTPUT : Null

 

0 Likes
1 Solution
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

imdzac,

The solution proposed in the link has nothing to do with UART or USBUART.

It has all t do with solving your float issue with the sprintf().

Please try it.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
4 Replies
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

imdzac,

Refer to the solution in this link:  Unable-to-print-float-using-uart 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
imdzac
Level 1
5 sign-ins First reply posted First question asked
Level 1

Please note that my question is related to USBUART and not for UART.

My question is still not answered please.

0 Likes
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

imdzac,

The solution proposed in the link has nothing to do with UART or USBUART.

It has all t do with solving your float issue with the sprintf().

Please try it.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
imdzac
Level 1
5 sign-ins First reply posted First question asked
Level 1

Thanks for your suggestions

0 Likes