USB to USB flash Drive File Copier


Closed Thread
Results 1 to 40 of 223

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    thanks! that gave me more options to address to that problem..

    What does this do?
    Code:

    SEROUT2 VinRXD,8588,["A:",13]
    what this does is select drive A: of the vdip2. i used this because the vdip2 swiches to the drive where a flash drive is last inserted so just to make sure in case a drive is last inserted to drive B:, the vdip2 would still go back to port A:. I'm doing this because i want to set drive A: as the source drive and B: as the target drive.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by newbie View Post
    what this does is select drive A: of the vdip2. i used this because the vdip2 swiches to the drive where a flash drive is last inserted so just to make sure in case a drive is last inserted to drive B:, the vdip2 would still go back to port A:. I'm doing this because i want to set drive A: as the source drive and B: as the target drive.
    OK, that is why I did not know, it is for the VDIP2.

    You code loops back to "StartDisk:". Does the firmware version show up all of the time of just on the first time trhough?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    the firmware only show up at the start of the program. and doesn't show up anymore unless you reset the vdip2. what do you think about this?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    what do you think about this?
    I think I am glad I gave up on the VDIP1!

    My only guess is the VDIP buffer is not clearing till a DIR is sent.
    Maybe at startup have a dummy routine that does everything but display to clear it up?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    I guess unchecking the show prompt and show version would do the trick
    thank you very much.
    Last edited by newbie; - 4th March 2010 at 18:38. Reason: spelling

  6. #6
    Join Date
    Mar 2010
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    HELO..

    i am using pic18f4550,VDIP2 and 2line LCD ,20MHz, 9600 BAUD RATE and connect hyperterminal to monitor the result of the VDIP

    but the hyperterminal only show Ver 03.66VDFC On-line...

    anyone can help? my code is almost same with newbie

    INCLUDE "modedefs.bas"

    DEFINE OSC 20
    DEFINE LCD_DREG PORTA
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTD
    DEFINE LCD_RSBIT 5
    DEFINE LCD_EREG PORTD
    DEFINE LCD_EBIT 4
    DEFINE LCD_RWREG PORTD
    DEFINE LCD_RWBIT 6
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 50

    TXD VAR PORTC.7 'AD0 TXD VDIP2 connect RX
    RXD VAR PORTC.6 'AD1 RXD VDIP2 connect TX
    Flow VAR PORTC.0 'AD2 RTS

    Start:
    HIGH RXD
    PAUSEUS 10
    SEROUT2 RXD,8276,["ECS",13]
    HIGH RXD
    PAUSEUS 10
    SEROUT2 RXD,8276,["IPA",13]
    HIGH RXD
    PAUSEUS 10
    SEROUT2 RXD,8276,["A:",13] 'choose source disk
    HIGH RXD
    PAUSEUS 100
    SEROUT2 RXD,8276,["DIR",13]
    GOTO Start
    Last edited by fokus_1116; - 8th March 2010 at 21:00.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Looks like you need to check your baud rates.
    Those are not 9600
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 14:43
  2. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 13:34
  3. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 21:17
  4. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 23:40
  5. PICs and USB Flash Drives
    By The Master in forum USB
    Replies: 2
    Last Post: - 23rd October 2007, 11:23

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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