A) write an 8051 program that would generate a 12.5khz, 50% duty cycle, square wave at P1.0. Use Timer 0 for delay. Assume 4 MHZ clock. All data must be in hex show every step of calculation.
B) write an 8051 program that would generate a 200khz, 50% duty cycle, square wave at P1.0.Use Timer 0 for the delay. Ignore the overheads cycles due to the instructions in the loop. Assume 12 MHz clock. All data must be hex. show every step of calculation. what would be the correct initial value if the overhead values were considered?