File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ Reset sequences of a Microcontroller: Discussion
2+ =======================================================================================
3+
4+ 1) When you reset the MCU , The PC of the processor is loaded with the value 0x0000_0000
5+
6+ 2) Then processor reads the value @ memory location 0x0000_0000 in to MSP
7+
8+ MSP = value@0x0000_0000
9+ MSP is a Main Stack pointer register
10+ That means, processor first initializes the Stack pointer register.
11+
12+ 3) After that, processor reads the value @ memory location 0x0000_0004 in to PC .
13+ That value is actually address of the reset handler.
14+
15+ 4) PC jumps to the reset handler.
16+
17+ 5) A reset handler is just a C or assembly function written by you to carry out any initializations required.
18+
19+ 6) From reset handler you call your main() function of the application
You can’t perform that action at this time.
0 commit comments