existing flowcode to produce RS232 output
-
- Posts: 3
- Joined: Sat Apr 08, 2006 8:20 pm
existing flowcode to produce RS232 output
Are there any flowcodes available to produce an RS232 output on a 16F874A without using an E blocks RS232 board.
frankdking
-
- Posts: 112
- Joined: Wed Oct 12, 2005 6:29 pm
- Location: USA
- Been thanked: 1 time
Problem of voltage levels using macros RS232
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
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
-
- Posts: 112
- Joined: Wed Oct 12, 2005 6:29 pm
- Location: USA
- Been thanked: 1 time
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
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