System clock is 16Mhz Prescalars divide by 4 16 or 64 Compar

System clock is 16Mhz. Prescalars divide by 4, 16, or 64. Compare register is 16 bits.

Generate as close to 7.392 millisecond interrupts as possible - what is the time resolution of the answer?

Solution

Answer

Per clock tick as per the prescalar = 4/16, 16/ 16 and 64/16 = 0.25, 1 and 4 milliseconds

so, the number of ticks required to generate an interrupt of 7.392 ms as per the prescalars is 7.392/0.25, 7.392/1 and 7.392/4 = 29.568, 7.392 and 1.848 = 30, 7 and 2

You can choose any of the above resolution as per you requirement.

System clock is 16Mhz. Prescalars divide by 4, 16, or 64. Compare register is 16 bits. Generate as close to 7.392 millisecond interrupts as possible - what is t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site