Quantcast
Channel: Error itoa function and LCD
Browsing latest articles
Browse All 14 View Live

Error itoa function and LCD (freshdesing)

When I use the iota function and I don´t try to send it to the LCD, the lcd damages.The next sample works correctly: LCD: ********************** *aaaaa Hello                  * *Microchip...

View Article


RE: Error itoa function and LCD (frankcf1)

How are "b" and "a" defined? 

View Article


RE: Error itoa function and LCD (freshdesing)

Are defined as: rom const char aaa[]="Hello"; ram const char bbb[]="Microchip"

View Article

RE: Error itoa function and LCD (dhenry)

ORIGINAL: freshdesing Are defined as: No, the question was "How are 'b' and 'a' defined?". These are the 'b' and 'a' you are using as arguments to itoa().

View Article

RE: Error itoa function and LCD (frankcf1)

Not those. You have itoa(a, b); What are a, and b? a should be an int and b should be a pointer to a string.

View Article


RE: Error itoa function and LCD (freshdesing)

I am sorry. I was hurry and read the answer very quickly. unsigned int a; char b[5]; I tried "int a", but did not work. Apologies again. Thanks. I am using MPLAB 8.0 and the C18 copmiler, at the...

View Article

RE: Error itoa function and LCD (frankcf1)

Depending on the size of a 5 is not enough for b. You need to have room for the NULL at the end and a possible minus sign. Therefore, b should at least be char b[7];

View Article
Browsing latest articles
Browse All 14 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>