Skip to main content
noobmaster69
Associate III
June 7, 2022
Solved

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

  • June 7, 2022
  • 2 replies
  • 1206 views

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?

This topic has been closed for replies.

2 replies

Javier1
Javier1Best answer
Principal
June 7, 2022
noobmaster69
Associate III
June 7, 2022

Hii @Javier Muñoz​ ,

Thanks for your reply. It was very helpful.

Regards,

SBhon.1 

Javier1
Principal
June 7, 2022

0693W00000NpfwoQAB.gif

hit me up in https://www.linkedin.com/in/javiermuñoz/
Andrew Neil
Super User
June 7, 2022

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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
noobmaster69
Associate III
June 7, 2022

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

Regards,

SBhon.1