Quantcast
Channel: Error itoa function and LCD
Viewing all articles
Browse latest Browse all 14

Error itoa function and LCD (freshdesing)

$
0
0
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                      *
**********************

rom const char aaa[]="Hello";
ram const char bbb[]="Microchip";
void main(void)
{XLCDClear();
XLCDPutRomString("aaaaa ");
XLCDPutRomString(aaa);
XLCDL2home();
XLCDPutRamString(bbb);




But I execute  itoa at the middle of the program, although I don´t send it to the LCD, the LCD damages.
LCD:
    rom const char aaa[]="Hello";ram const char bbb[]="Microchip"; void main(void){XLCDClear(); XLCDPutRomString("aaaaa "); itoa(b,a); XLCDPutRomString(aaa); XLCDL2home(); XLCDPutRamString(bbb);} 



Somebody can help  to me? I am making something bad with the iota function.
Very thanks.


Viewing all articles
Browse latest Browse all 14

Trending Articles



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