hi and i really thank u torben and jimmy , u helped me to understand the 19us thing
but now there's something else that i don't understand which is why the designer of that code used both legs of the transmitter with the MCU.
i mean what's the benifit of doing such a thing?
if he used one leg and let's suppose it's the one connected to RB4 and connected the other leg to the GND, and then he sent the following code:
Code:
PING1:
PORTB = %00010000 ' 1st half of cycle "[B]RB4=1[/B]"
Delayus 10 ' Create a delay of 10uS
PORTB = %00000000 ' 2nd half of cycle "RB4=0"
Delayus 9 ' Create a delay of 9uS
isn't that going to make the same job??!!
if not plz tell me why?
thanx alot for ur time