cancel
Showing results for 
Search instead for 
Did you mean: 

How does microcontrollers store data of current execution before servicing the interrupts?

noobmaster69
Associate III

I know controllers push data to stack, PC to LR, etc. but how does this happens? Is it through software or hardware?

If through software then where is the code which does this? and where does it come from? is it the compiler which adds it?

If it is through hardware then how does it happen?

1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal
5 REPLIES 5
Javier1
Principal

Hii @Javier Muñoz​ ,

Thanks for your reply. It was very helpful.

Regards,

SBhon.1 

0693W00000NpfwoQAB.gif

we dont need to firmware by ourselves, lets talk
Andrew Neil
Evangelist III

I recommend that you get yourself a copy of Joseph Yiu's Definitive Guide book for the architecture you're interested in; eg,

0693W00000NrJiyQAF.pnghttps://www.elsevier.com/books/the-definitive-guide-to-arm-cortex-m3-and-cortex-m4-processors/yiu/978-0-12-408082-9

That covers the core stuff - it will be common to all chips from all manufacturers using that core.

For specific chip details, see the manufacturer's documentation.

For ST, that will all be accessible via the Product Page for the chip in question; eg,

0693W00000NrJjwQAF.png 

Most (all?) other manufacturers follow a similar scheme

@Andrew Neil​ Thanks for yor reply. I'll surely look into it.

Regards,

SBhon.1