Search found 9 matches
- Wed Feb 03, 2010 11:41 am
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Thanks for that Ben, Last question - I know treating a string as a byte array for the purposes of calculation is ok. What about treating a byte array as a string within flowcode? My reason for asking is I wish to populate a byte array from a datastream - a byte at a time - eg ReceiveData[15] (as byt...
- Thu Jan 28, 2010 2:06 pm
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Hi Sean, Eventually - routine working! Thank you for all your help. Just a note - I had to capitalise the send variable in question to get it operating. Will post up final solution when done for others to check out. If there is a general posting or material on the transfer of variables between flowc...
- Thu Jan 21, 2010 11:48 am
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Thank you Sean, Will test now and revert!
Mick
Mick
- Wed Jan 20, 2010 3:38 am
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Thank you Sean- I am grateful for any help in this.
Regards
Mick
Regards
Mick
- Tue Jan 19, 2010 2:17 pm
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Hi Sean, Alas, I am still struggling with this. - The send routine works but the receive still des not; - The Rcv_RS232(Rcv_Byte); function seems to return a static value 0x32 :: the hardware usart does work and displays 0x55 characters - the routine reads in 15 bytes into a byte array and then desp...
- Mon Jan 18, 2010 1:29 pm
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Thanks again Sean, On the timing issues - the hardware usart produces a nice clean square wave on the scope. When I swap it in, the software XMIT_RS232 produces the artifact I described. For the consistency I removed the branches and just toggled -portc4 bcf - delay - bsf - delay - and get a lovely ...
- Mon Jan 18, 2010 10:36 am
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Sean, I have had some success with this by increasing clock reequency to 40MHz oscillator and using the scope. The %rvalue - 5 -was nearest to the 8.7e-6 (115200kbs) needed. Notwithstanding getting close to this figure - when transmitting 0x55 as suggested an artifact was present on the scope trace ...
- Mon Jan 11, 2010 4:42 pm
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Re: Comms Problems - RS232
Thank you for this avenue Sean, Will revert when I get it working (or not!)!
Mick
Mick
- Mon Jan 11, 2010 1:54 am
- Forum: General Programming
- Topic: Comms Problems - RS232
- Replies: 15
- Views: 9834
Comms Problems - RS232
Hi I am having difficulty getting good communications via rs232 components and 2 industrial RDID readers - Chip 18f2620 - 20MHz - Config File attached - problem - want to read two readers - so using hardware Rx/Tx on C7/C6 and software rs232 on C4/C5 - Hardware checked with oscilloscope - right sign...