at90s8515 to at2313

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

I hahe a program installed and working on the 8515 chip and
would like to move it to and the same tasks on the 2313.
Does anybody havhe any suggestiond on how this can be done.

admin's test signature
 

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

Hi,

Here's one way, but there may be more sophisticated disassemblers out there. Anyone?

Provided you haven't got any lock bits set:

1.
Read back your device (with AVR ISP, AVR prog, AVR Studio or another programmer you're using)

2.
Open this .hex file in AVR Studio. It'll automatically be disassembled

3.
Edit the disassembled code and change everything not compatible between the 8515 and the 2313. For instance, the stack pointer of the 2313 is just one byte, SPL. You have to review all memory addresses. The easiest way to do this, is to check the 2313def.inc and 8515def.inc files and see what's different, then change these addresses in the disassembled code. Sorry, but this step is necessary :)

4.
Reassemble your code and download the resultant .hex file into your 2313 device.

Morten, AVR tech. support.

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

Thank You for your reply , it was very helpful.

admin's test signature