LCD_rEAD

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
rspadim
Posts: 140
Joined: 19 Jul 2006 08:56
Location: brazil

LCD_rEAD

#1 Post by rspadim » 24 Aug 2006 06:19

CAN I READ FROM LCD???
IF NOT, WHY I NEED RW CONFIGURATION PIN??? COULD I USE JUST 6 PINS INSTEAD 7??

picdog
Posts: 390
Joined: 28 Feb 2006 09:32

#2 Post by picdog » 26 Aug 2006 19:23

if you need this just now, simply use the default lcd library, that uses only 6 pins (e.g. 2,3,4,5,6,7) for lcd on a choosen port. Just choose a free port - you can use the first two pin for your other purposes.
picdog
... a proud user of MikroElektronica EasyPic3, EasyPic4, BigPic4, MikroC for PIC, EasydsPIC2, dsPIC-Pro2, LV24-33 and MikroC for dsPIC :)

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: LCD_rEAD

#3 Post by zristic » 28 Aug 2006 08:18

You can read LCD. It has internal memory for storing your own characters. You can read the memory in order to verify if you stored your own characters properly. This is very useful when you want to insert cyrillic or some other non-latin characters and special signs.

rspadim
Posts: 140
Joined: 19 Jul 2006 08:56
Location: brazil

#4 Post by rspadim » 28 Aug 2006 14:15

only 6 pins??? see the mikroC help manual:


void Lcd_Config(unsigned short *port, unsigned short RS, unsigned short EN, unsigned short WR, unsigned short D7, unsigned short D6, unsigned short D5, unsigned short D4);
void Lcd_Custom_Config(char * data_port, char D7, char D6, char D5, char D4, char * ctrl_port, char RS, char WR, char EN);
void Lcd8_Config(unsigned short *ctrlport, unsigned short *dataport, unsigned short RS, unsigned short EN, unsigned short WR, unsigned short D7, unsigned short D6, unsigned short D5, unsigned short D4, unsigned short D3, unsigned short D2, unsigned short D1, unsigned short D0);


all library need :
RS
EN
WR
D7
D6
D5
D4
(d1-d3 for 8 bits, but i'm using only 4bits)
7 pins :( could i set WR and use it to another use???

picdog
Posts: 390
Joined: 28 Feb 2006 09:32

#5 Post by picdog » 28 Aug 2006 20:27

Hello rspadim,
Yes, 6 pin :D I try to verify the things I write on the forum 8) In this specific case you can trust me because I used this in many project and in one very recently: only 6 pin connected from the choosen port and the LCD. In this case I use the simple Lcd_init function. E.g. if you specify PORTB as port, you need only to use RB2, RB3, RB4, RB5, RB6, RB7. I am sure RB0 and RB1 are free because...I use them for other purpose on my application and PCB.
Obviously in this manner you cannot read from the LCD because R/(n)W is grounded. See the white letters in the "LCD 2x16" of EP3. Also XOR did recently as I remember a post on the capability of this: if you need also to read, you have for example the Lcd in 8 bit mode (on EP3 on the other socket on bottom right) and you have your RW pin available at RB5, or you can use the other libs you cited and connect the pin where you prefer (according to the limitations of the same port etc..)
Hope this helps,
picdog
... a proud user of MikroElektronica EasyPic3, EasyPic4, BigPic4, MikroC for PIC, EasydsPIC2, dsPIC-Pro2, LV24-33 and MikroC for dsPIC :)

rspadim
Posts: 140
Joined: 19 Jul 2006 08:56
Location: brazil

#6 Post by rspadim » 30 Aug 2006 14:55

can anyone put a function to read using lcd 4bits? this could be added in mikroc library...

Post Reply

Return to “mikroC Wish List”