Trivial circuits for sbc
The purpose of a crowbar circuit is not to protect the power supply against a short circuit (That's what current limiting does.) A crowbar is used to protect the powered system from a failure of the power supply. Should the output voltage rise too high (say 6.25V ina 5V system), the crowbar circuit puts a massive short across the output of the power supply, blowing fuses (and probably the rest of the power supply as well, but if the crowbar goes, it had failed anyway!). The idea is to kill the power supply before the output voltage rises high enough to damage the circuit it is powering.
A 7805 regulator's internal current limiting will protect it from a short circuit or other high-current situation, providing the device is mounted on a big enough heatsink - check the datasheet. Adding an outboard pass transistor (eg 2N3055) will effectively disable this current limiting (it will still work, but at an undefined current of tens of amps, the exact value dependant on the gain of the transistor).
I've used 7085's to power my homebrew devices for 30 years now and never had one fail from overloading. The only one that has failed died from a massive spike on the incomming mains line - adding a mains spike suppressor prevented this happening again.
If one 7805 isn't sufficient, you can always use several, each supplying just a part of the circuit - don't connect the outputs together or you will have problems. The Acorn Atom used two 7805s in this manner and I understand that S100 cards used to have a regulator on each card.
A 7805 regulator's internal current limiting will protect it from a short circuit or other high-current situation, providing the device is mounted on a big enough heatsink - check the datasheet. Adding an outboard pass transistor (eg 2N3055) will effectively disable this current limiting (it will still work, but at an undefined current of tens of amps, the exact value dependant on the gain of the transistor).
I've used 7085's to power my homebrew devices for 30 years now and never had one fail from overloading. The only one that has failed died from a massive spike on the incomming mains line - adding a mains spike suppressor prevented this happening again.
If one 7805 isn't sufficient, you can always use several, each supplying just a part of the circuit - don't connect the outputs together or you will have problems. The Acorn Atom used two 7805s in this manner and I understand that S100 cards used to have a regulator on each card.
Last edited by PaulF on Thu Mar 29, 2012 12:55 pm, edited 1 time in total.
Shift to the left,
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!
In my sbc i am using the 28C256 eeprom, and i think this model has the capability to selectively rewrite each address location, so i thought that it would be nice if it would be possible to reprogram my sbc rom via serial, without having to remove the eeprom and program it via programmer. Has anyone tried to do something like this?
Dajgoro wrote:
In my sbc i am using the 28C256 eeprom, and i think this model has the capability to selectively rewrite each address location, so i thought that it would be nice if it would be possible to reprogram my sbc rom via serial, without having to remove the eeprom and program it via programmer. Has anyone tried to do something like this?
You have to keep ALL of your actual code in RAM during the write process. That included device drivers and data tables. You will be unable to read anything from EEPROM while a write sequence in underway.
Other than that, its straight forward.
Daryl
Re: Trivial circuits for sbc
What is the easiest way to get -5V for VEE(for the dac)?
Re: Trivial circuits for sbc
Since you've not specfied the current level required, regulation accuracy, and noise levels, I'll recommend to you the 7660 series of switched capacitor inverter circuits. They are not well regulated, and can generally provide only between 20 and 50 mA depending on the size and quality of the capacitors you use. The Microchip TC7660 is a candidate, but Analog Devices (ADM660), Maxim (MAX660), the TI LM2660 are also candidates.
Depending on your application for the bipolar DAC, the negative supply does not have to all that accurate or capable of providing a lot of current. These devices are switching, inductor-less regulators, so they will be too noisy for most percision analog work. They can however be used to invert an input ranging from 1.5V to 10V. Thus, if you can stand the losses and the additional cost, then you could follow the inverter with a negative voltage linear regulator (such as an LM7905) to clean up the power somewhat.
National Semi also makes a very easy to use line of switching regulators that you can configure to generate a negative voltage: look at their Simple Switcher line. Again, you may require a linear post-regulator to clean up the generated noise for any precision analog work.
Finally, depending on ypur application, you could also take advantage of the -6V output of most switched capacitor RS-232 drivers. You will not be able to pull much current from these devices. In my experience, Analog Devices has the best switches (fastest switching times with the lowest channel resistance) in these types of devices, and so will provide the cleanest output, and the most current.
Depending on your application for the bipolar DAC, the negative supply does not have to all that accurate or capable of providing a lot of current. These devices are switching, inductor-less regulators, so they will be too noisy for most percision analog work. They can however be used to invert an input ranging from 1.5V to 10V. Thus, if you can stand the losses and the additional cost, then you could follow the inverter with a negative voltage linear regulator (such as an LM7905) to clean up the power somewhat.
National Semi also makes a very easy to use line of switching regulators that you can configure to generate a negative voltage: look at their Simple Switcher line. Again, you may require a linear post-regulator to clean up the generated noise for any precision analog work.
Finally, depending on ypur application, you could also take advantage of the -6V output of most switched capacitor RS-232 drivers. You will not be able to pull much current from these devices. In my experience, Analog Devices has the best switches (fastest switching times with the lowest channel resistance) in these types of devices, and so will provide the cleanest output, and the most current.
Michael A.
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Trivial circuits for sbc
Interestingly since MichaelM mentioned the RS-232 line driver ICs with onboard switched-capacitor voltage boosters, I recently read in an article that that's exactly where the switched-capacitor power supply ICs originated. Manufacturers found out that designers were incorporating these into circuits not for the line-driver capability, but for the switched-capacitor voltage convertor.
The 7660 line has a lot of more-modern relatives that are much better. I have data sheets for a load of them downloaded. Even among the best of them, you have to choose between different trade-offs, like if you want built-in regulation like the TI LT1054 which I have a module made with here that has 0.67Ω output impedance so an 87mA load pulled it down from -4.95V only to -4.89V (!) (using a 9V battery for input), or the National Semiconductor LM2662 which has an output impedance of 3.5Ω but can achieve 86% efficiency @ 200mA with 5.5V input (I have a module built up with that too), or the LTC1144 that works to 18V, etc.. These are switched-capacitor voltage converters, and good performance depends partly on good layout and good capacitors that have very low impedance at frequencies starting in the tens of kHz. Ceramic are good, and OS-CON (Organic SemiCONductor, a type of solid-electrolyte capacitor made by Sanyo and a couple of other companies) are even much better than tantalum.
+1!
Using good capacitors and layout, I've found that they can be pretty good. I tend to add large ferrite beads to switching supplies' inputs and outputs, but even without them, I'm getting around 5mV peak-to-peak of switching noise on the outputs.
Another thing I've done is make a square-wave oscillator with a Schmitt-trigger inverter and use that to drive more of them, paralleled for more drive capability (74AC14 is much stronger than 74HC14) and then run their output into a voltage multiplier made of capacitors and Schottky diodes, and then follow that with an analog regulator if necessary. I have a module here I made like that which starts with +5V and puts out a few watts at -11.5V to get regulated down to -9V with a linear regulator.
The Power Trends integrated switching regulators are nice too. It's just too bad that both they and National Semiconductor have been acquired by TI.
Another module I was thinking of offering for sale for hobbyists is one that takes in 7.5-18V (so you could even run your project from automotive power) and put out +5 and ±9V. The trouble I run into is that without enough sales volume to justify the tool-up cost for automated assembly, the labor makes it economically prohibitive, and I can't very well offer it as a kit either since switching power supplies (which it would partly use) do not lend themselves to hand assembly without special tools. I might still find a way.
The 7660 line has a lot of more-modern relatives that are much better. I have data sheets for a load of them downloaded. Even among the best of them, you have to choose between different trade-offs, like if you want built-in regulation like the TI LT1054 which I have a module made with here that has 0.67Ω output impedance so an 87mA load pulled it down from -4.95V only to -4.89V (!) (using a 9V battery for input), or the National Semiconductor LM2662 which has an output impedance of 3.5Ω but can achieve 86% efficiency @ 200mA with 5.5V input (I have a module built up with that too), or the LTC1144 that works to 18V, etc.. These are switched-capacitor voltage converters, and good performance depends partly on good layout and good capacitors that have very low impedance at frequencies starting in the tens of kHz. Ceramic are good, and OS-CON (Organic SemiCONductor, a type of solid-electrolyte capacitor made by Sanyo and a couple of other companies) are even much better than tantalum.
Quote:
Depending on your application for the bipolar DAC, the negative supply does not have to all that accurate or capable of providing a lot of current.
Quote:
These devices are switching, inductor-less regulators, so they will be too noisy for most percision analog work.
Another thing I've done is make a square-wave oscillator with a Schmitt-trigger inverter and use that to drive more of them, paralleled for more drive capability (74AC14 is much stronger than 74HC14) and then run their output into a voltage multiplier made of capacitors and Schottky diodes, and then follow that with an analog regulator if necessary. I have a module here I made like that which starts with +5V and puts out a few watts at -11.5V to get regulated down to -9V with a linear regulator.
The Power Trends integrated switching regulators are nice too. It's just too bad that both they and National Semiconductor have been acquired by TI.
Another module I was thinking of offering for sale for hobbyists is one that takes in 7.5-18V (so you could even run your project from automotive power) and put out +5 and ±9V. The trouble I run into is that without enough sales volume to justify the tool-up cost for automated assembly, the labor makes it economically prohibitive, and I can't very well offer it as a kit either since switching power supplies (which it would partly use) do not lend themselves to hand assembly without special tools. I might still find a way.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Trivial circuits for sbc
Thanks for the elaborate replies.
I bought the DAC0806LCN from Unicorn electronics because i had to fill the 25$ limit, when i was ordering the chroma modulator for the crtc.
This dac requires -13mA max for VEE, first i have to see if they sell the ic that you suggested in the local electronic stores at all, if not... ebay...
I bought the DAC0806LCN from Unicorn electronics because i had to fill the 25$ limit, when i was ordering the chroma modulator for the crtc.
This dac requires -13mA max for VEE, first i have to see if they sell the ic that you suggested in the local electronic stores at all, if not... ebay...
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Trivial circuits for sbc
I've used the DAC0808 a lot which is the same thing but more accurate, and I use typically -9V but it's not critical at all. I've used it as a multiplying DAC too, which means similar to a digital pot.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Trivial circuits for sbc
I was planning to build an audio module, with this dac, and with an adc. The module should have 512k of ram, acting like a buffer, and also a digital i/o (so it can also be used as a logical analyzer). Also there will be a address counter with a clock source (like a local dma), so that the cpu doesn't have to copy the bytes from the ram banks to the dac/adc. I was thinking about using one 9536 cpld, which should handle the data transfer and addressing....
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Trivial circuits for sbc
MichaelM wrote:
Since you've not specfied the current level required, regulation accuracy, and noise levels, I'll recommend to you the 7660 series of switched capacitor inverter circuits. They are not well regulated, and can generally provide only between 20 and 50 mA depending on the size and quality of the capacitors you use. The Microchip TC7660 is a candidate, but Analog Devices (ADM660), Maxim (MAX660), the TI LM2660 are also candidates.
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Trivial circuits for sbc
It's very easy to use. Just put the data on the 8 data pins; no clocking, no strobing. That does mean however that you'll need an output latch to hold the data lines' data as long as you want to output that value. I put mine on a VIA port. For the A/D, I started with the ADC0820 which is a half-flash converter, and it has a mode where you can just read it like a memory location. I later switched to the MAX153 which is nearly pin-compatible and nearly the same thing but about twice as fast. That's on another VIA port, with an extra VIA output bit serving as the RD\ line. You just lower the RD\ line, wait long enough for the conversion to finish, and read the value on the pins. Again, there's no clocking or strobing or anything else. It has other modes of operation but I have not used them. IIRC, it's good for something like 1.3MSPS. The D/A is probably good for a lot more than that.
BDD: And about the capacitors, look into OS-CONs. You'll be pleasantly surprised (like I was when you told us about 74ABT) that OS-CONs are even a lot better than tantalum. See http://www.edc.sanyo.com/pdf/e028.pdf
BDD: And about the capacitors, look into OS-CONs. You'll be pleasantly surprised (like I was when you told us about 74ABT) that OS-CONs are even a lot better than tantalum. See http://www.edc.sanyo.com/pdf/e028.pdf
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Trivial circuits for sbc
Today i tested the max232 circuit for the first time(I've been using the usb module until now), i connected my computer com port to it, and on the other end to the usb module. When i transmit from the com port to the module, it works fine, but the other way doesn't. When I took a look with the scope, i found out that the transmitting voltage is not +/- 12 volts, but 0 - +12V, and when i unplug the serial cable, i get +/-12 volts, like there is something wrong with the pc com port. What could be the cause?
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Trivial circuits for sbc
Make sure you don't have an output connected to an output (which is not hard to get with the DTE/DCE mess). If one is trying to pull up while the other is trying to pull down and they are of equal strength, you'll get approximately 0V.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?