(40pts) Question-0x02 Write an assembler code that perIorms: Continuously outputs the signal shown, at pin 18 oI PIC16F84A (PDIP package). Assume that the microcontroller is operating with a 8 MHz clock oscillator Irequency.
(40pts) Question-0x03 In view oI the below simpliIied circuit diagram write an assembler code that perIorms: In an inIinite-loop: Checks whether the push-button is pressed or not, and II the push-button is not pressed then a subroutine is called that turns oII all LEDs, and II push-button is pressed then another subroutine is called that turns on all LEDs.