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

    sir can you please explain me this part of your code:

    SEROUT2 PORTB.3, 24972,["MACKRACKIT",13,10]
    SEROUT2 VinRXD,8588,["ECS",13] '7,E = 8588 , TRUE

    what do you mean by the numbers such as 24972 and 8588 in this statement? also 13 and 10...

    Ive been reading the comments in the code but still im confused..

  2. #2
    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
    sir can you please explain me this part of your code:

    SEROUT2 PORTB.3, 24972,["MACKRACKIT",13,10]
    SEROUT2 VinRXD,8588,["ECS",13] '7,E = 8588 , TRUE

    what do you mean by the numbers such as 24972 and 8588 in this statement? also 13 and 10...

    Ive been reading the comments in the code but still im confused..
    13 , 10 are linefeed and return, look at an ascii table for which is which, good thing to study anyway. The number 24972 tells the compiler what baud rate to use, it's in the book, near the back under tables, very near the ascii table . . .hint, hint. . .
    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.

  3. #3
    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?

  4. #4
    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.

  5. #5
    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..

  6. #6
    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.

  7. #7
    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?

  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
    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?

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