Hello,
I need to make a 0.25us period timer for my 1-wire bus. How can this be implemented best? I have my CPU (LPC2378) running at 48MHz. Can this be achieved best with the use of timers?
I then need an exact multiple of this timing (from 1 to about 100)
When I make a function to set my timer or do anything else, then I already need 0.366us for just calling the function.
Can anyone help me?
PS: 1 CPU clock takes: 1/48MHz = 20.833ns