Problem with UART INT with Flowcode 4&5

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Problem with UART INT with Flowcode 4&5

Post by Mathy »

Hello,

I have a problem with Flowcode V4 and V5 for PIC. ( I don't know why but I can't post in the V5 forum ).

I made a little program to receive a string from my computer by INT.
But, when I want to send only one word in the string I recorded with the sendchar macro, the value is not good.
BUT ! If i send every word I receive, it works ! ( you will see what i mean in the attached program )

What im doing wrong ?
Attachments
test poto.fcf
(15 KiB) Downloaded 315 times

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Re: Problem with UART INT with Flowcode 4&5

Post by Mathy »

As you can see in the attached file, the word sent in UART_RX[0] should be 0x35, it's 0xFF
If I reset the board, it's 0xCB etc etc...

But, with the expression UART_RX[CURSEUR], all the sent word are good.
Attachments
FC5.jpg
FC5.jpg (117.77 KiB) Viewed 3305 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problem with UART INT with Flowcode 4&5

Post by Benj »


Post Reply