Neyolight
Full Member level 5
str[11] or any other number just gives me a bigger piece of garbage on LCD and hyperterminal.
For example : str[20] gives me âájåRánPåRçÏÙ
I am using C18 C Complier v3.40
I wish I could paste my entire code but my supervisor has issued a warning to me yesterday not to post my work online !
I will try to explain my work in words! I am sure my timers are initialized properly. Timer 0 creates an interrupt every second and Timer 1 acts as a counter to read RC1.
ReadTimer1(); gives an "int" output --> ultoa converts that to string --->LCD write string put it on the LCD / putrsUART do the same
For example : str[20] gives me âájåRánPåRçÏÙ
I am using C18 C Complier v3.40
I wish I could paste my entire code but my supervisor has issued a warning to me yesterday not to post my work online !
I will try to explain my work in words! I am sure my timers are initialized properly. Timer 0 creates an interrupt every second and Timer 1 acts as a counter to read RC1.
ReadTimer1(); gives an "int" output --> ultoa converts that to string --->LCD write string put it on the LCD / putrsUART do the same