existing flowcode to produce RS232 output

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

Moderators: Benj, Mods

Post Reply
frankdking
Posts: 3
Joined: Sat Apr 08, 2006 8:20 pm

existing flowcode to produce RS232 output

Post by frankdking »

Are there any flowcodes available to produce an RS232 output on a 16F874A without using an E blocks RS232 board.
frankdking

jimhumphries
Posts: 112
Joined: Wed Oct 12, 2005 6:29 pm
Location: USA
Been thanked: 1 time

Post by jimhumphries »

Frank:

The RS232 object in v2 pro should work for the 16F874A without an Eblock. It works fine directly on my 16F876.

Jim

samdel
Posts: 7
Joined: Sun May 07, 2006 6:46 pm

Problem of voltage levels using macros RS232

Post by samdel »

hello ,
severals questions about macros RS232 in flowcode
1) I would like to know if there is some tutorials about RS232 ?
2) What is the good value of the timeout ?
3) I use ISIS (proteus) to simulate a schematic where I link 2 pic 16F877 (RC6 : TX of pic1 to RC7 : RX of pic2) , I write 2 programs fcf one to send a value all the time with a pause and the 2nd program in pic2 which receive the value(scanning infinetly) and send it to a LCD screen. I have 2 problems : the simulation watching the signal on the wire don't go to 5V during the first 550ms (but th 0V is reached) and after it's the contrary !? the value I read on th LCD is not the good one .
4) Is the macro receive waiting until there is a caracter on RX ?
5) What is the difference choosing to send a character or a byte with the macro ?

Thank you in advance , I hope I have being clear in english language.
Best regard.
Christian

jimhumphries
Posts: 112
Joined: Wed Oct 12, 2005 6:29 pm
Location: USA
Been thanked: 1 time

Post by jimhumphries »

Christian:

My timeout value is always 0 because I don't know what the setting does either (I posted a question many months ago about what the RS232 timeout function does but never got an answer) and I always send/receive characters. Sending is pretty straightforward, receiving is a little more complicated. I found that putting the receive macro into a loop that ends when the desired character is received works well. You just have to remember to use the ASCII value of the character for your test.

There is a help file for RS232. View attached components - RS232 - and click on properties. On the bottom right corner of the properties box is a HELP button. Press that and, if you're lucky, it will be there. If not you will (probably) be asked to browse for the help file - its burried in the matrixmultimedia folder. On my system it is located at C:\Program Files\Matrix Multimedia\Flowcode\RS232. Maybe the same on yours.

If you Email me at jimhumphries@sbcglobal.net I can reply with RS232 code examples that are working in my application. They should compile OK for your chip.

Regards,

Jim

Post Reply