LCD Display DG-12232

Gast #3990544
Lesenswert?
• ▲
▼
Hallo Gemeinde!

Ich kämpfe gerade an meinem Display von Pollin. DG-12232
Ich möchte dieses Display gerne mit einem Atmega8 16PU betreiben.

Laut Pollins Anschlussplan sollte es folgendermaßen klappen.
1
Display               Atmega8
2

3
1     A0              PortC.2    
4
2     CS2             PortC.5
5
3     CS1             PortC.4
6
4     CL              
7
5     RD              PortC.3
8
6     WR                
9
7     VSS             Ground
10
8-15  DatenBus        PortB.0 - PortB.7 
11
16    VDD             +5V
12
17    RES             
13
18    VEE             +5V

Da dieses Display einen NE555 als Taktgeber drauf hat, habe ich 
Anschluss 4
CL frei gelassen.

Wenn ich diese Anschlussvariante mit dem folgenden Code benutze, tut 
sich rein garnichts. :(

Bitte helft mir auf die Sprünge, wo ich quer denke.

1
$regfile = "m8def.dat"
2
$crystal = 1000000
3

4
' *****************************************************
5
$include "font8x8.font"
6
$include "font16x16.font"
7
$lib "glcdSED1520.lbx"
8
Config Graphlcd = 120 * 64sed , Dataport = Portd , Controlport = Portc , Ce = 4 , Ce2 = 5 , Cd = 2 , Rd = 3
9
'The dataport is the portname that is connected to the data lines of the
10
'LCD
11
'The controlport is the portname which pins are used to control the lcd
12
'CE =CS Chip Enable/ Chip select 'CE2= Chip select / chip enable of chip 2
13
'CD=A0 Data direction 'RD=Read
14
' *****************************************************
15
Glcdcmd &H3E , 1 : Glcdcmd &H3E , 2                         ' both displays off
16
Cls
17
Waitms 10
18
Glcdcmd &H3F , 1 : Glcdcmd &H3F , 2                         'both on
19
'------------------------------------------------------------------
20
' Arbeitsschleife
21
Dim Sec_s As String * 2 , Min_s As String * 2 , Std_s As String * 2
22
Dim Z1 As Byte , Puls As Byte
23
Config Clock = Soft , Gosub = Sectic
24
Do
25

26
Sec_s = Str(_sec)
27
Sec_s = Format(sec_s , "00")
28
Min_s = Str(_min)
29
Min_s = Format(min_s , "00")
30
Std_s = Str(_hour)
31
Std_s = Format(std_s , "00")
32
Portb.0 = Puls
33
If Z1 < 10 Then
34
Setfont Font16x16
35
Lcdat 1 , 1 , " " ; Std_s ; ":" ; Min_s ; " " , 0
36
Setfont Font8x8
37
Lcdat 2 , 98 , ":" ; Sec_s , 0
38
Lcdat 3 , 1 , " AVR-Praxis.de "
39
Lcdat 4 , 1 , " " ; Date$ ; " " , 0
40
Else
41
Setfont Font16x16
42
Lcdat 1 , 1 , "A V R - " , 0
43
Lcdat 3 , 1 , "Praxis " , 0
44
Wait 3
45
End If
46

47
Loop
48

49
End                                                         'end program
50
' ------------------------------------------------------------------
51
Sectic:
52
Toggle Puls
53
If Z1 < 10 Then
54
Incr Z1 
55
Else
56
Z1 = 0
57
End If
58
Return

Für Eure Hilfe schon mal besten Dank...

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.