Its possible to conect 18f4550 to usb device?


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by mister_e View Post
    I could help, but it's not going to be free...
    Me too! Me too!

  2. #2

    Default

    Quote Originally Posted by skimask View Post
    Me too! Me too!
    Im not a rich men ok

  3. #3

    Default

    Im waiting for the ftdi part, later i will get in touch about that for now can i wired in apic to pic serial connection de Tx (from pic transmiter) to de Rx (from pic receiver) direct or ned to put some resistor?

    Thanks

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    No real need for resistor for a PIC to PIC connection.

    If you have any MAX232, MAX233, you could also try a PIC to PC connection. Not easier, but probably better for a first experimentation.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5

    Default

    Hi Mister,

    I have done the pic/pc conection alredy and works fine now im going to try pic/pic.

    Thanks for the help

    By by

  6. #6

    Default

    Hi,

    Today i get the VDIP2, im reading a lot about this part and how to use it with a pic http://www.picbasic.co.uk/forum/show...highlight=vdip like to thank especially to BrianT for is great job my code is based on is.
    Here is the data from VDIP2 http://www.vinculum.com/documents/da...s/DS_VDIP2.pdf
    Im very new at all this and i have a lot of concerns on doing this (the part is not very cheap 32€ im afraid to kill her) as i read from BrianT e have to reflash it and i do not now if i need to do the same a not clear how to and what firmware to put.
    Ftdi do not suport very well me...
    I to do not now if i need to put some resistors in the pic vdip2 connections?

    My 1st idea was and is to connect a pic to a nokia 6230 with is original usb data cable and sending sms and macking calls..
    Here my traing code



    Code:
    DEFINE LOADER_USED 1
    
    define OSC 20   
    
    Include "modedefs.bas" ' Include serial mode
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    
    
    'bits 2 & 3 temporarily inputs
    TrisC.2=0 'active LOW reset line to VDIP2
    TrisC.3=1 'Cts# Flow control to VDIP2
    TrisC.4=1 'Rts# Flow controlto from VDIP2
    TrisC.5=0 'Led to see if pic and code is ok blink 3 times
    TrisC.6=0 'Rx VDIP2
    TrisC.7=1 'Tx VDIP2
    
    B0 var byte
    
    High portb.5
    Pause 500
    Low portb.5
    Pause 500
    High portb.5
    Pause 500
    Low portb.5
    Pause 500
    
    Start:
    High PortC.2 'active LOW so not reset
    Low PortC.3 'pull VDIP2 pin CTS low 
    Input PortC.2 'from VDIP2 pin RTS
    High PortC.6 'condition serout pin to mark state
    Pause 5
    HSEROUT ["AT", 13]
    
    HSEROUT ["ATD=+351xxxxx000;", 13]
    
    STOP
    
    end

    Please comment anf if some one can hellp me...

    Thanks for all and sory for this long letters and less good work post.

    By by
    Last edited by camolas; - 30th May 2008 at 11:18. Reason: correcting code

  7. #7
    skimask's Avatar
    skimask Guest

    Default

    I've got a small question...
    What good is a 10us delay between 2 9600 baud HSEROUT statements, when, at 9600 baud, a bit takes 104.1us?

Similar Threads

  1. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 02:46
  2. USB Device Not Recognized ???
    By keymuu in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th October 2008, 00:53
  3. 18f4550 Device not recognized
    By garethconner in forum USB
    Replies: 3
    Last Post: - 22nd December 2007, 03:00
  4. How can I turn off USB support in 18F4550
    By BrianT in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th September 2007, 03:56
  5. usb - device not recognised
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th January 2007, 17:47

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts