Copper Masud
Newbie level 4
Code:
a = (TMR1L | (TMR1H<<8)); //Reads Timer Value
what happened in the timer1 code (above) ???????
Last edited by a moderator:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
a = (TMR1L | (TMR1H<<8)); //Reads Timer Value
a = (TMR1L | (TMR1H<<8)); //Reads Timer Value
T1CON = 0x10; //Initialize Timer Module
a = (TMR1L | (TMR1H<<8)); //Reads Timer Value
a = a/58.82; //Converts Time to Distance
a = a + 1; //Distance Calibration