In my program I used
PULSIN PORTA.3,1,FQOUT 'width of the high side (2uS resolution)
FQOUT=FQOUT*4 'width of one complete cycle
Now I have the number of Microseconds of the square wave signal.
Using Interger Math (PicBasic Pro) how can I calculate the frequncy so i can display it. (1/FQOUT obviously won't work)
Anyone have the answer.
Robb
PULSIN PORTA.3,1,FQOUT 'width of the high side (2uS resolution)
FQOUT=FQOUT*4 'width of one complete cycle
Now I have the number of Microseconds of the square wave signal.
Using Interger Math (PicBasic Pro) how can I calculate the frequncy so i can display it. (1/FQOUT obviously won't work)
Anyone have the answer.
Robb