Author Topic: What is a digital system? Is it only binary or decimal, octal as well?  (Read 26516 times)

0 Members and 5 Guests are viewing this topic.

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19945
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #325 on: October 29, 2023, 02:30:52 pm »
Later I consider not to use ternary, but binary using levels 0 and V/2.  I would remove the first ADC, keep the second one and remove the truth table.  According to radiolistener this would now a digtal system because it is purely binary.  Yet radiolistener also contends that digital system does not have ADC but this one does.  The contradiction is evident.

No. You cannot put 3 level signal on two digital input with different level standard, because it will leads to metastability issues. If you want to do what you want, you're needs to use two analog comparators for signal which has 3 discrete levels. Each comparator should be tuned for different analog threshold, then it will works and you can convert your 3-level signal to a digital domain.
1.  You are quoting where I describe a pure binary system.  Nothing 3-level in it.  But then you write nonsense about 3-level on 2 digital input and metastability issues.

2.  Yes you can "put 3 level signal on two digital inputs with different level standard" without issues.

You can.
I can.
All but one person contributing to this thread can.

Some people remain convinced of things that aren't even wrong. The question is why they continue in such beliefs. And then whether it is worth paying any attention to them on that and other subjects.
« Last Edit: October 29, 2023, 02:32:52 pm by tggzzz »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #326 on: October 29, 2023, 02:31:11 pm »
Here is a simple digital logic circuit that converts one line of a ternary digital state to two lines of binary digital state, using the conversion table in the figure.

Your circuit uses non digital domain with bipolar voltage source and open voltage threshold of diodes and triggering voltage of relay. These things are not digital, they are analog. So your circuit is mixed signal circuit which uses analog domain and digital domain.

In short, this is simplified ADC which converts analog signal to digital. This is not pure digital circuit.

It will be more easy to understand why this circuit is not pure digital if you add voltage shift +2.5V.
In such way your circuit will works with:
N = +5 V
Z = +2.5 V
P = 0 V
GND = +2.5 V

So, your circuit has digital output from relay. But it has analog circuit which controls relay state.

In order to improve stability of such circuit it will be better to use analog comparators to control relays. So, in such way you will will reduce effect of relay hysteresis and no needs to play with GND offset. But also relays become useless and you can use analog comparators output as digital output directly. And if you overview what happened with circuit, you will notice that it is turned into classic ADC.

The circuit controlling the relays is no more an analog circuit than is a 7404 TTL binary inverter run from a split power supply of +/- 2.5 V.
(In real systems, I have run 4000-series CMOS binary logic from split supplies of +/- 6 V for special purposes.)
The voltage into the 7404 can be varied continuously, but there are only two valid states of the input that give valid states of the output, and the designer must make the transition rapidly to minimize time in the invalid states.
I posted a simple circuit:  obviously, it could be improved.
The ternary levels I quoted are consistent with those suggested in the 1967 thesis for a true ternary system.
Digital systems include those that are not inherently binary, despite your continued baseless claim.
« Last Edit: October 29, 2023, 02:39:02 pm by TimFox »
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 12015
  • Country: us
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #327 on: October 29, 2023, 04:24:56 pm »
Converting from ternary to binary is of course a digital computation using arithmetic logic. It does not require going through the analog domain. For example:

Suppose we have 1002 in base 3 (a ternary digital value), and we wish to convert it to binary. We can proceed as follows:

Code: [Select]
Ternary logic        Binary digits
1002 - 121 = 111  =>   1
111 - 22 = 12     =>   1
12 - 11 = 1       =>   1
1 - 2 fails       =>   0
1 - 1 = 0         =>   1

As a result, 10023 = 111012

This is a computation that can be performed by any kind of ternary computing device that supports integer arithmetic.
« Last Edit: October 29, 2023, 04:29:31 pm by IanB »
 
The following users thanked this post: TimFox

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #328 on: October 29, 2023, 04:27:56 pm »
That is a good example of a sequential calculation, reminiscent of long division in decimal digital systems.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12021
  • Country: ch
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #329 on: October 30, 2023, 07:32:37 am »
And it will be crazy to think that he is talking about analog amplifier on sound DAC output which has 16777216 discrete voltage levels...
Not by the time the conversion is done. Then you have a fully analog signal. (Once the bandwidth limit is applied to the output, the steps are gone.)

But of course you’re missing the real point: it’s about how you interpret the signal on the input.
 
The following users thanked this post: MK14

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4690
  • Country: gb
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #330 on: October 30, 2023, 11:46:12 am »
Bold added by me.
Not by the time the conversion is done. Then you have a fully analog signal. (Once the bandwidth limit is applied to the output, the steps are gone.)

But of course you’re missing the real point: it’s about how you interpret the signal on the input.

The following example, is NOT how I think things should be interpreted.  But some other(s), but I won't mention names, **might** think that way.

Example:
A 5 volt (output is precisely 0 volts for logic '0' and precisely 5 volts for logic '1'), all digital logic series, which treats input (threshold) voltages below 2.5 volts as logic '0', and equal to or above 2.5 volts as logic '1'.  Hysteresis, noise thresholds and other practical real life phenomenon, are being disregarded, for this example.

Therefore, it is a 100% analogue device, a non-inverting buffer, is actually a 1 bit, A to D converter.  Which is equivalent (internal circuitry wise) to the inverting input being connected to exactly 2.5 volts, and the non-inverting input, being used as the input.
Much like a comparator, sorry, I mean op-amp, as this is 100% analogue.

In other words.  Yes, a non-binary input/output digital system, **could** be interpreted as being equivalent to an A to D (and DAC, depending on if input or output, etc) converter.  But would still be a 'Digital System', just with more than 2 states, but still a fixed number of defined output (voltage, current, etc) levels.

In the same way a simple wire (or bunch of them, possibly screened or similar), can be used for many different purposes, which would tend to change its name.  E.g. Wire, Cable, Accelerator-Cable, Tie-Wrap, USB lead, Meter Leads, Lighting Cable, Breadboard Leads, Ethernet Patch Cable, etc.
« Last Edit: October 30, 2023, 11:50:20 am by MK14 »
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5331
  • Country: us
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #331 on: October 30, 2023, 01:29:30 pm »
I've been thinking about this over the length of the thread, and think that for me the meaning of a digital system is closely tied to reversibility.  Given the outputs can you unambiguously reconstruct the inputs?  Obviously this isn't a formal definition.  You can't reconstruct the input of an or gate from the output, but you do know at least the values that could have been there.  A to D converters illustrate another ambiguity of this definition.  You can certainly reconstruct the inputs from a theoretical D to A, and for a good 8 bit real D to A, but I know of no 32 bit D to A converters that are monotonic and linear enough to allow recovery of the inputs.  In spite of these weaknesses I find this a useful definition.

Edited to correct my bonehead reversal of D to A into A to D, and a spelling error.  Thinking of D to A makes the point I was attempting to make more clear and avoids all the need to discuss thermal noise and the like.  And if someone comes up with a good enough 32 bit converter make it 48 bit.  The points that my definition is not a complete formal definition.  There are counter examples, but it works as an organizing tool for me.  There is no one correct way to sort things.  Others have their preferred bins.
« Last Edit: November 02, 2023, 11:42:29 pm by CatalinaWOW »
 
The following users thanked this post: tooki, MK14

Offline AndyBeez

  • Frequent Contributor
  • **
  • Posts: 856
  • Country: nu
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #332 on: October 30, 2023, 06:36:14 pm »
I've been thinking about this over the length of the thread, and think that for me the meaning of a digital system is closely tied to reversibility.  Given the outputs can you unambiguously reconstruct the inputs?  Obviously this isn't a formal definition.  You can't reconstruct the input of an or gate from the output, but you do know at least the values that could have been there.  A to D converters illustrate another ambiguity of this definition.  You can certainly reconstruct the inputs from a theoretical A to D, and for a good 8 bit real A to D, but I know of no 32 bit A to D converters that are mononic and linear enough to allow recovery of the inputs.  In spite of these weaknesses I find this a useful definition.
Totally agreed. A digital system should also be method and time agnostic. That is, a pure digital system will not care how values are derived, stored, transmitted, duplicated or reproduced. Furthermore, it will not care when or even if these events occur. A digital system can comprise of a gate that switches from zero to one in a pico second, yet the bit that is set can stay retained in a data store that is not accessed for another human millennia - in a digital system that has yet to be invented.
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 12015
  • Country: us
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #333 on: October 30, 2023, 06:41:35 pm »
Totally agreed. A digital system should also be method and time agnostic.

I don't think this is a differentiator for a digital system though. Analog systems can have the same property.

For example, a vinyl record. The information it contains can be retrieved by a mechanical stylus, or optically, or by other methods. It is also durable, and probably able to last for millennia if stored carefully.
 
The following users thanked this post: MK14

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #334 on: October 30, 2023, 07:12:12 pm »
Analog systems can have the same property.

For example, a vinyl record. The information it contains can be retrieved by a mechanical stylus, or optically, or by other methods. It is also durable, and probably able to last for millennia if stored carefully.

I just wonder...  The vinyl record is recorded on material which is discrete and consists of finite number of atoms... The sound waves also quantized with phonons, so it also can be classified as discrete. And according to your classification the number of discrete levels doesn't matter, if it is finite, then it is digital, isn't it? But why did you classify it as analogue?  :)
« Last Edit: October 30, 2023, 07:20:01 pm by radiolistener »
 
The following users thanked this post: MK14

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4690
  • Country: gb
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #335 on: October 30, 2023, 07:19:43 pm »
I just wonder...  The vinyl record is recorded on material which is discrete and consists of atoms... The sound waves also quantized with phonons, so it also can be classified as discrete. And according to your classification the number of discrete levels doesn't matter, if it is finite, then it is digital, isn't it? But why did you classify it as analogue?  :)

That does seem to be a valid point!

BUT, there are some counter examples.

Let's say, we had ten identical records.  I.e. They were all pressed (manufactured), from the same master record disc, at the record factory.

In practice, there will be tiny, but significant (minute/tiny) variations, from the master they were pressed from.  When those ten records are, microscopically or using other techniques, compared to each other.

I.e. Noise (variations) between those ten example recordings.

BUT, if they had been genuinely digital (E.g. CDs).  They would each (assuming no destructive data errors), after any error correction things used in that digital format.  Be identical (digitally speaking).

I.e. A digital diff of the ten digital versions of those disks (if they had been recorded digitally, rather than as analogue records), would all agree with each other (assuming no bad data blocks or damage, etc).
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #336 on: October 30, 2023, 07:27:08 pm »
BUT, if they had been genuinely digital (E.g. CDs).  They would each (assuming no destructive data errors), after any error correction things used in that digital format.  Be identical (digitally speaking).

each copy of CD disk has it's own errors and it consists a lot of errors, but since records on CD also consists redundant information for recovery purposes, it is recovered on MCU in CD player.
 
The following users thanked this post: MK14

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4690
  • Country: gb
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #337 on: October 30, 2023, 07:30:56 pm »
each copy of CD disk has it's own errors and it consists a lot of errors, but since records on CD also consists redundant information to be able to recover data in case of errors, it is recovered on MCU in CD player.

I agree.  They would (tend to be) different, between the copies of the same CD, if the raw unprocessed (corrected) data, is available.  But, after all error corrections have been implemented (and assuming no actual uncorrectable data errors or damage), the CDs would have the same digital data on them (which could be music).
« Last Edit: October 30, 2023, 07:33:26 pm by MK14 »
 
The following users thanked this post: tooki

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #338 on: October 30, 2023, 07:36:39 pm »
Yes, error-correction is vital to audio CDs:  In the compact disc system, cross-interleaved Reed–Solomon code (CIRC) provides error detection and error correction. CIRC adds to every three data bytes one redundant parity byte. [Wikipedia]

Phonons are quantized vibrations of solid lattices, not directly relevant to the encoding surface of the vinyl groove in a phonograph record.
Of course, the surface itself will become discontinuous at the atomic level, which will vary from disc to disc.
The full-scale "wiggle" on an LP is roughly 25 um, and atoms are roughly 10-4 um in size, so the noise due to atoms is maybe -108 dB from full-scale, well below the electronic noise level.

The only objects that are truly identical are atoms, molecules, elementary particles, and other quantum objects.
Classical physics, when colliding billiard balls, could distinguish them by their color.
 
The following users thanked this post: tooki, MK14

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #339 on: October 30, 2023, 07:53:48 pm »
Phonons are quantized vibrations of solid lattices, not directly relevant to the encoding surface of the vinyl groove in a phonograph record.

But record is made with a needle which is made from solid body and sound waves energy is transferred through needle and is quantized...  ;)

We can walk more deep and remember that mechanical and sound pressure is transferred with electromagnetic interaction between particles (molecules and atoms). And electromagnetic interaction between particles is quantized with discrete energy portions which also known as photons...

So, every thing in our world is discrete. Then there is a question, why you don't classify all things as digital because they all have finite discrete levels? :)

Of course, the surface itself will become discontinuous at the atomic level, which will vary from disc to disc.
The full-scale "wiggle" on an LP is roughly 25 um, and atoms are roughly 10-4 um in size, so the noise due to atoms is maybe -108 dB from full-scale, well below the electronic noise level.

Yes, there is noise floor which limits number of pressure levels which can be stable detected, but since number of atoms is finite, there is finite number of configuration for them and finite number of pressure levels which can be recorded on surface. It is very large, but finite :)

For example, if wee see on the output of modern 32-bit audio DAC's, the weight of its least significant bit is well bellow thermal noise floor, so you cannot detect it even with using high end measurement equipment. The same, as vinyl record... But someone here classified it as digital, just because it has finite number of discrete levels...  :)
« Last Edit: October 30, 2023, 08:10:56 pm by radiolistener »
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #340 on: October 30, 2023, 08:10:31 pm »
A small but macroscopic surface area of the needle is in mechanical contact with a similar small area of the vinyl, and the mechanism responds to either the amplitude or velocity of the needle's displacement (piezo or magnetic, respectively) after passing it through a mechanical system (mass, compliance, etc.).
Phonons are waves propagating through a crystal lattice, which have quantum properties.
(My favorite is "Umklapp", which is like aliasing in sampled time systems, but in three dimensions.)
Phonons in the diamond needle are not relevant to the system response, and are usually up in the GHz range.
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #341 on: October 30, 2023, 08:26:03 pm »
there is electromagnetic interaction between particles which transfers sound wave as pressure wave from one particle to another.

And the energy of electromagnetic interaction between particles is discrete and quantized with photons. Yes quantum of energy is very small and simple sine sound involves incredible amount of photons to transfer sound wave through vinyl player needle, but energy transfer is discrete, NOT continuous...

So, is vinyl record digital?  ^-^
« Last Edit: October 30, 2023, 08:43:46 pm by radiolistener »
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #342 on: October 30, 2023, 08:42:00 pm »
Is it binary?
All voltage waveforms can be called analog, even at the input of a binary logic gate, but real systems can interpret the waveform as either a discrete (digital) or continuous (analog) code of the important variable (e.g., musical sound).
If the discrete levels that are encoded are closer together than the system noise, then the analog interpretation is normally more relevant.
 
The following users thanked this post: MK14

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #343 on: October 30, 2023, 08:55:49 pm »
Is it binary?

No it is not binary and therefore not digital but analogue.
But I wonder to know why it is analog from those who thinks that digital means discrete and it don't matter how many discrete levels it has...

 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19671
  • Country: gb
  • 0999
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #344 on: October 30, 2023, 08:59:08 pm »
If the discrete levels that are encoded are closer together than the system noise, then the analog interpretation is normally more relevant.
I remember making that point to an audiophool analogue zealot. I tried all sorts of analogies such as a screen consisting of discrete pixels, views through mist, representing noise, but the concept just didn't sink into his thick head.  :palm:
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3567
  • Country: ua
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #345 on: October 30, 2023, 09:00:48 pm »
If the discrete levels that are encoded are closer together than the system noise, then the analog interpretation is normally more relevant.

Noise floor depends on temperature and bandwidth, does it means that classification digital/analog depends on circuit temperature and signal bandwidth?   :)
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #346 on: October 30, 2023, 09:01:54 pm »
Is it binary?

No it is not binary and therefore not digital but analogue.
But I wonder to know why it is analog from those who thinks that digital means discrete and it don't matter how many discrete levels it has...

Valid logic:  it is not digital, therefore it is analog.
Also:  it is not digital, therefore it is not binary.
The converse of the second is specious.
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8053
  • Country: us
  • Retired, now restoring antique test equipment
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #347 on: October 30, 2023, 09:02:55 pm »
If the discrete levels that are encoded are closer together than the system noise, then the analog interpretation is normally more relevant.

Noise floor depends on temperature and bandwidth, does it means that classification digital/analog depends on circuit temperature and signal bandwidth?   :)

Temperature and bandwidth are valid system parameters.
Other parameters of the system are also needed to estimate the noise floor, such as operating conditions of the amplifiers.
Usually, my statement above can be evaluated without an exact value for the noise floor, in practical situations.
« Last Edit: October 30, 2023, 09:04:38 pm by TimFox »
 

Offline AndyBeez

  • Frequent Contributor
  • **
  • Posts: 856
  • Country: nu
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #348 on: October 30, 2023, 09:03:24 pm »
Totally agreed. A digital system should also be method and time agnostic.
I don't think this is a differentiator for a digital system though. Analog systems can have the same property. For example, a vinyl record. The information it contains can be retrieved by a mechanical stylus, or optically, or by other methods. It is also durable, and probably able to last for millennia if stored carefully.
I did think about a vinyl record which is effectively a linear sound wave. However, even the vinyl record passes the agnostic test in the sense the mastering, whether in analog or digital, cares nothing about the sound reproduction process. The difference is, a digital system can copy without generational loss from the information store. Ad infinitum. Analog systems inherently inject noise into the duplication process. I remember that very well from the early days of editing VHS video tapes. To duplicate vinyl requires a pressing master which, degrades over usage.

So maybe our definition of what IS a digital system needs to state that generation noise is zero. Or the S/N ratio is infinite?

 

Online IanB

  • Super Contributor
  • ***
  • Posts: 12015
  • Country: us
Re: What is a digital system? Is it only binary or decimal, octal as well?
« Reply #349 on: October 30, 2023, 09:10:42 pm »
So maybe our definition of what IS a digital system needs to state that generation noise is zero. Or the S/N ratio is infinite?

That seems like a good definition, if we qualify it by saying "in the ideal case" or "in principle". Because in practice, there can be unrecoverable errors during transmission or storage, resulting in information loss. An ideal digital system can store or transmit information such that it can be recovered exactly, without loss.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf