whiteoaks7
New Member
Hippy - thanks for replying to my last query about the 28X2 pin 6 as digital input. Can I achieve the same thing then by this spoof?
SerRxd [1,lowbit],#b0
if b0 > 0 then goto highbit
lowbit: ...
the pin will have either 5 volts (the normal case unfortunately) or 0 volts. If it has zero the timeout should operate after 1mS; if it has 5 volts then b0 will be repeatedly poked with eight "1" bits. The potential problem though is whether program flow will stop while the pin is repeatedly read (forever) or does flow continue once 8 bits have been received? Will it work? Have I simulated a digital input?
Cheers - good forum by the way
SerRxd [1,lowbit],#b0
if b0 > 0 then goto highbit
lowbit: ...
the pin will have either 5 volts (the normal case unfortunately) or 0 volts. If it has zero the timeout should operate after 1mS; if it has 5 volts then b0 will be repeatedly poked with eight "1" bits. The potential problem though is whether program flow will stop while the pin is repeatedly read (forever) or does flow continue once 8 bits have been received? Will it work? Have I simulated a digital input?
Cheers - good forum by the way