Pullups on 8515 (ok) vs. M8515 (ng)

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

Hello all, been a year since I have been coding and am by no means an expert but, capable. I program an 8515 with pullups on PORTD and all is well. I program a M8515 and no pullups. What gives?? Using both the Dragon and STK500 in parallel mode to no avail. File verifies after programming... Is there some fuse setting on the M8515 that I don't know about? How about alternate functions??
Thanks for any replies.

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

They should work the same. Are you sure that you haven't set the PUD bit in the SFIOR register?

Regards,
Steve A.

The Board helps those that help themselves.

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

I am aware of the PUD bit, but ERASE should mean erase. No code I've written to the device, has this explicitly written (PUD bit). Looked at the datasheet, and as far as I know, you don't have to "disable" functions to make the pullups work. The should be default to toggle on or off. Stumped I am.

Koshchi wrote:
They should work the same. Are you sure that you haven't set the PUD bit in the SFIOR register?

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

Do you have a simplifed (tested) program that demonstrates the problem? My gues is that you are somehow setting the wring register, or bits, or otherwise trashing the value somewhere else in your program.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

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

You can try and set the compatibilty fuse, then the M8515 should work like the 90s8515.
But chances are that something is going astray. Can you single step through your code with the Dragon and see if in fact things happen like you think they should? (I hope you can conjure up a JTAG connection with your board).

Alternatively you could try with the simulator but not very reliably.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

That would be nice if the 90s8515, or the mega8515 had a JTAG port.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

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

js wrote:
You can try and set the compatibility fuse, snip....

Tried with just the very simplest of program, i.e. "see spot run" and it worked. Miracles of miracles, I copied the original code from another window (session) of Studio and tried to program in a new window. Viola, it works. I am beyond clueless..... Oh well thank you Atmel.... Thanks for all your responses as well...

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

Quote:
mega8515 had a JTAG port.
:oops: :oops: :oops: I did say CONJURE UP :oops: :oops: :oops:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quitting time here... and tomorrow is another day. Never take home from work what you can finish later. I sense a feet up, movie in and cork out of the bottle night tonight. Thanks again for all your responses for this evil possessed Atmel concoction. P.S. my Dragon is, for a time still yet, working.... :twisted:

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

js wrote:
Quote:
mega8515 had a JTAG port.
:oops: :oops: :oops: I did say CONJURE UP :oops: :oops: :oops:

LOL I didn't realize you were implying the need for real magic there :)

@Sparky85: One thing to look for is that the file you're editing is actually the file being compiled. Quite often people inadvertantly edit copies that are not being used in the make, and thus get confused when the changes they make do not appear to be working.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

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

The silly thing is that I raise the JTAG/DW issue for the M8515/M8535 at each seminar (maybe the reason I don't get invites??). I'm working on a board at the moment that will have a M8535 in the final production but I had to build a board with a M16 to use JTAG :(

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly