6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 10:12 pm

All times are UTC




Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Sat Dec 10, 2016 6:51 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
The electrons have to go through the N-channel MOSFET from source to drain, not drain to source. The drain has to be positive relative to the source. You can turn the MOSTFET around to get that, but then the internal diode will conduct (to protect the MOSFET) if you connect the power backwards, so there won't be any protection for the computer anyway.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 7:11 pm 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
Unless I've missed something important, then Maxim Integrated disagrees with you, specifically Figure 3.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 7:41 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
Well, perhaps the MOSFET can handle small reverse voltages like that where the internal diode would go on anyway if the transistor were not turned on; but that's not the way the transistor is designed to be used. I worked in VHF & UHF power transistor applications engineering, mostly with MOSFETs, at a transistor manufacturer in the mid-1980's. I didn't work in the department that designed the wafer process and the silicon geometries, but having done many successful amplifier designs with them, I am a bit familiar with MOSFETs. I've also designed lower-frequency ones (non-RF) into our company's power supplies, including switching regulators. OTOH, there is an unconventional way I use bipolars in our audio designs, a way that most designers would think would never work; so I know there could be some elusive tricks. The data sheet for the IRLML6344 is at http://www.mouser.com/ds/2/196/irlml6344pbf-938034.pdf . Figures 10a and 14b show the direction it is designed to conduct in. The drain is positive with respect to the source in normal operation.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 7:57 pm 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
Don't get me wrong, I'm not saying you don't know what you're doing. I'm the one who has no idea what's going on with mosfets. What I am saying is that I have two seperate camps of knowledgable people (maxim, instructables & stackexchange vs yourself & the datasheet) saying opposite things. Therefore I do not know which way to go.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 8:13 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
GARTHWILSON wrote:
The electrons have to go through the N-channel MOSFET from source to drain, not drain to source. The drain has to be positive relative to the source. You can turn the MOSTFET around to get that, but then the internal diode will conduct (to protect the MOSFET) if you connect the power backwards, so there won't be any protection for the computer anyway.

Electrons will happily go either way, as long as the gate-source voltage is above the threshold.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 8:20 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
There might be several ways to handle the protection problem. I'll try to give it some more attention when I have more time. The simplest would be to just put a diode in series with the positive side, but then you'll need the power supply to be slightly higher than the target operating voltage; and if you want to operate something like an A/D or D/A converter off the same supply, you'll probably want it to have its own reference, even if it's only an 8-bit converter. We do have portable products for private pilots, for the ones flying ultralights or vintage or other aircraft which may have no electrical system, and in that case I do put 1N5817 diodes in series with the 9V batteries; but there's a switching regulator after that that kicks the voltage up to a tightly regulated 12V for the audio circuits and another that takes the 12V down to 5V for the microcontrollers. It's a little different for units that are powered by the aircraft power (which may be anywhere from 11V to 30V, plus spikes). The next simplest way to handle the protection problem might be to put a fuse in series with the positive and a diode from there to ground, so in the rare occurrence that you do connect it backwards, the fuse blows.

Quote:
Electrons will happily go either way, as long as the gate-source voltage is above the threshold.

It depends on the internal construction. MOSFETs are usually not symmetrical inside, and the dimensions and doping of the source and drain sides are different. Even if it works, the gain may be super low in the reverse direction, or you may run into other problems. I suppose the way to find out for a particular part number is to try it, since the data sheets don't characterize the operation in the reverse direction.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 8:47 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Quote:
The simplest would be to just put a diode in series with the positive side

Basically, that is accomplished by using the body diode in a MOSFET for this purpose. And then you can turn on the MOSFET to reduce the voltage drop you'd otherwise have. This is also called an "ideal diode circuit". Here's one

Quote:
It depends on the internal construction. MOSFETs are usually not symmetrical inside, and the dimensions and doping of the source and drain sides are different. Even if it works, the gain may be super low in the reverse direction, or you may run into other problems. I suppose the way to find out for a particular part number is to try it, since the data sheets don't characterize the operation in the reverse direction.

That's why the gate threshold is measured relative to the source voltage. And that's the reason why you usually don't see the MOSFET being using the "wrong way", because it puts the source side on the higher voltage, and that makes it harder to get the gate even higher. But once you manage to get the gate voltage high enough, it doesn't matter which way the current flows.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 9:02 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
You can't just swap source and drain on most MOSFETs, any more than you can swap emitter and collector on bipolars, even though NPN backwards is still NPN, and PNP backwards is still PNP. They don't work well when put backwards, because the N on one end has a different level of doping from the N on the other end, and its dimensions are different as well. Will it work? Sort of, but not well. Gains, saturation resistances, breakdown voltages, etc. will be different, and generally not in a good way.

When you can't find adequate answers for a particular application, just experiment and take a lot of data under all the anticipated conditions (and a little beyond), before implementing it in something that will be costly if it doesn't work out as hoped.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 10:30 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
But you don't swap the source and drain, because you always keep the gate voltage referenced to the source. That's a crucial part of the idea.

Also, keep in mind that we're only using the MOSFET in fully saturated mode.


Last edited by Arlet on Sat Dec 10, 2016 10:44 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 10:38 pm 
Offline

Joined: Sat Jul 28, 2012 11:41 am
Posts: 442
Location: Wiesbaden, Germany
update: deleted - had errors

_________________
6502 sources on GitHub: https://github.com/Klaus2m5


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 11:02 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
I agree, but I'm not sure what you're getting at. There are some JFETs that are symmetrical inside, so you can swap the marked source and drain, and whichever side has the lower voltage (in the case of N-channel) becomes the source. Swapping the emitter and collector of an NPN however does not make the lower-voltage one a legitimate emitter, and a similar situation will exist with MOSFETs. It won't work as well conducting in the reverse direction just because the gate is still positive WRT the intended source.

In the case of AlSi's circuit, since it is intended to work in reverse and the data sheet doesn't have any info on running it this way, the thing to do would be to try it and take data. If it were for production, you would need to test as many wafer lots as possible (which may be a challenge) to allow for variations between lots, before settling on a final design. Even burn-in and accelerated life testing might be good, so you don't end up doing something that's slowly damaging the part and will make it fail long before expected. For a one-off personal project, things get a lot easier.

Quote:
Maybe a little simulation is convincing enough.

Your first diagram has the right polarity of MOSFET, but to match AlSi's circuit, you need to turn it around so the source is away from the signal instead of toward it, and then add the parasitic diode with the cathode toward the signal side.

I don't use analog simulators though. There are too many problems with them. The software supplier can only go on info the transistor manufacturer supplies, and again, they don't provide any about running the current through it in the opposite direction. Bob Pease, analog-design industry guru who worked for National Semi and wrote for Electronic Design magazine every month, had a series of articles years ago that I cut out and kept called "What's all this spicy stuff, anyhow?", about the problems engineers came up with using pSpice, even to the extent of having passive circuits oscillating. He'd get engineers calling him asking how to get a certain IC to operate stably, because everything they tried failed. He's say to them, "You only tried it in pSpice, didn't you?" and the answer was yes.

I think I'll slow down on this topic. I might chime in if something else comes up, but otherwise let it go.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 10, 2016 11:46 pm 
Offline

Joined: Sat Jul 28, 2012 11:41 am
Posts: 442
Location: Wiesbaden, Germany
Garth,

you are right, one should not trust somebody elses simulation, which I unfortunately did. The internal diode was definitely pointing the wrong way in my example. Sorry for causing confusion.

However, the power in Alarm Siren's diagram is sourced from right to left, which added to the confusion. So the MOSFET is pointing the right way there.

Just a little rant: Have I mentioned that I hate these subdivided schematics, where things are sorted by the space they ocupy, not by how they relate to each other? Power in the middle and oriented right to left! Just great! The board layout is probably more readable than the schematics. :evil:

_________________
6502 sources on GitHub: https://github.com/Klaus2m5


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 11, 2016 1:24 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8507
Location: Midwestern USA
Alarm Siren wrote:
OK, so, I've made some changes, see attached schematic.

It would be a big help to post the schematic in monochrome.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 11, 2016 2:14 am 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
Klaus2m5 wrote:
Just a little rant: Have I mentioned that I hate these subdivided schematics, where things are sorted by the space they ocupy, not by how they relate to each other? Power in the middle and oriented right to left! Just great! The board layout is probably more readable than the schematics. :evil:


I'm sorry that my schematic has upset you. I actually think its quite readable (though I suppose I am biased!) though I agree the power section is orientated in the "wrong" direction relative to what one normally expects. I can assure you that, at least at current, the board layout is definitely a lot less readable, seeing as its not yet finished!
I had to make it all fit on one sheet because I've yet to be able to figure out how to get Kicad to do multiple sheets properly, hence all the squishing.

BigDumbDinosaur wrote:
It would be a big help to post the schematic in monochrome.


I can do that for you, but may I ask, in what way it will help? All the information is the same.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 11, 2016 6:06 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8507
Location: Midwestern USA
Alarm Siren wrote:
BigDumbDinosaur wrote:
It would be a big help to post the schematic in monochrome.

I can do that for you, but may I ask, in what way it will help? All the information is the same.

An explanation can be found here. Aside from vision issues that may make it difficult for some to read a schematic in color, it is my opinion that color does nothing to make it easier to understand the schematic.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 29 guests


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 post attachments in this forum

Search for:
Jump to: