Can the ARVISP Program the ATMEGA1281?

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

This question relates to the AVRISP made by Atmel - the little gray box that connects via RS-232.

When running AVR Studio, I can see that the ATMEGA1281 shows up on the AVRISP menu, but when going to the ATMEAG1281 data sheet, it looks like the I/O pins designated MOSI, MISO, and SCK are associated with the SPI interface, not the programming hardware.

In the section of the data sheet associated with serial programming, they use strange (to me) signal names, but no explicit mapping from the "strange" signal pins to the old SPI names used in the ISP.

Is the mapping below correct?

ATTINY1281.......AVRISP
PDI...................MISO
PDO...................MOSI
SCK...................SCK
RESET................RESET

Or, is my understanding the AVRISP supports the ATMEGA1281 incorrect?

Thank you for your reading this.

--
"Why am I so soft in the middle when the rest of my life is so hard?"
-Paul Simon

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

Since your AVRISP is the "master" for ISP, and the target '1281 is the "slave", MOSI (Master Out Slave In) would connect to PDI (Programming Data In) and so on.

If familiar with Mega64/128 ISP, the '1281 will be the same. Search for all the PDI & PDO references in the datasheet.

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Arrrrgh! Nailed by MOSI-MISO name confusion again. Thank you for straightening that out.

Does the AVRISP support the ATMEGA1281 with this (corrected) mapping?

ATTINY1281.......AVRISP
PDI...................MOSI
PDO...................MISIO
SCK...................SCK
RESET................RESET

--
"Why am I so soft in the middle when the rest of my life is so hard?"
-Paul Simon

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

That mapping looks fine, except for two apparent typos:
1) There's no such thing as an ATTINY1281.
2) MISIO??

If your AVRISP is running series 1.x firmware, then it cannot program the ATmega1281 because it doesn't have a device code meant for that chip. Upgrading to version 2.x of the firmware is a simple process.

If your AVRISP is running series 2.x firmware, then it is perfecty capable of programming the ATmega1281 (as well as every other 8-bit AVR currently on the market), as long as your PC's front-end software knows about it. The latest version of AVR Studio does know about it.

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

Would not the ATMEGA1281 use pe0 and pe1 rather than Miso and Mosi? This is the case with the ATMEGA128. I don't have the data sheet so just have a good look.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Ok now I'm curious and have to have a look at the M1281 data sheet.. :?

So it depends on the package type.

Table 163. Pin Mapping Serial Programming
Symbol Pins(TQFP-100) Pins (TQFP-64) I/O Description
PDI    PB2            PE0 I    Serial Data in
PDO    PB3            PE1 O    Serial Data out
SCK    PB1            PB1 I    Serial Clock

That's nice! I'll have to get a 2561 to play with as it looks like it's a bigger M128 :)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Sorry about the typos. This can be complicated enough without them. Ok, I think I have it.

Thank you theusch, lfmorrison, and John for your help. I think I have it now.

--
"Why am I so soft in the middle when the rest of my life is so hard?"
-Paul Simon

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

Quote:
That's nice! I'll have to get a 2561 to play with as it looks like it's a bigger M128 :?

Calls and Interrupts use more stack, three bytes pushed instead of two.

Stan

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

Well after looking at it carefully it seems that the extra USARTS are only available in the 100 pin devices, so not much more to play with than a M128 for me.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly