18F87J11&RXINT PROBLEM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

18F87J11&RXINT PROBLEM

Post by ProtonLaser »

Hi guys,
I am new to FlowCode and the Forum...
PIC Processor: P18F87J11
FlowCode5 V5.4.0.0(03.08.2012)
We are trying to generate a RS485 protocol comm inside a proyect.With a half-duplex hardware and RS485 transceiver.
Using the available RS232 object inside flowcode, we noticed the following:
1) When using RS232 component macros, they work correctly, checked on Tx port with an oscilloscope.Signal Ok as desired.
2) When using RXINT, the problems start, it does not respond even with a ping-pong hardware config.("RX connected to TX on same micro...)
and double-checking with the oscilloscope that RX is actualy sending the value i request.

*** I seemed to work out a solution by making a custom interrupt, and setting manualy the interrupt registers.And Bingo it worked!!!
** I would like to know what im doing wrong cause i prefer to use the Flowcode components.
Thank you
Abel Moreno
Attachments
Prueba_rs232_87j11.fcf
Correct behaviour using customed Interrupt...
(11 KiB) Downloaded 229 times
RS232_RXINT.fcf
Problem using RXINT provided in Flowcode5
(10.5 KiB) Downloaded 234 times

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

Re: 18F87J11&RXINT PROBLEM

Post by medelec35 »

Hi Abel,
Since your using Flowcode V5 Professional,
I have moved this to the V5 section because it is more relevant there.
Martin

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: 18F87J11&RXINT PROBLEM

Post by Benj »

Hello Abel,

Try adding this line in a C icon at the start of your program. If the problem is what I think then this should be fixed in the upcoming v5.5 release.

Code: Select all

set_bit(intcon, PEIE);

ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

Re: 18F87J11&RXINT PROBLEM

Post by ProtonLaser »

Hi Ben
Thanks for the quick response, ill give it a go and come back and post the result.

Thanks...
Abel Moreno

ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

Re: 18F87J11&RXINT PROBLEM

Post by ProtonLaser »

Hi Ben

Great it worked!!!
Sorry for answering so late i have been busy at work....

Post Reply