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
LCD4bit problem
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)...
thx for answers...
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
Last edited by intercode on 15 Sep 2006 12:30, edited 1 time in total.
yeppp..
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
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.