I have to measure the time between 2 events (pressing buttons), like this:
if button1 is pressed -> start the timer if button2 is pressed -> stop the timer
print the time (in milliseconds) between the events
i am using the CCS Compiler and the microcontroller is a PIC18F27J53.
please can someone give me an example code for this? would be very nice
greetz Alex