View previous topic :: View next topic |
Author |
Message |
Kasch
Joined: 18 Jun 2005 Posts: 48
|
Posted: Fri Aug 11, 2006 1:41 pm Post subject: EA DOG 16x2 5V 4Bit Problems |
|
|
Hi,
i try to use the Dog with 16x2 on 5V via 4BIT.
But the display is still empty...
I have make a circut like the datasheet, but some Pins ar not connected. I am not sure
Pin 21(CAP1N) und Pin22(CAP1P) should be connected like what?
Pin 37 (RW) ground or vcc?
i think my contrast are not goog enough...i use the demo for dog, configuration my circuit on the source-code. m16 is the chip.
who can help me, please?
answers in german ar welcome |
|
Back to top |
|
|
Lexman
Joined: 11 Dec 2004 Posts: 6
|
Posted: Tue Aug 15, 2006 12:09 am Post subject: |
|
|
Hi Kasch
Pin 21(CAP1N) und Pin22(CAP1P) should be connected like what?
- Pin 21 and Pin 22 should be unconnected (not been used)
Pin 37 (RW) ground or vcc?
- Pin 37 should be allways low (ground) if you only write(not read) data to display
- Pin 38 should be low when you send any data to displaymodule
- Pin 39 should be low when you send config data to display register, else hi when you send characters to display
- Pin 40 should be low after powerup (10ms) then allways Hi
- Pin 23 should be allways Hi
You can adjust the contrast via config register
Inside DOG display:
The glas controller Sitronix ST7036 info can you download here.
http://www.lcd-module.de/eng/pdf/zubehoer/st7036.pdf
Best Regards |
|
Back to top |
|
|
Kasch
Joined: 18 Jun 2005 Posts: 48
|
Posted: Tue Aug 15, 2006 3:28 pm Post subject: |
|
|
thank you, mark "found" the error: j-tag....
every time i worked with the mega16, i disable jtag first.
only i start this new, exciting projekt....
how can I set via register the contrast? |
|
Back to top |
|
|
Lexman
Joined: 11 Dec 2004 Posts: 6
|
Posted: Tue Aug 15, 2006 8:09 pm Post subject: |
|
|
Set pin RS=low
Set pin R/W=low
Send byte to display ' Contrast level set (Value between H70 - H7F)
Send byte to display ' Power/Icon/contrast control (Value=H5F)
Set pin RS=Hi
//Jorgen |
|
Back to top |
|
|
Kasch
Joined: 18 Jun 2005 Posts: 48
|
Posted: Thu Nov 16, 2006 12:08 pm Post subject: |
|
|
late, but i hope not to late: thank you. i have found an error on my pcb.
but on other problem exist. how can i decrease my contrast? i have to many..
okay, i try
Code: | Config Lcd = 16 * 3 , Chipset = Dogm162v3 , Contrast = &H5F |
and
Code: | Config Lcd = 16 * 3 , Chipset = Dogm162v3 , Contrast = &H70 |
and
Code: | Config Lcd = 16 * 3 , Chipset = Dogm162v3 , Contrast = &H7F |
but nothing changed
th bascom sample are
Code: | Config Lcd = 16 * 3 , Chipset = Dogm162v3 , Contrast = &H702 |
i try &H502, &H602, &H802 but nothing changed
how can help, please? |
|
Back to top |
|
|
knickohr
Joined: 24 Jan 2007 Posts: 97 Location: Germany
|
Posted: Sun Jan 28, 2007 7:34 pm Post subject: contrast setting doesn't work |
|
|
Hello,
I tried the examples above, but it does not work. Is there any other trick to set the contrast ?
Example ?
Thomas |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Jan 28, 2007 9:09 pm Post subject: |
|
|
Hi,
Maybe you could try the LCDCONTRAST command. See help text for more info.
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
knickohr
Joined: 24 Jan 2007 Posts: 97 Location: Germany
|
Posted: Sun Jan 28, 2007 9:18 pm Post subject: |
|
|
Hi Ian,
LCDCONTRAST doesn't work. This was one of my first ideas.
Thomas |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Jan 28, 2007 9:37 pm Post subject: |
|
|
Hi,
The only thing to try then is writing directly to the display. I think the ASM routine is called _Write_lcd with R24 holding the value to be written.
If I get a chance I'll have a look at it tomorrow.
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
knickohr
Joined: 24 Jan 2007 Posts: 97 Location: Germany
|
Posted: Sun Jan 28, 2007 9:45 pm Post subject: |
|
|
Hi.
OK, how can I write direcly in these registers with BASCOM ?
Have you an example ?
Thomas |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Jan 28, 2007 9:58 pm Post subject: |
|
|
Hi,
You can define a variable as a register using:-
Dim Register24 As Iram Byte At 24 Overlay
or direct in assembler code:-
$ASM
Ldi R27 , $00 'Load R27 with MSB of address
Ldi R26 , $60 'Load R26 with LSB of address
$END ASM _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
knickohr
Joined: 24 Jan 2007 Posts: 97 Location: Germany
|
Posted: Sun Jan 28, 2007 10:12 pm Post subject: |
|
|
Sorry
I don't understand anything.
It should be something like this :
dim contrast as byte
.
.
.
contrast =value
-> send to Display
But HOW can I do this ?
Thomas |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Jan 28, 2007 10:15 pm Post subject: |
|
|
Hi,
I'll have a look at it tomorrow. Do you have a link to the spec. for the display?
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
knickohr
Joined: 24 Jan 2007 Posts: 97 Location: Germany
|
|
Back to top |
|
|
Lasse
Joined: 25 Jan 2006 Posts: 4 Location: Sweden
|
Posted: Mon Jan 29, 2007 12:44 am Post subject: |
|
|
It looks not too difficult.
But you really need to consult the controller chip data sheets:
http://www.lcd-module.de/eng/pdf/zubehoer/st7036.pdf
Page 42 do offer asm listing for 8051 how to set up the LCD.
You just have to write the correct value to the LCD, look at page 36 to get the data-structure!
/Lasse |
|
Back to top |
|
|
|