Design a simple microprocessor system based on 8051 microcontroller that will light two violet LEDs only when a tact-swi
Posted: Wed Apr 27, 2022 5:50 pm
Please write a step by step solution
Design a simple microprocessor system based on 8051 microcontroller that will light two violet LEDs only when a tact-switch (SPST) is pressed, otherwise the LEDs should be turned off. Draw a full schematic, describe component selection and calculate resistor values. Do not forget about the power supply and the assembler code. Connect tact switch to P1.0 and LEDs to P3.0 and P3.1. o o O O O . Available power supply is 6V Available LED has voltage drop of 4V when forward-biased with 2mA current Available microcontroller is AT89S4051: o Power supply voltage should be fixed to 3.3V Reset circuit - 10uF capacitor connected to VCC Max GPIO current (per pin) - ImA source, 10mA sink Clock should be connected using a 4 MHz crystal resonator No MOVX function Do not add programming interface or communication peripherals Available NMOS and PMOS transistors - IVTH = 2V, Idsmax = 1A Gate polarization resistor should be 10 MOhm to ground Gate should be connected with microcontroller pin with 100 Ohm series resistor When the transistor is turned ON the Ups = 0 (no voltage drop on active transistor) Available voltage regulator: LD1117-33 Fixed 3.3V output Output current 1A Power dissipation max 1W Use 100uF and 100nF capacitors for input/output filtering We can assume that the entire circuit will not consume more than 100mA of current. You do not have to use debouncing technique to configure and use the tact-switch. O o o . o O o o
Design a simple microprocessor system based on 8051 microcontroller that will light two violet LEDs only when a tact-switch (SPST) is pressed, otherwise the LEDs should be turned off. Draw a full schematic, describe component selection and calculate resistor values. Do not forget about the power supply and the assembler code. Connect tact switch to P1.0 and LEDs to P3.0 and P3.1. o o O O O . Available power supply is 6V Available LED has voltage drop of 4V when forward-biased with 2mA current Available microcontroller is AT89S4051: o Power supply voltage should be fixed to 3.3V Reset circuit - 10uF capacitor connected to VCC Max GPIO current (per pin) - ImA source, 10mA sink Clock should be connected using a 4 MHz crystal resonator No MOVX function Do not add programming interface or communication peripherals Available NMOS and PMOS transistors - IVTH = 2V, Idsmax = 1A Gate polarization resistor should be 10 MOhm to ground Gate should be connected with microcontroller pin with 100 Ohm series resistor When the transistor is turned ON the Ups = 0 (no voltage drop on active transistor) Available voltage regulator: LD1117-33 Fixed 3.3V output Output current 1A Power dissipation max 1W Use 100uF and 100nF capacitors for input/output filtering We can assume that the entire circuit will not consume more than 100mA of current. You do not have to use debouncing technique to configure and use the tact-switch. O o o . o O o o