Library Lcd, Lcd_Init

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
Laurent Vallin
Posts: 41
Joined: 05 Aug 2012 21:02

Library Lcd, Lcd_Init

#1 Post by Laurent Vallin » 14 May 2019 18:19

Hello

By analyzing the Lcd_Init routine of the mikoE Lcd library with the simulator
we find the following steps:
...
- 8-bit mode - 1 line - 5x7 format: 3 times in a row - Ok
- 4-bit mode - 1 line - 5x7 format - Ok
... 4-bit mode
- 4-bit mode - 2 lines - 5x7 format - Ok
- moving the cursor to the left - ????
- Clear instruction

No instructions defining Entry Mode set.

move the cursor to the left must be replaced by an Entry Mode set command:
incrementation of the cursor without offset of the screen (I / D = 1, S = 0).

If, however, the initialization routine from the user's point of view works is because the Clear statement (last command of the Lcd_Init routine) clears the screen with the cursor in the starting position and by default when switching on I / D = 1 and S = 0.

Best regards
---
Laurent Vallin

Post Reply

Return to “PIC PRO Compilers”