LCD / STK500 Problem

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
short and dirty:
i use the STK500 with AT90S2313 and the LCD-Testprogramm (look attachment), connect a LCD and everything is working !
Now i change to AT90S8515 (also in the asm-header) and nothing works !
Please can YOU help me ?

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ingolf,

Are you saying that the same program doesn't work in the '8515? Have you removed the '2313 from the STK500, re-compiled the program with the appropriate bit-and-byte definition file (8515def.inc), reviewed the code for incompatibilities between the two devices and changed these?

Are there other things than the program that doesn't work?

Best regards,

Morten, AVR tech. support, Atmel FAE

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

thanks a lot for your fast help !

My work step by step:
1. Testing with the 2313-device -> all ok, lcd works
2. Change the include-line in the source-file from 2313def to 8515def
3. STK500 power-off
4. Disconnect the LCD
5. remove the AT90S2313
6. Install the AT90S8515
7. STK500 Power on
8. Re-compiled the source (with the 8515def-include)
9. Programming the AT90S8515
10. STK500 power-off
11. Connect the LCD
12. STK500 Power on -> LCD not working

Note: Sometimes it's not possible to programming the device when the lcd
is connected, for that i always disconnect the lcd before programming.

The LCD-Type is Batron BT21605v1 with Hitachi HD44780-Controller
The lcd.zip-file contains all files

Now i'm looking for incompatibilities between the two devices.
When i get a result and found anything, i will write you back.

(Sorry for my bad english)

Best regards,

Ingolf

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

Have you changed your interrupt vectors to '8515 values?

Best regards,

Morten, AVR tech. support, Atmel FAE

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

uup's ! Must i do something like this ? I only change the "include-line" and think that's all i have to do.
I am not so familiar with the interrupt-handling, still learning. I take a look on it.
But i thing there is another problem with the start-timing-sequence :
I make my owen PCB , it's calling "Europlatine" in germany, where i have made the same
connections like it is on the STK500 board, and use the 2313-controller. I switch the power on,
and nothing on the lcd ! But when i switch the power on-off-on at many times, suddenly it works.
On my PCB, the 2313 and the LCD get the power at the same time, and i think that the contoller is
starting fast and the lcd isn't ready at this time. I will try to make a short break in the startup-sequence, to give the lcd time to init, and hope that it's work :-)
( I dont forget the interrupt vectors )

Thanks for help !

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you properly initialized stack for the AT90S8515?
Since 8515 RAM > 256, It needs 2 byte initialization.

2313main: ldi temp,RAMEND ; setze Stack-Pointer
out SPL,temp ; an das SRAM-Ende

8515main: ; The main program starts here
LDI Rtemp,LOW(RAMEND) ; Initiate Stack pointer to top of ram
OUT SPL,Rtemp
LDI Rtemp,HIGH(RAMEND)
OUT SPH,Rtemp ;<------------------ Not 2313 compatible

Of course proper conditional compile directives in the assembler would help.

Peter

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Peter,

YOU ARE THE BEST !!!!!!!!
IT WORKS !
I have insert your lines into the source ... and ALL is running !
I can not find the right (english) words, in germany we say : FANTASTISCH

Thank you very much, Ingolf

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I must confess, that i am very new in this field and have difficulties in choosing the best LCD nad the 4x4 matrix KEYPAD.

Please give me all the lcd's and keypad's that are compatible with AT90S8515.

I have very little money and do not want to risk to but lcd and keypad that will not work with AT90S8515.

regards,
kelvin m.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I must confess, that i am very new in this field and have difficulties in choosing the best LCD nad the 4x4 matrix KEYPAD.

Please give me all the lcd's and keypad's that are compatible with AT90S8515.

I have very little money and do not want to risk to but lcd and keypad that will not work with AT90S8515.

regards,
kelvin m.

admin's test signature