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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/27/08 03:24
Read: times


 
#151505 - the sensor and its application
Responding to: ???'s previous message
Hi all,

First off, let me say "Thank You" to all of you for your replies. Just reading through them all and working through your logic has really helped me get a better understanding of how to size resistors properly, how the 8051 ports operate, etc. It's a huge help and it's finally starting to make sense so thank you all!

To reply to a few concerns you had, the first thing I did was disconnect the sensor from the circuit and ensure it was still working properly. I confirmed that it was indeed giving me a step from 5V to ~0.1V so that's how I came to the conclusion that it was the series resistor causing the problem.

Being new to embedded systems, I had missed the -660uA maximum 1-0 transition current in the spec sheet for my MCU and after replacing the 100k ohm resistor with a 2.2k ohm resistor to ensure I can get the max of -660uA at the worst case of 2.0V, everything worked exactly as it should. I wrote a quick test program in assembly to blink an LED in time with the steps from the speed sensor and it's working great. I checked it with a scope also and I get a nice square wave at the port pin up to the maximum required frequency.

Like many of you said, I do believe it was the 1-0 transition current requirement that was causing the problem as there was just no way to get that kind of current out of the port with such a large series resistor. However, I decided not to completely eliminate the resistor "just in case." If something shorts out in the sensor, if I get a cut in one of the wires and a short to ground, etc. I certainly would like to have something between the MCU pin and ground to at least try to keep the chip safe. Maybe it's just me being paranoid(??) but I rather err on the side of caution.

Re. what this sensor is actually doing, it's actually sensing wheel speed for an anti-lock braking system I'm designing and building so there's no inductive noise from a large AC motor to worry about. Mechanically and electrically, I'm ready to test the entire system as a whole and now that all my I/O is working as it should, I'm very close to testing my control algorithm. I'm excited!

Thank you all again for your help and patience :-)
Brian

List of 40 messages in thread
TopicAuthorDate
P3.5 input problem            01/01/70 00:00      
   100k is way too large            01/01/70 00:00      
      Yup            01/01/70 00:00      
      ports1-3 vs. port0            01/01/70 00:00      
      a small correction            01/01/70 00:00      
   Page 4 datasheet says            01/01/70 00:00      
      Calculating the maximum resistor            01/01/70 00:00      
         Calculating the ...            01/01/70 00:00      
   80uA is not a maximum specification            01/01/70 00:00      
      re:resistor            01/01/70 00:00      
   Resistor            01/01/70 00:00      
      I would not            01/01/70 00:00      
         Resistor            01/01/70 00:00      
            Resistor ... again ...            01/01/70 00:00      
      basic troubleshooting first            01/01/70 00:00      
         the sensor and its application            01/01/70 00:00      
            Oh, max frequency is ~4kHz :-)            01/01/70 00:00      
         Please ignore the "basic troubleshooting"            01/01/70 00:00      
         pray tell why            01/01/70 00:00      
            Capacitance problems ...            01/01/70 00:00      
   You have totally misunderstood the situation            01/01/70 00:00      
      thank you Kai            01/01/70 00:00      
         maybe it is            01/01/70 00:00      
            Link in original post            01/01/70 00:00      
            datasheet            01/01/70 00:00      
         Being paranoid is a good attitude...            01/01/70 00:00      
            Paranoia medicine            01/01/70 00:00      
               Yes, perfect, i also thought about this...            01/01/70 00:00      
                  the "industrial strength" 485 transciever            01/01/70 00:00      
                     But they gaurantee this            01/01/70 00:00      
      But the micro port shouldn't be driving anything            01/01/70 00:00      
         Missing the boat.            01/01/70 00:00      
            Waving at the boat.....            01/01/70 00:00      
               wrong place (in some instances)            01/01/70 00:00      
            More about the P3.5 pull-up issue            01/01/70 00:00      
               one simple way            01/01/70 00:00      
               AT89S8252            01/01/70 00:00      
         Please read this...            01/01/70 00:00      
   ABS & Safety            01/01/70 00:00      
      safety concerns            01/01/70 00:00      

Back to Subject List