thank you very much for that info...
have you used the command DIR and then printed the list of files to the the LCD?
thank you very much for that info...
have you used the command DIR and then printed the list of files to the the LCD?
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..
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.
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?
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.
you mean right after i send the command
SEROUT2 VinRXD,8588,["DIR",13]
the commands that you wrote above will follow?
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?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...
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 nowso 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.
does the vdip issue a line feed and a carrage return in every end of a file?
can i view it your way? how would you do it?. . . best way to me is to tell the lcd where to print it.
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?
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
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.
Bookmarks