I am new in this area, so I would be very grateful if you help me.
I am learning about microcontrollers. I started with PIC12F675.
My problem is next:
I want to take the input (which is digital) and it can be HIGH (1) or LOW (0) and I want to measure the time from one change to another (example: first come High (1), now I start to count the time and when the next input value becomes Low (0) I will stop counting, reset the timer and start counting until it become again High(1) and so on).
It will be great if you can tell me how could I do the measure in milliseconds.
I know how to do my initialize on registers
ANSEL = 0; // All I/O pins are configured as digital
TRISIO = 0; // All GP pins are configured as output
TRISIO.B3 = 1; // PIN GP3 is configured as input
GPIO = 0; // Clear GPIO
CMCON = 7; // Turn off the comparators
but the rest of the program is kind of unknown to me.