Explain the reset and how does it affect the MCUSolutionRESE
Explain the reset and how does it affect the MCU.
Solution
RESET input is required to initialize microcontroller. Reset is used to set MCU to default values and to make a new start. The RESET pin must be set high. For example the 8051 microcontroller can be reset in two ways
1) is power-on reset – which resets the 8051 when power is turned ON and
2) manual reset – in which a reset happens only when a push button is pressed manually. A reset doesn’t affect contents of internal RAM. For reset to happen, the reset input pin must be active high for atleast 2 machine cycles. During a reset operation :- Program counter is cleared and it starts from 00H, register bank #0 is selected as default, Stack pointer is initialized to 07H, all ports are written with FFH.
