CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

High Side darlington array
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Jan 18, 2013 10:49 am     Reply with quote

Quote:
Maybe this is my problem however.... I do not have a level conversion. I am applying 24V directly to the UDN i am using as input to the MCP...

Are there any good recommendations for a 24V to 5V level converter that has 8 channels? (i.e. buck regulator, etc)

I presume you mean 5 to 24V.

And you missed the point about level shifters when Ttelmah suggested generating 'magic brown smoke' some posts back.

I'm not the only one to have asked for some sort of schematic, would have decided this issue long since.

Again we still don't know for certain what currents you're working with.

Ttelmah's opto solution may be good enough, we can't tell from here.

Like I often say, you're the one with the kit in front of you.

Mike
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PostPosted: Fri Jan 18, 2013 11:02 am     Reply with quote

i would say (but difficult to verify at this point) that I will be around 50mA. For sure I am under 100mA.

But to get an exact number requires alot of research into this since there are many I/O's and each have different functions.

I will look into this however.

My question now is: the UDN2891 shows only test condition voltages.
I have tested these with a 24V input... it seems to work as expected and they are not getting warm. I believe at this point the quickest (not best) solution is to created a total of ~50 voltage dividers here for the UDN's.
Is there a better solution for this? for easier wiring (i.e. 8-channel buck regulator).

It states for the 2981 a 15 VIN (i am assuming for now this is max rating).
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PostPosted: Fri Jan 18, 2013 11:55 am     Reply with quote

Mike Walne,

no I mean 24v to 5v.

For testing I am using a 24V supply...

I will update the schematic tonight to show you exactly.

I have this:

Code:
                     uC
                    /|\
 supply:    5V       |        24V
             |       |         |
             |      \|/        |
(8)24V----->UDN----->MCP----->UDN----->(8)24V
(inputs)                              (outputs)
The above is repeated 8 times giving me a total if 128 I/Os.

However the UDN shows 15V for VIN (assuming this is max) in the datasheet.
I could do an easy voltage divider (many of them) to step the 24V down to 5V for input to the MCP's as one option.

I would like to find a buck regulator or similar as an example that has a similar pinout to the UDN (since i have built this thing on a large protoboard which for now is completely filled, but I am open to other solutions for inputs to the MCP's... I am not able to work with surface mounts really at this point, but I can on the next phase of this.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Jan 18, 2013 1:56 pm     Reply with quote

If you need to convert a 0 to 24V switch signal to a PIC input the obvious choice is a resistive voltage divider, preferably with a cap on the output.

But if ground noise may be a problem a good solution is a PNP common base level shifter. Connect a small PNP transistor with the base to the logic rail, 5V or 3V whatever the PIC runs from. Run the input through a current limiting resistor (10k) to the emitter. Connect the collector to the PIC with a pull-down resistor and probably a cap to ground. All these parts are available in multiple packs (MMPQ3906).

The advantage of the common base is that the switching point is the logic rail plus 0.7V which is a safe distance from ground to avoid ground noise problems. It is also non-inverting.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Jan 18, 2013 3:42 pm     Reply with quote

OK

Now you're telling us you need two level shifters.

24V to 5V for inputs to the UDNs.
And 5V to 24V for MCP to UDN's.

Use common base devices for both.

Mike
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 18, 2013 4:22 pm     Reply with quote

Overall it sounds like a "PLC" system with 64 inputs and 64 outputs ?
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PostPosted: Fri Jan 18, 2013 4:26 pm     Reply with quote

yes pretty much this type of system, but not exactly since i have slightly more outputs than inputs.

No i do not need to convert 5V to 24V... that is what the UDN's do.

I just need for the inputs to convert 24 down to at least 15... in total there are 43 inputs here.

two of the MCP chips will be all outputs on both channels... Ill try to update the schematic tonight.
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 18, 2013 8:26 pm     Reply with quote

Sounds like you want an 'IDC5' type device. Heavily used in industrial systems,robust,near bullit proof! These are 'solid state modules' which are esentially optoisolators and 'signal conditioning' in an epoxy package.
The input (LED half) is floating and isolated from the PIC or PLC side (the transistor)
You might get by with just a simple 4N26 type device and a couple resistors. One to limit LED current, the other for the input to the PIC.
If your product can share a common signal ground, then a simple resistor-zener diode may work or an LM78L05 will do as well.
I've used them all and like the 'L05 solution for automotive interfacing.

options...you've got lots...

hth
jay
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PostPosted: Fri Jan 18, 2013 9:23 pm     Reply with quote

yes this is the type i need, but because of the amount of I/Os i thought I would do something that comes in 8-channel IC's...
I plan on having two of these test benchs for a single test once i get everything working well.

Total i really have over 300 I/Os
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Sat Jan 19, 2013 2:42 am     Reply with quote

OK. We've got there, having been round the houses.

Yes. Your inputs are latchng, because that's how you've wired them up.

What you've got from UDN output to MCP input is this.
Code:

                  /
 UDN O/P  5V-----/ ------------ MCP High impedance input
                          |
                         ---
                         --- MCP input capacitance
                          |
                         ---
                          -


When UDN turn on, it charges up the MCP input capacitance to as close to 5V as it can get.
When UDN turns off, there's nowhere for that charge to go!

What's wrong with this for I/Ps

Code:
0 or 24Vin ----WWWWW----------------MCP I/P               
                Ru         |
                           <
                           < Rl
                           <
                           !
                          ---
                           -

Ru is one of 8 in a DIL package.
Rl is one of 8 in a SIL package.
Throw away the UDN part.
You can add a cap in parallel with Rl, 8 off also available in a SIL.

The MCP port connections are on adjacent pins, tracking's a piece of cake.

Mike
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group