Jump to content

CD4051 Latency


FJMSoft
 Share

Recommended Posts

This info is stated in the datasheet of your actual CD4051 variant. But normally the acquisition time of the ADC will be much higher than this. You can just get one AD value, switch to the next channel and wait perhaps a few NOPs.

Seppoman

Link to comment
Share on other sites

Hi Seppoman, thanks for your answer... I'm waiting like 1,2 mili second, and same problem... One potentiometer slightly changes the value of another... My CD4051 common output is connected to input of ADC0804, can you see for me, how much time ADC0804 needs between each voltage input change? Thanks.

Link to comment
Share on other sites

This should be ok... what is the range in between the conversion results are jittering?

If it is +/- 1 LSB, this would be normal (the 4051 adds some noise..) - this has to be compensated via software (just use a "deadband" algorithm)

Best Regards, Thorsten.

Link to comment
Share on other sites

The resulting effect when the setup time is not long enough is jitter, no?

However, regardless of the definition, my question was: how high is the unexpected offset?

I know many people who implemented their own MIDI controller firmware in the past, and most of them were not aware of methods how to make pot changes stable within the target resolution. Yes, the fun begins with multiplexing, where voltages are not settled, and the dynamic switching causes spikes on the analog inputs.

At the beginning of the MIDIbox project I needed more than one year to work out a method - later I discovered that it is very commonly used by experts. ;)

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi Thorsten, thanks for all attention you are giving to me.

I'm getting crosstalk, the jitter is normal, +-1bit.

You think 25000 micro second + adc latency is ok for each pot read?

How do you do with midibox? Can you teach me?

I'm using 8051 as microcontroller, ADC0804 as converter and 4051 to multiplex.

Do you program 8051?

Thanks.

Link to comment
Share on other sites

25mS is far to much, in MIOS I'm using a setup time of 100 uS before starting the conversion. The jitter is ca. +/- 1 LSB as well. It is compensated with the deadband algorithm which is described somewhere in the forum (use the search function - you have the keyword now), and at http://www.wikipedia.com of course.

8051: I played with a 80c535 ca. 15 years ago... so far I remember it has an integrated ADC. I wouldn't use such micros today anymore - there are cheaper, higher integrated parts for less money.

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...