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

    thank you very much for that info...

    have you used the command DIR and then printed the list of files to the the LCD?

  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
    thank you very much for that info...

    have you used the command DIR and then printed the list of files to the the LCD?
    I was "printing" to a terminal window, but a LCD would work also.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    sir can you please tell me about the whole pin connections of the program back in post #8...

    i could not see in there that you used the tx and rx pins of the pic16f877a..

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


    Did you find this post helpful? Yes | No

    Default

    Well, I did not use the TX/RX pins. I did not use the hardware ports.

    VinRXD VAR PORTD.7 'DATA TO VDIP
    FLOWIN VAR PORTD.6 'FLOW CONTROL FROM VDIP
    and
    PORTB.4 is data from the VDIP.

    The other serial connections are to and from a PC. I was to lazy to rig a keypad so I was using a terminal to send data to the PIC to send commands to the VDIP.

    You do not need to use the hardware serial ports from the PIC for this. SERIN2/SEROUT2 are fine for reading and writing to the VDIP. Have one other pin from the VDIP for FLOW control, this lets the PIC know if the VDIP is ready for another command.

    I never did a schematic for this or I would post it.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    about the DIR command, how will i be able to display the data that the vdip will return? will i also use an array of bytes like in your program? or there will be a different approach?

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


    Did you find this post helpful? Yes | No

    Default

    Are you wanting to display the output on a LCD? If so then you will need to break the array up to fit on the screen and maybe do "line by line" refresh using the array parts that will fit...

    Below I was dumping the whole array to a PC terminal.
    Code:
    'Read from the VDIP
    SERIN2 PORTB.4,8588,[STR VDAT\96]
    'Send to PC terminal
    SEROUT2 PORTB.3, 24972,[STR VDAT,10,13]
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    you mean right after i send the command

    SEROUT2 VinRXD,8588,["DIR",13]

    the commands that you wrote above will follow?

  8. #8
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    Are you wanting to display the output on a LCD? If so then you will need to break the array up to fit on the screen and maybe do "line by line" refresh using the array parts that will fit...
    Any idea on how to do this? I was thinking to display arrays of 12 in every line so that it can support the 8.3 format set by the vinculum. the problem is, not all files follow the 8.3 format specially those with file names shorter than 8 characters. for example, i have a file named "pic.pdf" as you can see there will be 5 vacant array spaces for this line so the succeeding file's first 5 characters will occupy those vacant spaces then there will be a domino effect and the file names will be in a total disorder. do you have any idea on how i will know when it is the end of one file and the start of the next so that i can print it in a new line?

  9. #9
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by newbie View Post
    Any idea on how to do this? I was thinking to display arrays of 12 in every line so that it can support the 8.3 format set by the vinculum. the problem is, not all files follow the 8.3 format specially those with file names shorter than 8 characters. for example, i have a file named "pic.pdf" as you can see there will be 5 vacant array spaces for this line so the succeeding file's first 5 characters will occupy those vacant spaces then there will be a domino effect and the file names will be in a total disorder. do you have any idea on how i will know when it is the end of one file and the start of the next so that i can print it in a new line?
    If I follow you . . . 10 is line feed, 13 is carriage return, 32 is a space so . . . "pic.pdf",32,32,32 would display as pic.pdf and 3 spaces, which using serout you would just put 3 spaces after pic.pdf but within the "" marks, I have not used the 10,13 codes with an lcd so I do not know if they work, and my bench is upside down right now so anyway you could preload your array with all 32s and then write your file name into it . . . best way to me is to tell the lcd where to print it.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  10. #10
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    does the vdip issue a line feed and a carrage return in every end of a file?

    . . . best way to me is to tell the lcd where to print it.
    can i view it your way? how would you do it?

  11. #11
    Keanlee411's Avatar
    Keanlee411 Guest


    Did you find this post helpful? Yes | No

    Default

    soh it means only 1 firmware can be loaded for every VNCL IC
    for my project that IC to transfer a files and i will put an LCD how can i acmmunicate that it is not easy to put a program on PIC rigth? any way
    how can i use the PIC microcontroller and VNCL IC?
    how they can communicate?
    for VNCL firmware i know it has a free defined commands like in VDFC firmware
    how can i control that commands if I use PIC microcontroller?
    for example i use PIC18F458 how can i configure the output pins of the pic?
    since the VNCL can accept the FIFO, UART or SPI. what is the examples codes for the pic like if i use picbasic commands? can i write the codes to manipulate the commands of VNCL but how can i control it to the pins of PIC microcontoller?

  12. #12
    Join Date
    May 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Can Anyone verify when you spark up a vdip module with 5v in fifo mode, attach an flash the led 2 will go on after the alternating led 1 and 2.

    In my case this only happens for the uart mode which programming through hyper terminal/putty is fairy simple.

    I require it in fifo mode though...

    Thx

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


    Did you find this post helpful? Yes | No

    Default

    I have not tried FIFO and it looks like a waste of MCU pins to me.
    Can I ask why you need to use that mode?

    I also looked through the docs I have and did not see anything that would answer your question about the status LEDs.
    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