Programming AT90S1200 using STK500?

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

Hi,

I have tried to serial program a AT90S1200 in my STK500, but the it does not work. I heard that it is possible to program the part by parallel programming - this just won't help me when I need to program the part in my target board.

Any suggestions?

Best wishes,
Mike Johnsson
Hobby developer

admin's test signature
 

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

Hello Mike,

Yes, there's been some problems with ISP'ing the AT90S1200 on the STK500 board. I'm on the AVR support team, and the problem has only recently been brought to our attention. We've looked into it, and found at least one solution to the problem, which lies in the AT90S1200's programming algorithm (not in the STK500 board :) ).

Here's what you should do:

1.
In the STK500 menu under the "Program" tab:
a) unselect "Erase Device Before Programming".
b) press the "Erase Device" button.

2.
Under the "Board" tab:
Set the "Oscillator and Reset" to 737 kHz.

3.
Program your device with the "Program" button under the "Program" tab.

If further faults should occur, try lowering the frequency even more.

AVR support member

admin's test signature
 

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

Hello again!

A little follow-up: We've looked further into the matter, and have narrowed the problem:

1. There's no problem with the input frequency after all (see below).
2. The ISP workaround will be superfluous in the next release of AVR Studio (see below).

1:
PROBLEM SPECIFICATION
The frequency problem occurs only with AT90S1200A parts. These 'A' parts are shipped with the RCEN fuse programmed. This means that the uC's internal RC oscillator is enabled. Thus, the uC runs at 1MHz no matter what the board says. The board, on the other hand, believes the frequency we tell it to believe in AVR Studio, and then presents an SPI frequency of 1/4 the value of the board frequency. If this freq. is above 1MHz, it's beyond the uC's range.
SOLUTION:
Disable the RCEN fuse (with high-voltage parallel programming) or tell
the board to ISP the uC at 1MHz (which is the true frequency inside the part).

2.
The ISP problem is related to the AT90S1200's requirement to step out of programming mode after an erase. This will be automatically done in the next AVR Studio release.

With kind regards,

AVR support member

admin's test signature
 

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

For Cliff--according to the Forum sort for Last Post, Ascending, this MUST be the award winner.

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

And this is t=3570 ?!?

Go figure!

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

LOL. I give up. Not only the thread numbers but the Forum sorts are out-of-order. Cliff, you and I are just pikers compared to the investigative skills of Count Zero and Tuomas. Hats off to you!

[I still say I can get Honorable Mention for replying to one of my own posts from that era.]

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

Quote:
[I still say I can get Honorable Mention for replying to one of my own posts from that era.]

Especially for timing it on exactly the 7th anniversary!

And yes I agree that Tuomas and CountZero should share the Snickers between them.

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

I have to admit, it was just luck. Tried three different numbers and that was the earliest I found... might be even earlier posts out there ;)