What the procedure is RESET the AVR?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
17 views
Everything described below was tested in the program Proteus.

For example the code in the vector table which is defined only two interrupts, RESET the interrupt on ADC conversion. After the vector processor is RESET, then an empty infinite loop and then the interrupt handler from the ADC. If the code to remove the tag RESET: that is, just the label, but not the interrupt handler RESET code does not work(PC falls in the empty memory), while the code which was in the RESET handler is in fact executed(probably).
And again, if this interrupt is executed when you run MC, then why if I put the interrupt handler RESET the last - it is also closed(PC falls in the empty memory).
The crux of the matter:

- Why is this happening, if you make changes in the code that I described above?

-What is the RESET procedure?

-As it is called?
by | 17 views

2 Answers

0 like 0 dislike
Why is this happening, if you make changes in the code that I described above?

The code given in the question, without it we can only guess what's going on.
But if you guess, then:
If the code to remove the tag RESET: that is, just the label, but not the interrupt handler RESET - code not working

and should not even compile. Because the reset vector must jump to the label RESET:.

why if I put the interrupt handler RESET of the latter - it also does not work

may not have enough range command rjmp (4 kilobytes) to go from the vector to the handler?

Why the need for a RESET procedure?

to initialize the controller

How it is called

the transition from the reset vector
by
0 like 0 dislike
I recommend reading the Datasheet for the microcontroller section table of interrupt vectors.
Interrupt #0 RESET_vect is called when the microcontroller is reset (the rising edge at the input nRESET).
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,456 users