Page 1 of 1

18F87J11&RXINT PROBLEM

Posted: Wed Jan 23, 2013 7:57 pm
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

Re: 18F87J11&RXINT PROBLEM

Posted: Wed Jan 23, 2013 8:29 pm
by medelec35
Hi Abel,
Since your using Flowcode V5 Professional,
I have moved this to the V5 section because it is more relevant there.

Re: 18F87J11&RXINT PROBLEM

Posted: Thu Jan 24, 2013 11:01 am
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);

Re: 18F87J11&RXINT PROBLEM

Posted: Thu Jan 24, 2013 11:36 am
by ProtonLaser
Hi Ben
Thanks for the quick response, ill give it a go and come back and post the result.

Thanks...
Abel Moreno

Re: 18F87J11&RXINT PROBLEM

Posted: Thu Feb 07, 2013 10:09 pm
by ProtonLaser
Hi Ben

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