ADC multiplex with 4051


Results 1 to 8 of 8

Threaded View

  1. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Your single loop for ADCin0 and 1 is not clear to me
    rmteo has forgotten to set portC. Just add the red line and it will work. (I sugget you to use a small delay)

    Code:
    for i = 8 to 23
    PortC = i
    Pause 1
    
      ADCIN 0, AD[i-8]
    next i
    S0,S1,S2 are on RC0-RC2
    Enable of Mux 1 on RC4
    Enable of mux 2 on RC3
    Remember that as you have wired the system mux2 will start first (from 8 to 15) and then to follow mux1 will be activated (from 16 to 23). If you need them the other way around then swap the wiring of portC.3 & portC.4

    Al.
    Last edited by aratti; - 20th March 2010 at 00:46.
    All progress began with an idea

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts