"ToString" function overwrites mapped variables !!
Posted: Sat Nov 20, 2010 11:12 pm
Hello,
In my programm i got mapped variables like A=0x20 and B=0x21. At these positions is normaly 0 because it is cleared by porgrammstart. Everything works fine, till i use the ToString$(RTC_sec_1) - function.
In the assemblercode in found MOVWF FSR.
At wich position is the function in use? It seems so, like it is in my mapped area from0x20 till 0x29 in the PIC 16F876.
A LCD printout from the mapped register before stringfunction gives 0.
A LCD printout from the mapped register after stringfunction gives 138. => there is my variable overwritten!!
Who helps me?????????????????
In my programm i got mapped variables like A=0x20 and B=0x21. At these positions is normaly 0 because it is cleared by porgrammstart. Everything works fine, till i use the ToString$(RTC_sec_1) - function.
In the assemblercode in found MOVWF FSR.
At wich position is the function in use? It seems so, like it is in my mapped area from0x20 till 0x29 in the PIC 16F876.
A LCD printout from the mapped register before stringfunction gives 0.
A LCD printout from the mapped register after stringfunction gives 138. => there is my variable overwritten!!
Who helps me?????????????????