LCD on PortA PIC18F2525

General discussion on mikroPascal.
Post Reply
Author
Message
AndAway
Posts: 29
Joined: 04 Mar 2009 16:35

LCD on PortA PIC18F2525

#1 Post by AndAway » 14 Sep 2009 18:48

Hi Forum
Can I connect a 2x16 LCD to PortA? It has 6bits (0:6). What I mean is that there is no pin on PortA avaiable for R/W pin (which is not used, but in the LCD library it is stated that 'RW pin is configured as output and set to zero'.
To sum up will it work:
Lcd_Init(PortA);

AndAway

piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

#2 Post by piort » 15 Sep 2009 04:08

hi,
that will be easy to do with the pro version...maybe you can go chk there... the old version will disaper soon ...

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#3 Post by nikola.kostic » 17 Sep 2009 15:25

You can use port A for LCD. You need to connect RW pin of your LCD to GND.

AndAway
Posts: 29
Joined: 04 Mar 2009 16:35

#4 Post by AndAway » 21 Sep 2009 19:51

Hi Forum
Should I use Lcd_Init(PortA)? I have concerns about the default pin settings (it starts assigning pins from port.7).
Can I use this declaration:
Lcd_Config(PortA, 0, 1, 2, 3, PortA, 4, 5, 6??); <- what about the PortA.6
I use external oscillator so there is no RA6 or RA7.

Andrew

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#5 Post by nikola.kostic » 23 Sep 2009 09:20

You should use Lcd_Config and it is described and shown in mikroC Help how to do it.

Post Reply

Return to “mikroPascal General”