LCD failing when i use a pointer

Post your requests and ideas on the future development of mikroC PRO for FT90x.
Post Reply
Author
Message
Ramin518
Posts: 6
Joined: 03 Jun 2016 07:12

LCD failing when i use a pointer

#1 Post by Ramin518 » 20 Jul 2016 13:47

In our project , I use DS1307 (RTC) and DS18B20 (Thermo sensor) and a 2*16 LCD for monitoring Date , time and Themperature.
My Problem is when i using a pointer to define day's name (for exp: "Wed") , so the result affected to second counting and disorient other menus on LCD.
please guide me to resolving this problem.

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: LCD failing when i use a pointer

#2 Post by Aleksandar.Mitrovic » 22 Jul 2016 09:23

Hi,

Can you please attach me your project to see how you wrote this code?

Kind regards,
Aleksandar

Ramin518
Posts: 6
Joined: 03 Jun 2016 07:12

Re: LCD failing when i use a pointer

#3 Post by Ramin518 » 22 Jul 2016 13:45

Dear
I guess my problem is related to indirect addressing but i couldn't solve it.
I use PIC16F876A in my project and have a problem to monitor an unsigned char value on 2*16 LCD in programming below,

char WATER_percent, SPEED_percent;
char *Water_string, *Speed_string;
.....
Lcd_Out(1,1,"Pump Water %");
Lcd_Out(2,1,"FAN Speed %");
WordToStr(WATER_percent, Water_string);
WordToStr(SPEED_percent, Speed_string);
Lcd_Out(1,15, Water_string);
Lcd_Out(2,15, Speed_string);

so in compiler's window i have ""IRP Bit must be set manually for indirect access to ?lstr_file name<--(Project Name) "
and the labels on many menus on LCd and other thing on LCD disoriented.

If the above info not enough for you, i'll send you complete source code.
best regards.

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: LCD failing when i use a pointer

#4 Post by Aleksandar.Mitrovic » 26 Jul 2016 14:30

Hi,

You can send me code which you have used for this example, and I will take a look at it.

The problem can be in the PIC16 family memory banks and the IRP bit.
Since our compiler is not capable to set IRP bit.
Have you try to use some PIC18F for this?

Kind regards,
Aleksandar

Post Reply

Return to “mikroC PRO for FT90x Wish List”