LCD display without microprocessor?

Status
Not open for further replies.

kubeek

Joined Sep 20, 2005
5,795
I am not using denounce circuit..
:eek:

This makes me wanna say some nasty things. Everyone tells you that you HAVE TO use the damn debouncing circuit or it won´t work. How hard is that?
Have you actually read that article or are you just pretending you did?

You are futile and I will no longer participate in your threads.
(i may have said that once in the past, but this does it)
 

hspalm

Joined Feb 17, 2010
201
Yes, but this is after it is initialized. It is not crucial when displaying characters, because then you know the LCD is working already. But under initialization it is crucial. It even says that "occasionally only one character will appear" (loosely cited), this means that almost all button presses are bouncing. This again means that you're rewriting registers many times with the same value.
 

count_volta

Joined Feb 4, 2009
435
That is great man!!! So much easier if you use μC eh? Still more fun to just use gates and flip flops in my opinion. Nobody does that anymore. You feel smarter than most people haha :D
 

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
Hello again,

I want to ask one more question:-
while writing the command like clear screen, cursor shift right left,etc.........
They should be one after another or we can just put them in any way??

Now i am using Propeller micro controller ( quick start)...!!
 

SgtWookie

Joined Jul 17, 2007
22,230
You have to read the datasheet for the LCD's controller, and follow the timing specifications.

I don't have time to read the datasheet to you. However, for at least one common controller you have to wait a specified amount of time, and then check the "busy" flag. If the LCD is "busy" when you try to send a command, it will be ignored.
 

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
I have seen it data sheet and command for industrializing as above Kubeek has given some code i have tried it with my DIP switches ans etc chip....it was working fine but when i was using my propeller uC it was doing nothing i have used some delay and changing there time but nothing happen...!!



Rich (BB code):
{{ simple testing LCD............
xyz......!!}}
CON
  _CLKMODE = XTAL1             'Set to ext. low-speed crystal
  _XINFREQ = 5_000_000  
 RS = 8  'to port  10
 E  = 9   'to port  11
 D0 = 0    'to port  0 to 7
 D7 = 7
 DELAY =1_000_000
PUB LCD

 DIRA[0..7]~~
 
 DIRA[8]~~
 DIRA[9]~~




 DELAY1
 OUTA[RS] :=%0

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%00111000
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1
 
 OUTA[0..7] :=%0000_1100
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%0000_0001
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%0000_1100
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%0000_0000
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[RS] :=%1
 
 OUTA[0..7] :=%0011_1100
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%0000_0000
 OUTA[E] :=%0
 DELAY1  

 OUTA[E] :=%1
 DELAY1

 OUTA[RS] :=%1
 
 OUTA[0..7] :=%0011_0100
 OUTA[E] :=%0
 DELAY1

 OUTA[E] :=%1
 DELAY1

 OUTA[0..7] :=%0000_0011
 OUTA[E] :=%0
 DELAY1
 
 OUTA[E] :=%1 
 

 
    

 

 







PRI DELAY1

 REPEAT 4
  WAITCNT ( DELAY + CNT )
 

kubeek

Joined Sep 20, 2005
5,795
I have no idea what programming language is that, but you can first try just setting one byte and probing the pins to see if the values are right and on the right data pins. Also check if the RS and EN work properly.
 

SgtWookie

Joined Jul 17, 2007
22,230
Your LCD display has a KS0066 controller, which is an equivalent to the HD44780 and works exactly the same way. An HD44780 Character LCD is a de facto industry standard liquid crystal display (LCD) display device.

You should read this .PDF:
http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp2.pdf

The writer is using a Propeller to control an HD44780 LCD; by making sure you used the same I/O pins as they did, you could copy/paste their code and see if it works.
 
Status
Not open for further replies.
Top