USB to USB flash Drive File Copier


Closed Thread
Results 1 to 40 of 223

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    philippines
    Posts
    5


    Did you find this post helpful? Yes | No

    Default thanks

    thank you mackrackit
    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?
    thanks, , ,

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


    Did you find this post helpful? Yes | No

    Default

    Up in post #4 I gave you a link showing how to WRITE to the VDIP1.

    Here is the code from a project where I am READING from the VDIP1.
    The VDIP1 part looks a lot like the writing example from BrianT. I used his same methods.

    You should be able to connect two VDIP1s to the same PIC and with a little imagination do the copy.

    Have you progrmed a PIC to do anything yet???

    Code:
    '#####################
    '16F877A
    DEFINE OSC 20
    '####################
    @ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF &_BODEN_OFF
    INCLUDE "modedefs.bas"
    
    'LCD SET UP
    DEFINE LCD_DREG     PORTC
    DEFINE LCD_DBIT     0
    DEFINE LCD_RSREG    PORTD
    DEFINE LCD_RSBIT    1
    DEFINE LCD_EREG     PORTD
    DEFINE LCD_EBIT     0
    DEFINE LCD_BITS     4
    DEFINE LCD_LINES    2
    DEFINE LCD_COMMANDUS    2000
    DEFINE LCD_DATAUS   50
    '#####################
    NUMS	VAR	BYTE[16]
    VDAT    VAR BYTE[96]
    X1	VAR	BYTE
    X2	VAR	BYTE
    X3	VAR	BYTE
    X4	VAR	BYTE
    X5	VAR	BYTE
    X6	VAR	BYTE
    X7	VAR	BYTE
    X8	VAR	BYTE
    V1	VAR	BYTE
    V2	VAR	BYTE
    V3	VAR	BYTE
    V4	VAR	BYTE
    V5	VAR	BYTE
    V6	VAR	BYTE
    V7	VAR	BYTE
    V8	VAR	BYTE
    VinRXD  VAR PORTD.7 'DATA TO VDIP
    FLOWIN  VAR PORTD.6 'FLOW CONTROL FROM VDIP
    
    '#####################
    PAUSE 1000
    LCDOUT $FE,1,"MACKRACK"
    LCDOUT $FE,$C0,"IT BV2"
    PAUSE 1000
    
    
    RUN:
    'LCDOUT $FE,1,X1,X2,X3,X4,X5,X6,X7,X8
    SERIN2 PORTB.5,24972,[WAIT("GRAM:"),STR NUMS\8]	'7, Even, INVERTED
    X1 = NUMS[0]
    X2 = NUMS[1]
    X3 = NUMS[2]
    X4 = NUMS[3]
    X5 = NUMS[4]
    X6 = NUMS[5]
    X7 = NUMS[6]
    X8 = NUMS[7]
    HIGH PORTD.2
    PAUSE 100
    LOW PORTD.2
    PAUSE 100
    LCDOUT $FE,1,X1,X2,X3,X4,X5,X6,X7,X8
    PAUSE 100
    
    '#########################
    'START STICK
    HIGH VinRXD
    PAUSE 5
    SEROUT2 PORTB.3, 24972,["MACKRACKIT",13,10]
    SEROUT2 VinRXD,8588,["ECS",13] '7,E = 8588 , TRUE
    HIGH VinRXD
    PAUSEUS 10
    SEROUT2 VinRXD,8588,["IPA",13]
    HIGH VinRXD
    PAUSEUS 10
    WAIT11:
    IF FLOWIN = 1 THEN WAIT11
    SEROUT2 VinRXD,8588,["OPR ",X1,X2,X3,X4,X5,X6,X7,X8,".DAT",13]
    
    WAIT12:
    IF FLOWIN = 1 THEN WAIT12
    SEROUT2 VinRXD,8588,["RDF 1000",13]
    SERIN2 PORTB.4,8588,[STR VDAT\96]
    V1 = VDAT[0]
    V2 = VDAT[1]
    V3 = VDAT[2]
    V4 = VDAT[3]
    V5 = VDAT[4]
    V6 = VDAT[5]
    V7 = VDAT[6]
    V8 = VDAT[7]
    PAUSEUS 10
    
    WAIT13:
    IF FLOWIN = 1 THEN WAIT13
    SEROUT2 VinRXD,8588,["CLF ",X1,X2,X3,X4,X5,X6,X7,X8,".DAT",13]
    WAIT14:
    LCDOUT $FE,1,"FINISH"
    IF FLOWIN = 1 THEN WAIT14
    LCDOUT $FE,1,X1,X2,X3,X4,X5,X6,X7,X8
    LCDOUT $FE,$C0," SENT"
    'SEROUT2 PORTB.3, 24972,[V1,V1,V2,V3,V4,V5,V6,V7,V8,10,13]
    SEROUT2 PORTB.3, 24972,[STR VDAT,10,13]
    SEROUT2 PORTB.3, 24972,["DONE",10,13]
    PAUSE 2000
    GOTO RUN
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    guys...what compiler do you use for this code posted above by mackrackit?

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


    Did you find this post helpful? Yes | No

    Default

    I use Pic Basic Pro for the compiler and MPASM for the assembler.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    thanks for the quick reply...

    are these compilers and assemblers downloadable for free? i can only find a demo version and it is just capable of compiling 30 lines.

    could you please give me the procedure on how to program the vinculum(vdip2) using pic microcontroller? i'm kind of confused. will the command set of the vinculum be included in the program that will be burned to the pic just like in the code above? i'm new at this so please help me...thank you very much.

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


    Did you find this post helpful? Yes | No

    Default

    Everything is free except PicBasicPro.

    This sounds like a first project for you. Start with someting like blinking a LED at the push of a switch... Then come back to this, but up in post #4 there is a link showing how to write to the module.
    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 are right, this is the first project for me, so i'm really starting from scratch. ive seen post #4 but i have one question, what will i do with that code after compiling it, whats next? will i burn it to the pic? i really need your answer on this to start. thank you.

  8. #8
    arunkumar's Avatar
    arunkumar Guest


    Did you find this post helpful? Yes | No

    Default idea

    i am doing in vinculum ic project..i want to copy the files as well as view the pen drive content on LCD display.. i bought VDIP2 modules.. we inserted rom files 3.66...if it possible reply sir....we are using pic to interface with VDIP2....

    reply as soon as possible.....

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