LCD4bit problem

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
intercode
Posts: 3
Joined: 14 Sep 2006 00:35

LCD4bit problem

#1 Post by intercode » 14 Sep 2006 01:00

hi first,

anyone tests 4bit LCD connection? i connected my LCD on AVR like in manual, but this will not work. also syntax LCD_Out will not work too...

sorry for my brocken english...
THX

vanja
mikroElektronika team
Posts: 253
Joined: 27 Jan 2005 15:13
Contact:

#2 Post by vanja » 14 Sep 2006 07:52

Can you tell as more, how did you connect, some pins of LCD has to be put on GND if they are not connected.

intercode
Posts: 3
Joined: 14 Sep 2006 00:35

#3 Post by intercode » 14 Sep 2006 16:28

hi,

I connected LCD pin D4,5,6 and 7 on atmel,GND and D0 to D3 on GND.R/W i connected first time on GND then on atmel pin, both without effect...i tested some syntax but without effect too...the last line of my code, is compiling fine but this no work on atmel (mega8)...

Code: Select all

Lcd4_Custom_Init(PORTC,3,2,1,0,PORTC,4,6,5);
     //LCD_config(PORTC,4,5,6,3,2,1,0);       // RS,E,RW,D7,D6,D5,D4
     Lcd4_Custom_Cmd(LCD_TURN_ON);
     Lcd4_Custom_Cmd(LCD_UNDERLINE_ON);
     //Lcd4_Custom_Out(1, 1, 'test');//line,char
thx for answers...
Last edited by intercode on 15 Sep 2006 12:30, edited 1 time in total.

vanja
mikroElektronika team
Posts: 253
Joined: 27 Jan 2005 15:13
Contact:

#4 Post by vanja » 15 Sep 2006 07:54

Before you program a chip, you have to see first row dark. That means that you get you LCD connected right. Than you can try program chip with you program.

intercode
Posts: 3
Joined: 14 Sep 2006 00:35

#5 Post by intercode » 15 Sep 2006 12:27

yep,
i checked my developer board again. contrast-resistor was broken, i changed it, now is working fine...

THX for help...

Cherep
Posts: 2
Joined: 09 Sep 2008 09:50
Location: Russia, NW, Cherepovets

yeppp..

#6 Post by Cherep » 09 Sep 2008 10:01

OS Type: Windows XP
MCU: ME-BIGAVR2
Crystal: ATMEGA128
Compiler: mikroPascal for AVR
Hardware: LCD Adapter

Description:
Has thrust both LCD, has connected to a computer on USB, has established microPASCAL for AVR... I Study examples, with simple like all it is normal, but has faced a problem with examples for two-lower case LCD.
Symptoms:
1. At inclusion segments of the top line are completely lit all.
2. At compilation and record of an example in the controller the second number is completely lit also.
3. The expected inscription on the screen is not present.
4. At clearing memory all becomes as in p.1

Code: Select all

:
{
* Project name:
Lcd4 test
* Author:
MikroElektronika, September 2006.
* Description:
This program demonstrates how to use lcd4 library.
* Test configuration:
MCU: ATmega128
Dev.Board: Big AVR
Oscillator: External, 10 MHz
Ext. Modules: LCD
SW: mikroPascal for AVR 4.00
* NOTES:
}
program lcd4_test;
begin
Lcd_Init(PORTC, 3, 2, PORTC, LCD_HI_NIBBLE);
Lcd_Out(2,1,'mikroElektronika');
end.

Cherep
Posts: 2
Joined: 09 Sep 2008 09:50
Location: Russia, NW, Cherepovets

#7 Post by Cherep » 11 Sep 2008 12:55

The problem is solved. Module LCD has appeared faulty
73! Aleksey

Post Reply

Return to “mikroPascal for AVR General”