PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [ERLEDIGT] Atmega32 ==> Atmega1284p - keine Anzeige mehr im Display



tc-maxx
16.05.2011, 14:30
Hallo zusammen,

ich arbeite seit langem mal wieder an meinem KW1281 Projekt...

Das Projekt lief ürsprünglich auf einem Atmega32, nun reichte der Speciher nicht mehr aus und so habe ich einen Atmega1284p eingesetzt.

Nach ein paar minimalen Anpassungen läuft die Kommunikation wieder aber ich bekomme keine Anzeige mehr auf das Display.

Wenn ich folgenden Code mit dem Atmega32 kompiliere und teste, dann bekomme ich die Ausgabe auf das Display.
Mit dem Atmega1284p und kompiliert mit "m1284pdef.dat" wird nichts angezeigt.

Weiß jemand wo das Problem liegen könnte?


'================================================= ==============================
$regfile = "m1284pdef.dat"
'$regfile = "m32def.dat"
$crystal = 11059200
$hwstack = 256
$swstack = 128
$framesize = 64
$baud = 9600

'================================================= ==============================
'------------[GLCD Config]------------------------------------------------------
'================================================= ==============================
-----------------------------------------------------------------------------------------------------
' | LCD-Pin | AVR-Pin | Symbol | Level | Funktion |
' |---------|---------|--------|-------|--------------------------------------------------------------|
' | 01 | | FGND | GND | Frame Ground (Minus vom LCD) |
' | 02 | | Vss | GND | Ground (Minus) |
' | 03 | | VDD | H/- | +5V |
' | 04 | | VEE | NEG | Kontrast für LCD, Kontrast gut bei -12,3V |
' | 05 | PinA.0 | WR | H/L | Data Write (Wr) |
' | 06 | PinA.1 | RD | H/L | Data Read (Rd) |
' | 07 | PinA.2 | CE | H/L | Chip Enable (Ce) |
' | 08 | PinA.3 | C/D | H/L | Code/Data (Cd) |
' | 09 | | NC | GND | Nicht beschalten (GND) |
' | 10 | PinA.4 | RST | -/L | Reset, Active Low |
' | 11 | PinC.0 | DB0 | H/L | Data Bus |
' | 12 | PinC.1 | DB1 | H/L | Data Bus |
' | 13 | PinC.2 | DB2 | H/L | Data Bus |
' | 14 | PinC.3 | DB3 | H/L | Data Bus |
' | 15 | PinC.4 | DB4 | H/L | Data Bus |
' | 16 | PinC.5 | DB5 | H/L | Data Bus |
' | 17 | PinC.6 | DB6 | H/L | Data Bus |
' | 18 | PinC.7 | DB7 | H/L | Data Bus |
' | 19 | PinA.5 | FS | H/L | Font Select, L=8*8, H=6*8 (kleiner oder grosser Zeichesatz) |
' | 20 | PinA.6 | RV | H/L | Reverse Data (Invertiert das Bild) |
' -----------------------------------------------------------------------------------------------------
' --------------------
' | Pinübersicht AVR |
' |------------------|
' |Pin | Funktion |
' |----|-------------|
' | 12 | Display D0 |
' | 13 | Display D1 |
' | 14 | Display D2 |
' | 15 | Display D3 |
' | 16 | Display D4 |
' | 17 | Display D5 |
' | 18 | Display D6 |
' | 19 | Display D7 |
' | | |
' | 20 | Display Wr |
' | 21 | Display Rd |
' | 22 | Display Ce |
' | 23 | Display Cd |
' | 24 | Display RST |
' | 25 | Display FS |
' |-------------------

Config Graphlcd = 240 * 128 , Dataport = Portc , Controlport = Porta , Ce = 2 , Cd = 3 , Wr = 0 , Rd = 1 , Reset = 4 , Fs = 5 , Mode = 6
' Mode = 8 => 240px / 8 = 30 columns
' Mode = 6 => 240px / 6 = 40 columns



'----[LCD-Invert]-------------
Config Pina.6 = Output ' LOW -> Hintergrund Schwarz | HIGH -> Hintergrund Weiß
Lcd_invert Alias Porta.6
Lcd_invert = 1

'----[PWM Display_BG]---------
Config Pinb.0 = Output
Lcd_bg Alias Portb.0 ' Hintergrundbeleuchtung
Lcd_bg = 1 ' Ein


'-------------------------------------------------------------------------------
Cls
Line(109 , 36) -(109 , 90) , 255
Locate 6 , 20 : Lcd "Test:"

Do
Loop
'================================================= ==============================

End

DanielSan
16.05.2011, 14:38
Standardfrage: JTag aus?

Gruß Daniel

tc-maxx
16.05.2011, 14:50
:rolleyes::rolleyes::rolleyes:

vielen Dank Daniel, das Einfachste hatte ich übersehen !

Viele Grüße
MaXX

DanielSan
16.05.2011, 15:01
LOL

Hätte nicht gedacht das es wirklich daran liegt! Ich hatte kurz überlegt ob ich das überhaupt schreibe.
Hat sich also doch gelohnt^^

Viel Spass noch!
Daniel