Computer Science, asked by himasridevarabhotla, 5 months ago

generate a square wave of 1khz with 75% duty cycle on pin p1.0 assume that xtal = 8mhz and timer 0 is used in mode 1 for generating delay​

Answers

Answered by SHAMBHAVIKASHYAP37
0

Explanation:

frequency = 1KHz

1 pulse = 1/1KHz = 1 msec

500 μsec ON time and 500 μsec OFF line.

Crystal Frequency = 12MHz

1 clock pulse = 1μsec.

Count = 500μsec/1μsec = 500

Counter initial value = 65536 - 500 = 65036 = FE0C

Similar questions