Hi thanks for reading my post.
I'm working on a project to build a small autonomous robot, I'm using an Atmel 89C51AC2 uController to interface the sensors and actuators plus do some calculations etc.
I'm programing in C using the RIDE51 compiler from raisonance.com.
Part of my code requires the use of a timer to calculate the lapsed time between sending an output and recieving an input.
Hoping someone could post up an example of how to configure timer0 or timer1 to do this.
I'm not very experienced with C and don't know what to do to acheive this so any help would be greatly appreciated.
Regards
Phil
I'm working on a project to build a small autonomous robot, I'm using an Atmel 89C51AC2 uController to interface the sensors and actuators plus do some calculations etc.
I'm programing in C using the RIDE51 compiler from raisonance.com.
Part of my code requires the use of a timer to calculate the lapsed time between sending an output and recieving an input.
Hoping someone could post up an example of how to configure timer0 or timer1 to do this.
I'm not very experienced with C and don't know what to do to acheive this so any help would be greatly appreciated.
Regards
Phil