Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() Does anyone have experience and/or recommendations for analogue and digital I/O interfaces based on the Universal Serial Bus (USB)? Just an idea for the genesis of a homebrew spectrum analyser. I can't give any specific advice about the USB interface, but I recall that there was a PC based spectrum analyser published in QEX within the last couple of years. If you don't already, I would recommend subscribing to QEX, it's published quarterly by the ARRL. It contains a lot of leading edge technology. A Google search will give you more details. |
#2
![]() |
|||
|
|||
![]()
"John" wrote in message ...
Does anyone have experience and/or recommendations for analogue and digital I/O interfaces based on the Universal Serial Bus (USB)? I can't give any specific advice about the USB interface, but I recall that there was a PC based spectrum analyser published in QEX within the last couple of years. The state of USB has improved pretty dramatically in the past couple of years. The QEX article was a groundbreaker at the time, but the technology has moved on. Presumably you are aware that a USB interface implies computation on both sides. The relatively recent USB PICs (18F2550, 4550, etc.) incorporate everything needed for the USB interface except the connector. Only a couple of years ago a USB controller chip was $26 and it needed a host of additional parts to actually implement the interface. A smaller USB PIC costs less than $5 and includes *everything*. Go to http://ww1.microchip.com/downloads/e...Doc/39632D.pdf and take a look at the capabilities. To see it in an actual circuit, try http://www.microchip.com/stellent/id...ame =en529760 and download the users guide. The 2550 is the little TQFP to the right of the board picture, although it is available in a variety of packages, some more hobbyist-friendly then the tiny one on the board. The only additional part is an inductor to filter the USB voltage when it is used to power the target circuit. This series of parts also includes A/D channels, tho they might not be the speed and resolution you want. The particular board is a nice one for experimenting because it includes one of the fast 16-bit parts that are easily programmable in a high level language, along with the USB interface. ... |
#3
![]() |
|||
|
|||
![]() "xpyttl" wrote Presumably you are aware that a USB interface implies computation on both sides. The relatively recent USB PICs (18F2550, 4550, etc.) incorporate everything needed for the USB interface except the connector. Only a couple of years ago a USB controller chip was $26 and it needed a host of additional parts to actually implement the interface. A smaller USB PIC costs less than $5 and includes *everything*. Go to http://ww1.microchip.com/downloads/e...Doc/39632D.pdf and take a look at the capabilities. To see it in an actual circuit, try http://www.microchip.com/stellent/id...ame =en529760 and download the users guide. The 2550 is the little TQFP to the right of the board picture, although it is available in a variety of packages, some more hobbyist-friendly then the tiny one on the board. The only additional part is an inductor to filter the USB voltage when it is used to power the target circuit. This series of parts also includes A/D channels, tho they might not be the speed and resolution you want. The particular board is a nice one for experimenting because it includes one of the fast 16-bit parts that are easily programmable in a high level language, along with the USB interface. Many thnaks for the heads-up on the PICs. I've always tried to avoid USB interfaces for control applications, but I have a project on the horizon where I will almost certainly go down that route - simply because laptops no longer have RS-232 ports.. |
#4
![]() |
|||
|
|||
![]()
"John" wrote in message ...
Many thnaks for the heads-up on the PICs. I've always tried to avoid USB interfaces for control applications, but I have a project on the horizon where I will almost certainly go down that route - simply because laptops no longer have RS-232 ports.. If this is a one-off project, you might even consider that particular board, depending on your requirements. The USB is used as a peripheral to the 28 pin part, so that from the bigger part you can simply do a printf() to communicate to your PC over serial. It relies on a Microcoft provided serial emulation driver. If your requirements are more demaiding, then you will need to really hit the books. Doing the USB software interface isn't real trivial. ... |
#5
![]() |
|||
|
|||
![]()
"xpyttl" wrote in message
news ![]() pin part, so that from the bigger part you can simply do a printf() to communicate to your PC over serial. It relies on a Microcoft provided serial emulation driver. If your requirements are more demaiding, then you will need to really hit the books. Doing the USB software interface isn't real trivial. mmmm ... I can see I should have been more explicit there, and maybe caught a couple of typos. There are a number of USB classes with different capabilities. There is a serial emulation class, which Microsoft provides a driver for. It appears on Windows as a new serial port, and applications access it as if it were a serial port. All USB devices must offer up a manufacturer code and a device code whenever they are first connected. The OS reads a .inf file to connect the particular codes to a driver. MicroCHIP provides an .inf file with the board that points to a MicroSOFT driver which does serial emulation. When the 16-bit part wiggles it's USART, the PIC18F2550 catches that and sends it out over USB to the PC in serial emulation mode. The application on the 16 bit part must set up the baud rate for the USART, but beyond that, normal C I/O can be used, although it is pretty fat for many applications. The documentation for the board says in comes with a dsPIC33FJ12GP202 but mine came with a PIC24FJ64GA002 -- more memory but no DSP engine. The board has jumpers to accept any 28 pin, 16 bit part. I've been doing most of my experimentation with a dsPIC30F012. The 30F parts are 5 volts, the others 3.3, and the 30Fs have a slightly different pinout. Jumpers deal with both, as well as deciding whether the board wants to be powered from the USB or a separate supply. For a lower cost implementation, the 18F2550 and its cousins have plenty of gas to do more work, and Microchip does provide sample code for the USB serial interface, but I've always been a bit suspicious of Microchip sample code ... often it isn't quite as solid as one would hope. ... |
#6
![]() |
|||
|
|||
![]()
"John" wrote in message ...
Many thnaks for the heads-up on the PICs. I've always tried to avoid USB interfaces for control applications, but I have a project on the horizon where I will almost certainly go down that route - simply because laptops no longer have RS-232 ports.. Many products still use RS-232 (albeit at TTL voltage levels) internally and just use, e.g., an FTDI USB--RS-232 converter chip (such as the FT2232R). This is actually easier than using a USB microcontroller, although it does tend to end up being a little more expensive as well (i.e., $5 for the FTDI IC, $5 for a microcontroller vs. $5 for a USB controller). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AMECO Converters with PS | Swap | |||
FS: Vintage GONSET Converters | Swap | |||
WTB: Kenwood R-599 with 6&2 rcv converters | Swap | |||
Gon-Set old/new FM converters | Boatanchors | |||
FA: Kenwood 6 and 2 meter converters | Swap |