USB to USB flash Drive File Copier - Page 6


Closed Thread
Page 6 of 6 FirstFirst ... 23456
Results 201 to 223 of 223
  1. #201
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Hi newbie,
    Looks like a good solution.
    Dave
    Always wear safety glasses while programming.

  2. #202
    Join Date
    Mar 2010
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    the SERIN2 can put like this?

    WAIT1
    IF FLOWIN = 1 THEN WAIT1
    @ Clear2D ; clear the array
    FOR Y = 0 TO Length-1
    SERIN2 VinTXD,84,[WAIT(CRET),STR FILE1\12 \CRET]
    FOR X = 0 TO Width-1
    ArrayData =FILE1[X]
    @ Put2D(X,Y)
    NEXT X
    NEXT Y

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


    Did you find this post helpful? Yes | No

    Default

    That should work for the SERIN2.
    But you will probably want to get rid of the 2D stuff.
    Dave
    Always wear safety glasses while programming.

  4. #204
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    hi mackrackit, it been a while..

    about the 2D arrays, i agree. you should get rid of those..its just making things complicated..all you need to do is simply save the file names in arrays of 12 characters like this:
    SERIN2 VinTXD,84,[SKIP 20, WAIT(CRET),STR FILE1\12 \CRET,WAIT(CRET), STR FILE2\12 \CRET,WAIT(CRET),STR FILE3\12 \CRET,WAIT(CRET),STR FILE4\12 \CRET]

    skip 20 is to avoid saving unnecessary prompts such as "device detected" or something like that.

    cret is where i saved $0D (carriage return). files are separated by carriage returns in between them so what i did was wait for its occurrence for me to be able to know when it is the end of a file and the start of another so that i can save it to another array.

    if you want to view a new batch of files, do something like this:
    SERIN2 VinTXD,84,[WAITSTR FILE4\12, WAIT(CRET), STR FILE1\12 \CRET,WAIT(CRET), STR FILE2\12 \CRET,WAIT(CRET),STR FILE3\12 \CRET,WAIT(CRET),STR FILE4\12 \CRET,WAIT(CRET)]

    you will then receive a new set of file names saved in FILE1 to FILE4.

  5. #205
    Join Date
    Mar 2010
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    hi,
    may i ask..if i wan to use battery to replace the power supply, what battery to recommend?

  6. #206
    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 fokus_1116 View Post
    hi,
    may i ask..if i wan to use battery to replace the power supply, what battery to recommend?
    That is a difficult one to answer.
    The VDIP requires 5 volts. Four re-chargeable "AA" batteries will give ~4.8 volts, close enough but for how long. Then if someone were to use regular batteries now there is ~6 volts present, not good, the MCU will "smoke".

    Could use a 7805 regulator with a ~9 volt or higher battery pack but then you need to carry around a "brick" of batteries. And the 7805 requires a heat sink and is not the most efficient thing out there, reliable yes... LM317 could also be used but has some of the same problems.

    You may want to use a switching regulator. Could have one that works with a battery input from 3 to 6 volts, then four "AA" batteries of any type will work. Depending on the circuit the efficiency can be very good.

    Not knowing the load of the finished project, you may not know yet either, the best I caqn do is point you here
    http://www.national.com/analog
    Look at the "WEBENCH DESIGNER". Input your parameters and see what come up.

    I have also hear some talk about off the shelf DC to DC converters.
    Dave
    Always wear safety glasses while programming.

  7. #207
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    That is a difficult one to answer.
    The VDIP requires 5 volts. Four re-chargeable "AA" batteries will give ~4.8 volts, close enough but for how long.
    Be cautious with your battery types here... 4 NiCad AA's will give about 4.8v, but 4 rechargeable ALKALINE AA's can give over 5.6V +

    For linear regulators, these aren't too bad...
    http://ww1.microchip.com/downloads/e...Doc/21991c.pdf
    Only a couple hundred mV dropout voltage, so they work OK on 5 v circuits from a 6v battery.

    You may want to use a switching regulator. Could have one that works with a battery input from 3 to 6 volts, then four "AA" batteries of any type will work. Depending on the circuit the efficiency can be very good.
    If you need to run off a wide supply range, including sucking batteries down "to the last drop" then a good switching supply is THE way to go....


    steve

  8. #208
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Byte_Butcher, Where do you find rechargable ALKALINE AA's ? I have never heard of such a thing.... I'm curious...

    Dave Purola,
    N8NTA

  9. #209
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dave View Post
    Byte_Butcher, Where do you find rechargable ALKALINE AA's ? I have never heard of such a thing.... I'm curious...
    /Cough/ err... well, they do exist, and a quick google search should find you some. But I was MISTAKEN about the ones that I have. I was sure it said Alkaline on the package when I got them, but on closer inspection, these say NiMH on the side of the battery.

    So I guess I meant to say that" 4 rechargeable NiMH AA's can give over 5.6V +" Sorry...

    steve

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


    Did you find this post helpful? Yes | No

    Default

    What is the brand of the NiMH and AH of the batteries you use?
    The NiMH I use are 1.2 volts at 2500 AH.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    OPPSS!
    That should be 2500 mAh
    Dave
    Always wear safety glasses while programming.

  12. #212
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Duracell, 2650mAh.

    They're rated at 1.2V, but terminal voltage on a freshly charged one exceeds 1.4V


    steve

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

  14. #214
    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

  15. #215
    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.

  16. #216
    Join Date
    May 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    I am actually using it with an fpga, but after a chat with the support guys in the US they said don't even bother with fifo on this chip its to flaky, rather stick to uart. FIFO will be upgraded in the 2nd gen ic VN2. So in the mean time i wrote a uart for the fpga and it seems to work.

    Well I could not have done it witout the help of this forum.

    Kind Regards

  17. #217
    Join Date
    Jun 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    hi
    can any one post circuit diagram to connect VDIP to PIC ??

  18. #218
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    Name:  asset.php.gif
Views: 2116
Size:  3.6 KB
    read the comments in this thread. and download pdf files from http://www.ftdichip.com/index.html to gain more knowledge about the vdip...goodluck.
    Last edited by newbie; - 3rd July 2011 at 13:47.

  19. #219
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    sorry about that., this is a better picture
    Last edited by newbie; - 3rd July 2011 at 14:12.

  20. #220
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    Name:  Diagrama2Circuito.gif
Views: 4065
Size:  55.9 KB
    ..........

  21. #221
    Join Date
    Jun 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    thank you very much newbie

  22. #222
    Join Date
    Sep 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    Newbie, what is the easiest mode in interfacing the VDIP1 Module and PIC microcontroller,,, UART or SPI?

    I have seen in this site(http://www.pic_examples.byethost3.com/VDIP.html) that he used SPI mode in interfacing the PIC and VDIP2 module...
    But, I'm planning to buy VDIP1 because it is more cheaper than VDIP2 module.
    Do you have any circuit diagram just like in that site using UART mode in interfacing the PIC and the VDIP1 module not the PIC and VDIP2 module???

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


    Did you find this post helpful? Yes | No

    Default Re: USB to USB flash Drive File Copier

    I think the easiest way to get started with this device is to follow this
    http://www.picbasic.co.uk/forum/showthread.php?t=7700

    Dave
    Always wear safety glasses while programming.

Closed Thread
Page 6 of 6 FirstFirst ... 23456

Similar Threads

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