Hi newbie,
Looks like a good solution.
Hi newbie,
Looks like a good solution.
Dave
Always wear safety glasses while programming.
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
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.
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.
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.
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.
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....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.
steve
Byte_Butcher, Where do you find rechargable ALKALINE AA's ? I have never heard of such a thing.... I'm curious...
Dave Purola,
N8NTA
/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
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.
OPPSS!
That should be 2500 mAh
Dave
Always wear safety glasses while programming.
Duracell, 2650mAh.
They're rated at 1.2V, but terminal voltage on a freshly charged one exceeds 1.4V
steve
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.
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
hi
can any one post circuit diagram to connect VDIP to PIC ??
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 14:47.
sorry about that., this is a better picture
Last edited by newbie; - 3rd July 2011 at 15:12.
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???
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.
Bookmarks