vili.chaudhary
New Member
**update/changed**
Dear all.....
Dear all.....
Last edited:
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.
clr Count ;clear our 16 bit counter
clr Count+1
WaitSignal0 btfsc PORTB,0 ;wait for signal 1 to be low
goto WaitSignal0
WaitSignal1 btfss PORTB,0 ;wait for signal 1 to go high
goto WaitSignal1
TimeSignal0 btfss PORTB,1 ;is signal 2 low
goto WaitEdge ;yes, go wait for rising edge
incf Count,f ;no so count
btfsc STATUS,Z ;is there a carry
incf Count+1,f ;yes, inc high byte
nop ;waste 1 cycle
goto $+1 ;waste 2 cycles
goto TimeSignal0 ;loop around - total time = 10 cycles
WaitEdge btfsc PORTB,1 ;is signal 2 high
goto GotTime ;yes, so were done
incf Count,f ;as above
btfsc STATUS,Z
incf Count+1,f
nop
goto $+1
goto WaitEdge
GotTime
Can you show your schematic? 1 V across the diode will drop become 0.3 V. Half wave filtering the 0.3 V will become almost nothing IMO.
For potentiometer at 1V how many leds you can see on PORTC?
Can you measure the voltage on the pic pin.
Gayan Soyza said:DId you try taking samples once in a while as I said before.