Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/07 08:00
Modified:
  06/12/07 08:07

Read: times


 
#140572 - Some changes needed
Responding to: ???'s previous message
Purshottam:

<pre>
AD_MEAS: MOV A,CH_MEAS ;WHAT IS TO BE MEASURED 1
ANL A,#03h ;CLEAR MSNIBBLE REMAINDER HAS WHICH CH# TO MEASURE 1
ANL P3,#11111100b ;CLR BIT 0&1 OF P3 1
ORL P3,A ;SELECTS 4052 CHANNEL 1
<\pre>

You need to put this code at the tail end of your routine. You seem to face an issue of the setup time of the 4052. You are selecting a channel on the 4052 and immediately(before it settles) try to digitize it. This is the source of your problem. So, I suggest, you select the next channel to digitize after you have digitised the current channel. This gives the 4052 time to settle before you digitize the channel.

Hope this helps
Jerson

EDIT:
Having problems with the formatting. Please excuse me. I have used the pre tags with <> brackets but somehow the trailing \pre does not get interpreted as it is visible in the post.

List of 25 messages in thread
TopicAuthorDate
MCP3202 ADC problem            01/01/70 00:00      
   Circuit ?            01/01/70 00:00      
      MCP3202 ADC problem            01/01/70 00:00      
         Testing strategy recommendation            01/01/70 00:00      
            Prototype            01/01/70 00:00      
               Could you specify all parts of your circuit?            01/01/70 00:00      
               What is driving the inputs of CD4052?            01/01/70 00:00      
                  Diagram blues            01/01/70 00:00      
                     Why diode in /CS line of MCP3202?            01/01/70 00:00      
                     Voltage divider directly to input of CD4052?            01/01/70 00:00      
                     Pseudo-differential mode?            01/01/70 00:00      
                        Who cares for Psudo?            01/01/70 00:00      
                           You definitely need buffers at the inputs of ADC!            01/01/70 00:00      
                              No violations            01/01/70 00:00      
      Here is CKT & code            01/01/70 00:00      
         Uncommented, unformatted code :-(            01/01/70 00:00      
            connection to CH0 & CH1            01/01/70 00:00      
               Ckt Diagram            01/01/70 00:00      
            Commented code            01/01/70 00:00      
               Some changes needed            01/01/70 00:00      
                  Formatting Forward Slash - not Backslash!            01/01/70 00:00      
                  Setup problem            01/01/70 00:00      
               Togglings needed while /CS is high?            01/01/70 00:00      
                  toggling CLK doesnt help!            01/01/70 00:00      
      A picture is worth a 1000 words            01/01/70 00:00      

Back to Subject List