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.
LCD failing when i use a pointer
- Aleksandar.Mitrovic
- mikroElektronika team
- Posts: 1697
- Joined: 11 Mar 2015 12:48
Re: LCD failing when i use a pointer
Hi,
Can you please attach me your project to see how you wrote this code?
Kind regards,
Aleksandar
Can you please attach me your project to see how you wrote this code?
Kind regards,
Aleksandar
Re: LCD failing when i use a pointer
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.
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.
- Aleksandar.Mitrovic
- mikroElektronika team
- Posts: 1697
- Joined: 11 Mar 2015 12:48
Re: LCD failing when i use a pointer
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
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