help with uart communication and component vnc1l

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

help with uart communication and component vnc1l

Post by RLOPES780 »

I am trying to see how it works the vnc1l component of ftdi.
I already managed to send data through the uart pic and that's fine.
Now I'm trying to receive data and I can not.
I made a simple echo circuit as the manual where I send an E (0X45) and a carriage return. It should have 69 decimal = E ascii and 13 decimal = CR ascii.Porem I always have on the display 2 values first 21 in decimal and after 43 in decimal.
Can anybody help me?
Thankful;
Ricardo.

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: help with uart communication and component vnc1l

Post by RLOPES780 »

file anex
Attachments
PEN2.fcfx
(13.06 KiB) Downloaded 203 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: help with uart communication and component vnc1l

Post by QMESAR »

Hi
I already managed to send data through the uart pic and that's fine.
Now I'm trying to receive data and I can not.


Looking at your Flowchart briefly ,It seams your Receive pin is not connected -The UART Component need to have its RX pin connected as in the case of the TX pin
1.jpg
1.jpg (83.94 KiB) Viewed 4717 times

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: help with uart communication and component vnc1l

Post by RLOPES780 »

Hi Qmesar;

Grateful for the attention.
I am sending the file again.
When I open my Flowcode v7 the connections are normal.
TX connected to pin. 2 and RX connected to the pin.
"Errors" happen in the same way as I have described above.
I think rx had not called him, he would not get a reply.I'm attaching the file again for you to see.

Thankful;

Ricardo
Attachments
PEN2.fcfx
(13.07 KiB) Downloaded 194 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: help with uart communication and component vnc1l

Post by QMESAR »

Hi.
I never worked with the VNC1 ,so more help I am not able to offer ,However I would have thought that you need to connect the HW UART
to pins on the VNC1 chip, I only now saw you use Software UART ,
I hope some of the guys here who worked with VNC1 can help you
:D
Good luck

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: help with uart communication and component vnc1l

Post by medelec35 »

Peter is correct with what he is saying on all counts.
You have got RX connection on your flowchart unconnected!
Also, for you to reliably received from vnc1l, you should used RS232 hardware not software.
Also use RS232 interrupt (UART RXINT x) otherwise you will miss the data being received.


Martin
Martin

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: help with uart communication and component vnc1l

Post by RLOPES780 »

Hi Martin,QMESAR;

All right?

I changed the MCU by one by one 33fj256gp710 that when I open the properties panel there are 2 channels uart hardware, and I used one of the channels.
It worked. I showed in the display 62 decimal> ascii and 13 decimal CR ascii.
But I have to use the MCU 33ep512mu810. When I open the properties panel of this MCU does not appear any hardware uart channel only the software option. What are the pins of this MCU that are hardware uart channels since it does not appear in the properties panel.
Would you help me?

Thankful;

Ricardo.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: help with uart communication and component vnc1l

Post by QMESAR »

Hi Ricardo,
there must be something wrong with your FlowCode installation or something as when I select the MU810 I have Software and 4 UART Channels plus remap able see attched
19-01-2018 19-38-19.jpg
19-01-2018 19-38-19.jpg (86.25 KiB) Viewed 4658 times

Post Reply