ICE200 and ATmega8(L)/16(L)

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


Can ICE200 be used to emulate ATmega8, and ATmega16?,
Or wath aboute STK500 and JtagICE?

Thanks in advance

Vidar (Z)


"The fool wonders, the wise man asks"

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

No, the ICE200 only can emulate the AVR "Classics" AT8535, AT8515, ...

To emulate the "mega" you need expensive tools like the ATICE50 (look in tools).

If you choose the JTAG, only the mega which supports it:


I advise you to use the ATICE200 and a "Classic" to develope and DEBUG algorithms, and then if you need more speed or peripherals, reuse your code with the "megas".

If you have an ATmega, running at high speed with a lot of peripherals, and you code have a lot of bugs (bugs that you don't thing exist), ...

The ATICE200 is a great tool to learn to make good code, because you can rebuild your project and inmediatly you are debugging, instead the JTAG, which reprograms the real chip every time you rebuild.

And with the ATICE200 you have infinite numberof breakpoints, instead the JTAG, which have a limit system of placeing breakpoints.

But after you "emulate" your code in real system, you need to be really preocupated in simulate the code. I have encountered a fantastic tool for this purpouse: VMLab (see in tools Miscelaneous). THIS IS NOT SPAM, I am free to say that this tool is the ideal complement of an emulator.

Think that you need to decode a infrared protocol, like RC5, JVC, .. to control a videocamera, a TV, ... With an emulator you can't reprocuce the stream of data (the signal have a differnt clock). Whith this simulator you can. Only the UMS software I saw doing this kind of co-simulation, but at higher cost.

A good simulation is first to a emulation. Then a good emulation have no price.

I hope this lines can help you.



admin's test signature

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

I am using an ICE200 to emulate a MEGA8 in a system I am debugging. This is possible because the MEGA8 and the AT90S4433 come in the same package and have a common pin arrangement. However, there are limitations to this cross-micro emulation because the ICE200 cannot emulate the enhanced features of the MEGA8 micro. The MEGA8 has an enhanced UART, an additional timer circuit, and extra instructions. These new features, as well as several others, cannot be emulated by the ICE200. Also, some register locations have changed and some register bits have been renamed. You can compensate for the register differences by modifying the MEGA8 .h include file. You cannot, however, use the MEGA8 Timer2 circuit in your software and expect to use an ICE200 for emulation.

The ICE50 is the emulator that Atmel has created for MEGA8 debugging. It is expensive, requires the use of Studio 4, and is still in Beta release. What this means is that the ICE50 is buggy and not ready for primetime.

It appears that the only viable MEGA8 debugger presently available is the FLASH debugging-monitor system. I have not used this yet but may soon be forced to try this approach to system debugging. This system is cheap, $150, but it requires target resources so that it cannot completely emulate a MEGA8. But you cannot completely emulate a MEGA8 with the alternatives either.