or simpler to write ( may be same execution time ... )
Main:
While 1
Pulsin Porta.0, 1, Width 'Wait for a high pulse store the pulse width...
Type: Posts; User: Acetronics2; Keyword(s):
or simpler to write ( may be same execution time ... )
Main:
While 1
Pulsin Porta.0, 1, Width 'Wait for a high pulse store the pulse width...
my fault - I didn't pay attention to that, only glitches problem - ... it's obvious you do not get any response.
your pulse is > 1890µs ...
@ 20 Mhz: 2µs per count
IF (pulse >=...
The truth is in your electrical scheme ...
especially around the use of the " magic " .1 or .22µF ceramic capacitor to be located just between the Vdd and Vss pins ( yes, SMD 1206 size is THE...