Search for number conversion function libraries

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

cross mob
Anonymous
Not applicable

Is there a good place to start to research psoc or gcc libs I can use in PSOC4 specifically for std functions like itoa or other number conversion functions.

   

My end goal is to pull data from eeprom and print to serial port as I start to develop code to interface with flash read/write APIs.

   

There isn't an easy method to convert eeprom address and data to ascii (strings) to send to a serial port.

   

I had some good library calls in an old element14 include that I used to do em_eeprom reads and dumps but having problem making them port.

   

I would like to use the below standard scb function and feed to it a number conversion functions that accepts flash memory location as parameter.

   

UART_UartPutString("\r\nNormal String Output \r\n");

   

Any help is appreciated.

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You can use sprintf() from stdio.h to convert binary to ASCII. Have a look here.

   

 

   

Bob

0 Likes