Skip to content

Commit 202d494

Browse files
committed
Add doc: reset_seq.txt
1 parent 20f6304 commit 202d494

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Docs/reset_seq.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)