ATMEL ICE Varying speeds Between ISP and JTAG

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

So I am having issues with flashing my project to  Atmel 324 chipset. The previous revision, I designed the system to have to have the ISP interface and the problem I'm having didn't exist. With this revision, I implemented the JTAG interface. The device gets programmed  and functions exactly like it should except for one thing- it runs slowly. For instance, a 1ms delay turns into a 10ms delay. I have a countdown timer on my design and instead of counting down in seconds, it is counting down every 5 to 7 seconds. 

This topic has a solution.

Cody W Phipps

Last Edited: Mon. Sep 21, 2020 - 06:48 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Default for clock fuses is clk/8, so it is actually 8 times slower, make sure your fuse settings are disabling this fuse.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

 

Thank you sir. That did the trick. 

 

For anyone that is looking the solution to this problem in the future and are unfamiliar with fuse settings go to Device Programming > Fuses and uncheck the box for LOW.CKDIV8

Cody W Phipps

Last Edited: Thu. Sep 17, 2020 - 08:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That fuse bit has bitten us all at one time or another, but only once!

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

phippstech wrote:
That did the trick

Thanks for feedback - please mark the solution.

 

See Tip #5 in my signature, below, for instructions:

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...