ATMEGA16 ADC simulation in Studio3.55

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

Hi there,

I'm simulating some code for an ATMEGA16, and in studio 3.55, if I cause the ADC_INT interrupt, nothing happens, apart from the interrupt flag is cleared on the next clock cylce, but the code does not jump to the ISR.

Does anyone have a solution for this problem? Do any other versions of Studio fix this problem?

Could it be something I've done stupdily wrong? Global interrupts are definately on, as all my timer interrupts are working fine, as is the EXT0 interrupt, it's just the ADC_INT that never gets executed. The conversion never seems to finish either. The start new conversion bit stays high all the time.

Thanks in advance,
a confused brian.
I am using CodevisionAVR too if that rings any problems with anybody...

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

Hi,

Maybe you didn't set up the ADC properly?

Could you post the C code your using?

-Colin