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 ArticleRE: Error itoa function and LCD (freshdesing)
Are defined as: rom const char aaa[]="Hello"; ram const char bbb[]="Microchip"
View ArticleRE: 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 ArticleRE: 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 ArticleRE: 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 ArticleRE: 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