Hi John,
I have got my Atmega16L up and running!
I had changed all rcall and rjmp to call and jmp. Plus one important thing.
I forgot to disable the JTAG function because I used those pins for other purposes.
Thanks.
Regards,
Andrew Lim
John Samperi <samperi@ampertronics.com.au> wrote:
At 03:30 AM 1/12/04 -0800, you wrote:
> Hi John, I have tried checking my interrupt vectors and stacks. I have
>no problem with these cos I'm using .EQU labels. Any changes in the address
>will be replaced when I use m16def.inc I have also changed the rjmp and
>rcall command to jmp and call. But still not working.
Just for fun I reassembled a working program using the 90S8535 with
the Mega16 definitions. After changing a couple of lines that refer to
'ramend'
where the stack pointer starts off (0x45f in the m16 vs 0x25f in the 8535),
the program worked well in the ICE200 and I would say that no change
would have been needed if a had a real m16 (the ICE has no ram past 0x25f
as it is only intended for the 8535, so the stack pointer doesn't work).
The interesting thing is that I did NOT get any warnings about rcall and
rjmp as
the program is still within the 8K boundaries. Is any part of your program
straying into the upper 8k?
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
******************************************************
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.Message
RE: [AVR-Chat] Migrating from ATmega8535L to ATmega16L
2004-12-02 by Andrew Lim
Attachments
- No local attachments were found for this message.