1000 Threads found on edaboard.com: Lcd Code 89s52
plz, can anyone pls post a simple lcd code for me?
I just need to know how to show a word in a 2x16 lcd.
I'm using Microchip PIC16F877A at the same time i want get signal via RF modul
Preferably PIC C language!
I try the routine provided by them but still doesnt work.
Thanks for help
Microcontrollers :: 05-24-2007 06:35 :: kaarthic :: Replies: 4 :: Views: 1942
how to interface lpc2148 graphics lcd code to 4*4 keypad scanning base program ???
i needed help in this...
Microcontrollers :: 02-16-2011 13:28 :: annanita :: Replies: 0 :: Views: 635
This project was not working.
Fixed project is
Microcontrollers :: 05-08-2013 06:43 :: jayanth.devarayanadurga :: Replies: 3 :: Views: 431
i hav worked on character lcd (16*2). now i want to work with a graphic lcd of nokia 3310. can u help in using it !!! i try to read its datasheet but i dont understand any thing !!! lcd has only 8 pins !!!
(i dont know about the programming in C, so please provide some codes in assembly)
please help !!!
Microcontrollers :: 04-12-2008 06:29 :: rahuljin :: Replies: 10 :: Views: 5364
I'm doing a project named "Implementation of I2C Protocol"
I'm required to show the working of I2C protocol using a micro controller (say AT89s52) as a master and two slave-devices.
Slave Device #1: lcd
Slave Device #2: Not decided yet
I did some research on the internet and learned that 89s52 doesn't have hardware I2C interface. (...)
Microcontrollers :: 03-12-2011 03:23 :: shreyas.p :: Replies: 2 :: Views: 1868
What type interface does your lcd have? There are many different kinds.
If the lcd is on a pre-built FPGA development board, what type board is it? The manufacturer probably has design examples that you can download.
PLD, SPLD, GAL, CPLD, FPGA Design :: 11-04-2006 04:42 :: echo47 :: Replies: 28 :: Views: 49873
In order to simulate your code for lcd you need to write lcd behavioural model and then test it.
PLD, SPLD, GAL, CPLD, FPGA Design :: 11-28-2006 23:55 :: vibhute_r_p :: Replies: 11 :: Views: 2469
Hi, can anyone please post a simple lcd code for me?
I just need to know how to show a word in a 2x16 lcd. I'm using ATmega16 and
IAR Workbench for AVR compiletor need C code
Microcontrollers :: 01-20-2007 05:10 :: brolija2dekan :: Replies: 11 :: Views: 4372
I need some lcd codes for 8051 and AVR microcontrollers in C. The code should be very portable, and the delays should also be independent of oscillator frequency to ensure portability. and the library should have all standard C functions like printf, puts, gotoxy, as well as additional functions like cursor on . . .
N.B. I actually (...)
Microcontrollers :: 02-10-2007 11:59 :: RollingEEE :: Replies: 7 :: Views: 3907
this is source code of developed program used for lcd 16*1
;lcd interface 89s52
;D7 14 p1.7
;D6 13 p1.6
;D5 12 P1.5
;D4 11 p1.4
;EN 6 p1.3
;RS 4 p1.2
lcd_DATA_4 .equ P1.4
Microcontrollers :: 03-06-2007 07:27 :: shafee001 :: Replies: 4 :: Views: 1147
did you see the dark lcd characters if not please check your wiring.
and if your controller of your lcd is overheating stop the power supply because it may damage your lcd.
Microcontrollers :: 12-06-2008 12:10 :: xjackal :: Replies: 8 :: Views: 1714
I am need of your help guys... I posted my coding here for 16*2 lcd display.. also am using LPC2148 Microcontroller....
We can display anything in that lcd display....
Please give some ideas.. so that i can rework my code here....
Microcontrollers :: 01-02-2009 09:22 :: harshita :: Replies: 1 :: Views: 4879
I wrote this simple code. the codeVision compiles it without error but it can't make it:
void main (void)
Microcontrollers :: 01-15-2009 17:08 :: Navid T :: Replies: 1 :: Views: 2679
From what I see there is nothing wrong with this code. It is for a hd44780 lcd, and this should initialize for 4 bit mode and then turn on the display/cursor. I get a bunch of warning for parameters without init value having a constant value of zero or something. Aren't initial values for register types always zero?
PLD, SPLD, GAL, CPLD, FPGA Design :: 05-08-2009 04:53 :: aji_vlsi :: Replies: 3 :: Views: 2177
for interfacing between microcontroller and temperature sensor lm35 or any other look on these pages, lcd routine and example projects, VB data loging projects, go here
and if you want to use a mocrocontroller from 8051 family and want to interface with PC through serial or parallel port along with temperature data
Microcontrollers :: 06-16-2009 16:45 :: madicalphy :: Replies: 2 :: Views: 3545
Why do not u use C code. It is more handy.
Check the code of picnote .
It contains lcd code in C.
You can download MikroC evaluation and it will work with the code.
Microcontrollers :: 05-08-2010 06:47 :: amraldo :: Replies: 3 :: Views: 763
i've got a code for my 20 X 4 lcd for my project using LPC2368 microcontroller.and it is working fine but the below portion is not clear to me...please give some light on it..
void lcdInit (void)
lcd_IO_init(); //pin configuration
DelayMs(15) ; (...)
Microcontrollers :: 03-07-2011 06:05 :: bikashh :: Replies: 6 :: Views: 821
Hi, can anyone pls post a simple lcd code for me? I just need to know how to show a word in a 2x16 lcd.
BTW, I'm using Microchip PIC18F452!
My Data Pins go to PortB and the command ports of Enable (E) and Register Select (RS) goes to PortD
E = RD7
Rs = RD6
Preferably in Hi-tech PIC C language!
I try the routine provided by (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 03-11-2011 08:41 :: siddhesh19 :: Replies: 4 :: Views: 5762
my first post, im having issues with lcd on pic 18f1320, have ported the code from 16f84 sample and can place the cursor on the lcd with ease, but just cant get a character to appear.
my code is below, any help would be greatly appreciated
; lcd routine, testing delay routines for 5ms (...)
Microcontrollers :: 06-15-2011 05:02 :: mgbglasgow :: Replies: 10 :: Views: 1118
Please check the following HiTech C code for 16x2 lcd interfacing.
The 1st line of lcd shows blocks.The code is taken from the Samples and only the connection bits are changed.
But,its not working.
However,if I write similar code in microC,it the connections are right.
Thank You. (...)
Microcontrollers :: 07-31-2011 11:01 :: nitsakh :: Replies: 2 :: Views: 1227
I'm very new with FPGA and now I'm trying to display any thing on lcd ,I have spartan -3AN kit .
please let me to say thank you to help me with this code ,this code is correctly working but there are some details in it I can'nt understand it like the delay for( stCharDelay) is about(integer=65536(2^16),and why the counter (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 09-27-2011 15:16 :: lotus_w :: Replies: 0 :: Views: 460
You have to use delay for every instruction.refer the lcd datasheet
PLD, SPLD, GAL, CPLD, FPGA Design :: 09-28-2011 04:07 :: venkateshem :: Replies: 1 :: Views: 1197
can anyone let me know the diagram and code for it
Microcontrollers :: 10-17-2011 14:05 :: neha sharma :: Replies: 2 :: Views: 2079
Please has any one the code or program that can be used in a standard 16 x 1 or 16 x 2 display, only displaying V_Bat, Curr, V_out and volt and also
You don't even mention MCU, compiler, hardware, nothing.
You also say that you would like to display a logo? Do you think this could
Microcontrollers :: 12-25-2011 10:15 :: alexxx :: Replies: 2 :: Views: 350
im using a pic development board..with a 20mhz using pic16f877a and mikroC compiler and a top 2005 universal programmer... wrote a code to display a string on 16x2 lcd ...but nothing is being displayed........the development board is fine...thers some prob either in my code or m missing something while creating the hex file.....i read
Microcontrollers :: 04-14-2012 09:15 :: sushant_181 :: Replies: 0 :: Views: 729
In my circuit LM35 is connected to ADC0804 and o/p of ADC 0804 (D0-D7) is connected to P0 of 89s52.
WR of 0804 is connected to P3.6, RD of 0804 to P3.7 and INTR of 0804 to P3.2. The following code is giving some 13.9999 as the output. What is wrong in the code. I'm trying to read LM35 into ADC 0804 and then place the o/p of 0804 @ P0 of (...)
Microcontrollers :: 05-14-2012 22:08 :: internetuser2k11 :: Replies: 1 :: Views: 399
how can i send text to the lcd in the mikroc
i use mikroc pro
// lcd module connections
sbit lcd_RS at RB0_bit;
sbit lcd_EN at RB1_bit;
sbit lcd_D4 at RB2_bit;
sbit lcd_D5 at RB3_bit;
sbit lcd_D6 at RB4_bit;
sbit lcd_D7 at RB5_bit;
Microcontrollers :: 10-21-2012 06:20 :: eng_msa_8_8 :: Replies: 14 :: Views: 676
i want to interface PIC24F16KA102 AND LCM-S01602DTR M.
The code runs on proteus simulation but not on hardware.
i want to use port b for 8 bit data and control pins. what is the correct way of writing data and control signals on same 16 bit port.
Microcontrollers :: 02-17-2013 05:02 :: adnan012 :: Replies: 0 :: Views: 530
I iam also getting difficulties in the lcd code, if you solved the code,and with you have a working file for 16*2 lcd,
Microcontrollers :: 03-04-2014 22:13 :: avrsanju :: Replies: 1 :: Views: 684
A problem throughout this thread is that it's cheerfully mixing example codes for different processors and compilers without showing the exact IO library definitions. We experienced a similar problem in another recent thread.
Of course, the lcd handling as such can be easily ported between processors.
Microcontrollers :: 05-06-2013 12:18 :: FvM :: Replies: 20 :: Views: 1374
I am sharing a code for driving 16x2 lcd. The MCU Uses only two pins for lcd. Full code, Hex file and Proteus simulation are attached. I got it from internet but i made small changes for better operation. CD4094 Shift register will plays the main roll..Hope it will help you...:-)
Microcontrollers :: 06-05-2014 09:11 :: ronexg :: Replies: 1 :: Views: 186
i am doing a project using 89c51,adc0804,lm35d and 16x1 lcd
now my problem is that how can i convert the hexadecimal value from the adc to ascii code so that i can display that on the reads from 0'c to 150'c.i made te connection in such a way that i will get the exat value,ie.for 30'c i will get the output as 00011110 (1Eh) = the h
Microcontrollers :: 03-04-2006 06:59 :: microlab :: Replies: 1 :: Views: 2764
You do need to initialize the lcd first. There are a few commands you have to execute before you send the actual data to the lcd.
Check this page out. It has a lot of information. Hope it helps.
Hobby Circuits and Small Projects Problems :: 03-22-2006 16:52 :: thedesolatesoul :: Replies: 2 :: Views: 999
I was wondering why you are not migrating to the recommended 18F4520 which is virtually the same chip - perhaps you require larger flash of the 4620?
Migration to the 4620 requires a little more care.
Check ADCON0 and ADCON1 - they are not indentical on the 452 & 4620
I think your problem may be in the lcd initalisation area
Microcontrollers :: 07-28-2006 19:16 :: polymath :: Replies: 1 :: Views: 2172
Here is a lcd library you can use. It was written for K*il, but I assume it's not much of a deal to adapt it to your needs.
First, you have to configure the resources you use for the lcd. This is done from the #defines in the header file. Than, call lcd_init() and the lcd is ready to go.
It's not recommended that (...)
Microcontrollers :: 08-11-2006 10:03 :: x_zoli :: Replies: 5 :: Views: 1478
I am using 16x2 lcd module (HY-1602F6 printed on lcd MODULE PCB) with PIC16F876A.I am using connection is as follows:
EN -> RB3
RS -> RB2
R/W - > gnd(i want only write operation)
DB7......DB4(lcd data pin 11 to 14) -> PB7...PB4
Other lcd pins are as usual.
Crystal : 20MHz
After executing (...)
Microcontrollers :: 12-27-2007 03:20 :: arup :: Replies: 3 :: Views: 5997
i was playing with ks0108 lcd on proteus using 89c51. i am able to write data,fonts and images to lcd . but i cant read data from display RAM.
here is code for reading data from lcd
Microcontrollers :: 01-14-2008 19:00 :: abbas1707 :: Replies: 2 :: Views: 1967
this is my entity of program....
entity UT16 is
Port ( INA : in std_logic_vector(15 downto 0);
INB : in std_logic_vector(15 downto 0);
OUTPUT : out std_logic_vector(31 downto 0));
can anyone help me to display these output on lcd , SPARTAN 3E KIT or provide me the lcd code for these in (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 04-22-2008 04:36 :: abhi_459 :: Replies: 1 :: Views: 3058
I have written a c code
for atmel 89c52.....
i just wanted to see if my lcd
is working fine.....
this is just a test code
to display "a" on the lcd
but its not working.... please help me out........
#define lcd_data P1
#define lcd_busy P1_7
Microcontrollers :: 06-19-2008 23:53 :: aditya2806 :: Replies: 5 :: Views: 2822
I am having the PIC dem 2 plus board. The lcd is Ocular make OM16214 and connected in 4-bit mode.
Can any provide me the datasheet of the lcd or the interface code/technique, as i have tried a lot but not successful.
Microcontrollers :: 09-18-2008 08:27 :: csr1981 :: Replies: 1 :: Views: 4448
This is my 20*4 lcd code
Entity lcd is
clk,rst: in std_logic;
data_in: in std_logic_vector(7 downto 0);
start: in std_logic;
lcd_en: out std_logic; (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 12-03-2008 01:47 :: Mkanimozhi :: Replies: 0 :: Views: 612
I recently got a pikit 2, its the 1st time that im using push button switches.
im using 4 pushbuttons.
All i want for now is:
when i power the circuit The lcd displays "infrared liquid level detector", so the lcd code and initialising is working. BUT
when i press ENTER/Settings button....i want "enter/settings" to display on th
Microcontrollers :: 09-09-2009 05:37 :: fantabulous68 :: Replies: 2 :: Views: 963
I agree with wp100 and this in your code, May be connect PIN1 to GND PIN2 to VDD and PIN5 to GND on your lcd
' Define lcd registers and bits
Define lcd_DREG PORTB
Define lcd_DBIT 4
Define lcd_RSREG PORTE
Define lcd_RSBIT 0
Define lcd_EREG PORTB (...)
Microcontrollers :: 09-21-2009 17:52 :: wizpic :: Replies: 3 :: Views: 2964
what Glcd controller u are using? KS0107/8 or T6963C?
here is sample program from mikroelektronika in BASIC pro using KS0107/8 controller Graphic lcd
' Glcd module connections
dim Glcd_DataPort as byte at PORTD
dim Glcd_CS1 as sbit at RB0_bit (...)
Microcontrollers :: 10-22-2009 21:22 :: erio :: Replies: 2 :: Views: 3560
Regarding the 5v, the lcd pin3 shares the same rail as the pic chip.
However the +5v to the lcd backlight at the right hand side is not what I would do.
If its a standard black on green display you do not actually need the b/l, but if you do want it on, around 4v is more suitable so use a dropper resistor - try 100ohms but you might ne
Microcontrollers :: 12-20-2009 13:53 :: wp100 :: Replies: 3 :: Views: 486
Hello forum :-)
I am working on a project, I am currently trying to get some lcd code attached to drive my lcd, the lcd is HD44780 compatible and the driver is written for it. However, my circuit has a 20Mhz crystal so I think the delays that are defined at the beginning of the code must be incorrect. (...)
Microcontrollers :: 02-09-2010 15:03 :: oxygen8d :: Replies: 0 :: Views: 1706
help me develop assembly code that will received ascii charater from PC and save them temperaly in internal RAM then write messages on 5x7 leds, scrolling left to right, right to left up and down.
the components intending to used are 74LS138, and AT89s52. with PNP transistors.
Microcontrollers :: 04-03-2010 12:37 :: Fel :: Replies: 2 :: Views: 1423
This is initialisation problem. You have to initialize the lcd before sending data
Microcontrollers :: 05-11-2010 09:39 :: nandhu015 :: Replies: 9 :: Views: 929
There is an example of building a digital clock using this chip. You can take the lcd part from there and compare it to yours.
Check the code of picnote .
It contains lcd code in C.
You can download MikroC evaluation and it will work with the code.
PC Programming and Interfacing :: 05-11-2010 13:13 :: amraldo :: Replies: 4 :: Views: 4057
But what I need to sort out is a way of using the printf command but instead of it sending the data to hyperterminal it displays it on the lcd...
your printf() is expecting a function, putc() (both in stdio.h). so rather than using the stock putc(), you can redefine putc() to use your lcd routine that writes a char.
Microcontrollers :: 07-21-2010 12:43 :: millwood :: Replies: 1 :: Views: 699