Menu
Author: Topic: mikroC PRO for PIC Build v4.15 (Read 15740 times) 0 Members and 1 Guest are viewing this topic.
$begingroup$ Mohsin, you should learn that step 1 of solving your own problems is to reduce them to simplest form. In this case, for example, your issue has nothing to do with the RTC.
Therefore, before asking, you should entirely strip the RTC out of your code. Make some code that just prints something stupid like 'abcdef' to the LCD. Include any code that might help us understand what's going on - like the LCD subroutines. Also include data sheets for relevant parts, like the LCD. By the time you're done doing all this, chances are good that you've solved your own problem.
$endgroup$–Aug 10 '16 at 16:07. The solution is quite simple.
I experienced the same problem initially. But I had to find a way around it.If you issue this command,LcdOut(3,1,'text');Your text would start on column 4 of row 3. The trick is, if you want to display your first character on first column of 3rd row, you count 3places backwards. You do this by subtracting 3 from the column value as shown below:LcdOut(3,-3,'text');So, if I want text to start on column 6 of the 3rd row, I simply add 5(not 6) to -3 in the command line as shown below:LcdOut(3,2,'text');Remember: -3 + 5 =2.The same explanation holds for the 4th row.