 |
 |
| View previous topic :: View next topic |
| Author |
Message |
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Wed Jan 28, 2009 6:40 pm |
|
|
| The USART interface has cost me a few days so far. Right now I'm going through and checking the signal on every single pin -- I see the clock running (xtal in/out signals), but absolutely nothing else. No serial data, no nothing. The V-EVAL kit worked as expected, but on my own board I must have something wrong. What did you need to do in order to get serial data from the chip? Does it care about CTS? The documentation is maddeningly vague about it. |
|
 |
magestik
Joined: 16 Oct 2008 Posts: 59
|
|
Posted: Thu Jan 29, 2009 2:39 am |
|
|
Actually, i used the VDIP1 module, which has the VNC1L chip. It is basically the VNC1L on a DIP socket). Like you, i didn't fully understood the documentation as it is very vague.
I pulled CTS low all the time.
I didn't wire the DATAACK# and DATAREQ#, which means "command mode" as they are high by default.
then on the main program, i did :
| Code: |
printf("FWV%c", 13); // %c + 13 is the "0D"
while(1)
{
getc();
}
|
You said you used the V-EVAL kit ? with the VNC1L chip ?
Did you try getting streams from a keyboard ? did it work ? |
|
 |
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Jan 29, 2009 8:08 am |
|
|
| Quote: | | Did you try getting streams from a keyboard ? did it work ? |
Well, kind of. Each keystroke generated a string of bytes, with the most recent keystroke somewhere in that group -- in an apparently random position. Multiple keypresses were sent all at once. I'm still trying to figure out how to sort it all out. Right now I'd settle for getting ANYTHING from the VNC-1L. I've tried CTS high, CTS low, DATAREQ high and low, nothing. I'm wondering if the chip just didn't survive soldering. |
|
 |
magestik
Joined: 16 Oct 2008 Posts: 59
|
|
Posted: Thu Jan 29, 2009 10:55 am |
|
|
If you really want this VNC1L, i suggest you buy the VDIP1 module, it's the VNC1L chip, with extra components, such as the USB port, the quartz, and some LEDs, which will tell you if the device works.
You could also have a look at the VDIP1 schematic on their website.
Another thing, i mailed their support a couple of times, and here is the interesting part :
To read from the keyboard, you need to be in "command mode", send the DRD command (Device Read Data) with a printf, then use the getc to retrieve the data, still in "command mode" (all of this USART mode).
Whether you are in "data mode" and can retrieve data (didn't work for me),
or be in "command mode", send DRD and get the data (worked for me).
Try :
CTS always low (no need for now).
DATAACK high
DATAREQ high (both = command mode)
Then
| Code: | printf("DRD%c",13);
+
getc();
|
+ an oscilloscope might help you to have a visual on TX and RX. |
|
 |
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Jan 29, 2009 3:30 pm |
|
|
Thanks for the advice, I'll try the DRD command, if I ever get the thing to respond at all.
The VDIP module won't work for me. They put two A connectors on it, I need one A and one mini-B. I'll be using one port to connect to a host (slave mode) -- the VDIP1 simply cannot do it; they didn't put the voltage divider on board that the VDPS firmware needs. Of course I found this out AFTER buying a VDIP1.
So, if you need another VDIP1 module, I have one for sale, still in the box and never been powered on. |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|