Alain,
I will use 20 MHz clock for my project as I need to use
FREQOUT statement on same hardware and I need the
signal to be as smooth as possible.
Ok, 'bout the comma. I didn't notice the error either...
I actually don't need that much accuracy when I come to
think of it bacause digital zero is represented with 400us,
digital one with 600us and startbit with 800us so I could
use a couple IF, THEN statements to convert pulses to bits.
For example:
Loop:
PULSIN input, 1, Highpart
PULSIN input, 0, Lowpart
PULSE = (Highpart + Lowpart) * 10 'pulse width in us
IF PULSE > 700 THEN Loop ' If startbit capture again
IF PULSE < 500 THEN Rxd = 0
IF PULSE > 500 AND PULSE < 700 THEN Rxd = 1
GOSUB Send_Data
GOTO Loop
... or something like this
--
Sincerest regards,
YZ7REA Vladimir M Skrbic
4N7ATV Repeater Administrator
YU7GHZ Radio Club President
Bookmarks