Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What does microcontroller do when its powered on?

Status
Not open for further replies.

vinothmct

Member level 1
Joined
May 2, 2012
Messages
38
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,584
What does Microcontroller do when its powered on? Does the oscillator gives out clock signals and it executed instructions or what it does . I wish to know the flow . Can anybody help me ?
 

ismbn

Full Member level 3
Joined
Feb 11, 2012
Messages
160
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,308
Location
Mumbai. india
Activity points
2,444
when it powered on if it have any program in it it start exciting it and start form main(), and if it dose not have the program init it goes in the ideal mode ....

what exactly you want to know???

Ismail
 
  • Like
Reactions: IanP

    IanP

    Points: 2
    Helpful Answer Positive Rating

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,311
Reputation
4,624
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,416
What does Microcontroller do when its powered on? Does the oscillator gives out clock signals and it executed instructions or what it does . I wish to know the flow . Can anybody help me ?

You have to do some reading, and a good place to start it is WIKIPEDIA ..
Here is a link to a section called MICROARCHITECTURE – instruction cycle ..
https://en.wikipedia.org/wiki/Microarchitecture

:wink:
IanP
 

HTA

Advanced Member level 1
Joined
Nov 17, 2011
Messages
445
Helped
108
Reputation
216
Reaction score
104
Trophy points
1,323
Activity points
3,925
During power-up the oszillator starts up and internal logic needs to hold the microcontroller in a RESET-mode until the supply voltage is at the minimum level, the oszillator is running stable and internal registers are set to a defined state. Then the microcode excecution is started at a fixed address and performs the define start-up sequence and starts then execution of the macroinstruction(this is the programm you usually can do with the assembler).

Enjoy your design work!
 

vinothmct

Member level 1
Joined
May 2, 2012
Messages
38
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,584
when it powered on if it have any program in it it start exciting it and start form main(), and if it dose not have the program init it goes in the ideal mode ....

what exactly you want to know???

Ismail

What it does on POR and the steps it does in bootloader
 

vinothmct

Member level 1
Joined
May 2, 2012
Messages
38
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,584
I wish to know where data segment is implemented? Is it in RAM or ROM/Flash?

Our local variables are stored in stack which is implemented in RAM .

static , global variables are stored in data segmented is it implemnted in RAM? Is it so ? If will it lose contents when power is turned off?

Heap is implemented in RAM or Flash?
 

sky_123

Advanced Member level 4
Joined
Feb 26, 2011
Messages
1,170
Helped
279
Reputation
566
Reaction score
273
Trophy points
1,363
Activity points
9,602
See here for an explanation on this.
There was a time when there were many books describing how a computer works (a microcontroller is a
computer). If you can find this book (rather old) in a library, it would help.
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,376
As IanP suggested some in-depth reading is needed to understand all these topics you have posted.

The following is PIC microcontroller specific, however much of the information can be applied to other microcontrollers:

MikroE Book: PIC Microcontrollers

The following is an in-depth look at the booting process of microcontroller, however it maybe a bit advanced:

Understanding embedded-system-boot techniques

Study the first link and then post any additional question you may have.

BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top