ts-7000
[Top] [All Lists]

[ts-7000] Re: Connecting to a PIC24?

To:
Subject: [ts-7000] Re: Connecting to a PIC24?
From: "charliem_1216" <>
Date: Fri, 05 Jun 2009 17:57:26 -0000
--- In  "bburtan65" <> wrote:
>
> I'm planning on a PIC-based high-speed ADC application with the goal of 
> having numerous ADC dongles if you will.  Plus with the max sample rate of 
> 500ksps on a PIC24, that's more bandwidth than a regular serial port can 
> handle.
> 
> Eventually I'll write native USB drivers but I wanted to bootstrap my way 
> into this.  Microchip has a firmware module you can use as an intermediate 
> step in moving from RS-232 to USB.

How does Microchip suggest you communicate with the unit when the firmware is 
loaded?

> 
> Never having done USB development, it's tricky if you have to figure it out 
> on the SBC and figure it out on the PIC (development board).  My approach is 
> to start off with the USB serial emulator on the PIC doing something simple 
> like echoing characters to the LCD or back to the SBC.  Teaching yourself how 
> to work an RS-232 port is easy because one end of it is connected to a dumb 
> terminal and you can see characters coming across.  I'm trying to tackle it 
> the same way.
> 
> Which leads me back to the original question of how to make use of the 
> usbserial.o generic driver.  This page:
> 
> http://www.linux-usb.org/USB-guide/x356.html

No, these are *adapters*: USB on one side and real RS-232 on the other, going 
to some device with RS-232 ports.  Chipsets like pl2303, ftdi, keyspan, etc. 
are pretty common.  

Sounds like the PIC firmware is emulating the functions of one of those, so it 
may be possible to use the generic serial driver.  From the 
Documentation/usb/usb-serial.txt file (recent kernel):

To enable the generic driver to recognize your device, build the driver as a 
module and load it by the following invocation:
        insmod usbserial vendor=0x#### product=0x####
  where the #### is replaced with the hex representation of your device's 
vendor id and product id.

I guess you can get the vendor and product ids from the firmware.

regards, ..... Charlie

> 
> suggests it's fairly straightforward but I'd like to know if anyone has 
> attempted this before.
> 
> 
> > .. why?
> > Have you used all three of the serial lines you're given on the board?
> > if not use one of the unused serial lines you're *given* (ttyAM(0,1,2)
> > come to mind)
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU