01-05-2009 05:12 PM
danapinto@gmail.com wrote:
tinnitus: your solution is the most accurate from all
That's interesting considering it's simply what I had presented with a value of 2048 instead of -1 (which amounts to the same thing).
danapinto@gmail.com wrote:
... but I have problem with the digital signal it should be 2 channels of digital one that starts from 0 and follow 1 and the other that starts from 1 and flow 0 - what I get is only one channel that starts from 2 and flow 1.
What am I doing wrong? Can you help to get this 2 channels of digital signales?
If you want to convert the byte value into two separate bit streams then you need to do this yourself based on the byte value. In this case the byte value indicates the high/low state of the two digital channels:
0 = digital channel 1 is low, digital channel 2 is low
1 = digital channel 1 is high, digital channel 2 is low
2 = digital channel 1 is low, digital channel 2 is high
3 = digital channel 1 is high, digital channel 2 is high
You can easily accomplish this using simple numerical logic, as shown in attached mod.
01-06-2009 05:31 AM
thank you all for the help, this is it!!!!
🙂