Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with mikroC cant see LCD cursor

Status
Not open for further replies.

ABOELLEEL

Junior Member level 3
Junior Member level 3
Joined
Apr 6, 2011
Messages
31
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Egypt
Activity points
1,483
I am making interface by LCD 4x20 with pic18f458.
First problem i cant see cursor when i send all orders after sending order by order (after be bored i sent all possible orders in mikroC)??
second i cant see orders to control cursor??
 

If you can't see the cursor then remove
Code:
 Lcd_Cmd(_LCD_CURSOR_OFF);
from the program. What do you mean by sending orders?
 

I cant because it very long and in many files (and of course secret)
but i want order in mikroC to appear cursor

- - - Updated - - -

Order means commands as Lcd_Custom_Cmd(LCD_BLINK_CURSOR_ON);
 

yes.................:)
and i deleted all Lcd_CURSOR_OFF :D
 

Have you added the code
Code:
 Lcd_Cmd(_LCD_BLINK_CURSOR_ON);
?
 

Lcd_Custom_Config(&PORTB,7,6,5,4,&PORTC,4,3,5); // DB4 14, DB5 15, DB6 16, DB7 17, RS 42, E 43
////Lcd_Custom_Cmd(Lcd_CURSOR_OFF); // Turn cursor off
Lcd_Custom_Cmd(LCD_TURN_ON);
Lcd_Custom_Cmd(LCD_BLINK_CURSOR_ON);
Lcd_Custom_Cmd(LCD_FIRST_ROW);
Lcd_Custom_Cmd(LCD_MOVE_CURSOR_LEFT);
 

Which version of mikroC are you using?

In proteus I am getting the blinking cursor. see image.
 

Attachments

  • ss46.jpg
    ss46.jpg
    169.2 KB · Views: 112
Last edited:

I noticed that when i press reset button for long time i can see the cursor and it change position also!!!!!!!!!!!!

- - - Updated - - -

mikroC v8.2.0.0
 

Lcd_Custom_Config(&PORTB,7,6,5,4,&PORTC,4,3,5); // DB4 14, DB5 15, DB6 16, DB7 17, RS 42, E 43
////Lcd_Custom_Cmd(Lcd_CURSOR_OFF); // Turn cursor off
Lcd_Custom_Cmd(LCD_TURN_ON);
Lcd_Custom_Cmd(LCD_BLINK_CURSOR_ON);
(1)
Lcd_Custom_Cmd(LCD_FIRST_ROW);
(2)
Lcd_Custom_Cmd(LCD_MOVE_CURSOR_LEFT);

Hi ABOELLEEL;
I'm never using the embedded LCD commands but I have a thought:
- the above (1) instruction sets the cursor to its home (very first) position (1:1), is not it?
- but the (2) moves the cursor to left, I think to an invisible position
 

hi aboellel,

why not you use lcd_cmd()? you first pin details in top of the program.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top