Menu

will the pic 18 print to the usb port com?

Help
2007-07-02
2013-05-30
  • Joshua Wojnas

    Joshua Wojnas - 2007-07-02

    will the pic 18 print to the usb port com? The UBW from sparkfun has a usb that acts like a com help?

     
    • kent_twt4

      kent_twt4 - 2007-07-02

      That's a neat board.

      If you are talking about serial communications to a usb com port on the pc, like to Hperterminal or??, then probably any pic will work.  Just  use either the GCBasic software or hardware Usart libraries, a Max232 type chip and db9, and then a usb to serial converter cable.  OK, maybe that's why the UBW looks good.  A Usart example was given in the contributor section.

      Kent

       
    • Nobody/Anonymous

      USB Com port I got the serial port printing stuff out of a pic 16 ... useing GCB I would rather print from the usb port on the pic 18 to the virtual com port that the UBW has.

       
    • kent_twt4

      kent_twt4 - 2007-07-02

      No Pic will act as a USB host, slave only, as far as I know.  I think something like a USBWiz (http://www.alfat.co.uk/) would work.  I imagine you are stuck with the Usart, I2C, or SPI, unless someone else has the answer.

      Kent

       
    • Hugh Considine

      Hugh Considine - 2007-07-03

      It would theoretically be possible to use the USB on an 18F in GCBASIC, but I wouldn't recommend it - lots of work, and the compiler really needs better interrupt handling first. One day GCBASIC will probably support USB, but not until after it has improved interrupts, non-byte arrays, AVR support, ...

      I'd recommend using an I2C or SPI connection to the UBW, it's probably the easiest way.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.