- Reset occurs when the RST pin is supplied with a positive pulse in duration of at least 2 machine cycles (24 clock cycles of crystal oscillator).
- After that, the microcontroller generates an internal reset signal which clears all SFRs, except SBUF registers, Stack Pointer and ports (the state of the first two ports is not defined, while FF value is written to the ports configuring all their pins as inputs).
- Depending on surrounding and purpose of device, the RST pin is usually connected to a power-on reset push button or circuit or to both of them.
- Let’s see reset circuits used for microcontroller 8051. They are of two types.
- Power on reset
- Manual reset
Power on Reset in 8051
Figure (1) illustrates one of the simplest circuit providing safe power on reset in 8051 microcontroller.
- After turning the power on, electrical capacitor is being charged for several milliseconds through a resistor connected to the ground. The pin is driven high during this process.
- When the capacitor is charged, power supply voltage is already stable and the pin remains connected to the ground, thus providing normal operation of the microcontroller.
Manual Reset in 8051
- A reset occurs when the capacitor is shorted through the switch which causes the capacitor to be temporarily discharged and the microcontroller is reset.
- When the switch is released, the capacitor begins to charge, once again pull the reset pin low for normal operation. The reset circuit with the button is shown in figure (2).
Recent posts
Related posts:
- Assembler Directives in 8051 Microcontroller
- Features of 8051 Microcontroller
- Memory Organization of 8051 Microcontroller
- Addressing Modes in 8051 Microcontroller
- Instruction Set in 8051 Microcontroller
- Architecture of 8051 Microcontroller
- PSW Register in 8051 Microcontroller | Program Status Word
- Pin Configuration of 8051 Microcontroller
- The Stack and Stack Pointer in 8051 Microcontroller
- Stack Pointer Data Pointer and Program Counter in 8051 Microcontroller
- Functions of Timing and Control Unit of 8051
- Functions of Ports in 8051 Microcontroller
- Port Structure of 8051 Microcontroller