saurabheda
Junior Member level 3
actually the problem arises when we use timer of microcontroller to have a delay of 12.5 µs (half of 25 µs {time period equivalent to 40 kHz})
, it becomes comparable to time spent by the µC in executing instructions ( 0.5 µs for 1 Machine Cycled instructions) and hence the instructions to produce the delay contribute significantly to the delay..
how to get EXACT 40 kHz in this scenario then..?? please help....
, it becomes comparable to time spent by the µC in executing instructions ( 0.5 µs for 1 Machine Cycled instructions) and hence the instructions to produce the delay contribute significantly to the delay..
how to get EXACT 40 kHz in this scenario then..?? please help....