| Electronics Forum |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| niculaegeorge |
|
|
Newbie ![]() Group: Members+ Posts: 1 Member No.: 36,341 Joined: January 08, 2012 |
I am trying for some time to control/drive a simple N-channel MOSFET gate with a computer. Therefore I need a TTL 5 to 12 V output signal from my computer. From what I know, the only output capable of such thing is Parallel Port/Centronics. However I'm not satisfied with that, because I can't get it to switch faster than 1ms.
Another way through which I'm thinking of controlling the gate switching a MOSFET is through the use of a Soundcard that has a digital output. What can I do about that? |
| Sch3mat1c |
Posted: January 08, 2012 09:26 pm
|
![]() Forum Addict ++ Group: Moderators Posts: 18,193 Member No.: 73 Joined: July 24, 2002 |
Computers are great signal generating machines. You're looking at a ridiculously high bandwidth signal right now.
Unfortunately, most sources aren't very general: the video output specifically produces signals intended to drive a raster scanned display, so although you can control the signal levels during a scan line (simply by drawing graphics on the screen), you can't stop it from taking over at the edges. You can control when the screen edges occur (if you have access to the hardware), but you can't eliminate them. Serial output has a fair bit of control, but it's limited in timing and bit patterns, and is usually fairly slow (although >100kbaud isn't too bad for switching purposes). Its control signals are asynchronous, and could be used in much the same way as the parallel port. The parallel port is the only truely general digital output available (if you have one equipped). Since it was introduced, it's been little more than a couple gates driven off the data bus. Back in the day, timing was guaranteed -- with nothing to interrupt operation, the processor has direct control over everything. However, even back in the day, interruptions were common -- system timer, keyboard, hard drive access, system function calls, etc. If you need a perfectly coherent signal source, a computer will NEVER give you what you want. These days, things are even worse. Not only does the user have only minimal control over the processor, but the processor doesn't even have direct control over I/O operations -- these are carried out by the system chips on the motherboard. It's also more difficult to even use the parallel port -- this requires operating system control, which means installing a driver for Windows users, or sudo for Linux users. And the whole situation is even worse if your computer doesn't even have a parallel port. USB dongles are available, but it's my understanding that these are only good for communication with legacy devices. If nothing else, latency is controlled by, not only operating system and computer resources, but the USB controller as well, which does not guarantee timing constraints. More and more, achieving reliable timing is less and less likely to succeed. The best solution today is to use an embedded system (microcontroller, CPLD or FPGA) with USB interface to deliver commands to the signal generator, while the generator performs its task independently, guaranteeing internal timing. One could also purchase an existing signal generator (with far more options than a simple digital system would have) and a USB to GPIB (IEEE-488) interface to do the same thing. Most digital function generators have this type of interface, which allows remote control and networking of test equipment for just this purpose. HP/Agilent signal generators are very good. Tim -------------------- Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
|
| kellys_eye |
Posted: January 08, 2012 09:41 pm
|
![]() Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Spamminator Taskforce Posts: 10,012 Member No.: 2,735 Joined: June 21, 2005 |
There are plenty of soundcard signal generator software programs out in the interweb (such as http://www.techmind.org/audio/#siggen ).
Taking the audio output throuogh and external buffer/driver should be simple enough. There will be programs out there that allow settings for m/s ratio as well as frequency. -------------------- May contain nuts
|
| draget |
Posted: January 09, 2012 12:33 pm
|
|
Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Cleanup Taskforce Posts: 5,508 Member No.: 1,770 Joined: December 31, 2004 |
Hi There,
Welcome to the forums, I'd recommend that with the font/colours we use here your messages will be a lot more readable if broken up using line breaks and paragraphs liberally. Thanks and have fun! |
![]() |
![]() ![]() ![]() |
:: support us ::