I, my name is Roberto,
this is the first time I write in a forum, so sorry if this is the second time that someone ask help fot the same problem, but I looked in the Historical event list and Ididn't find the answare for my question...
I'm using Flowcode 4.2.3.58 and a pic18F6722.
I built all the code for my programand it working, but when I introduced the RS232 and started Hiper-Terminal on the PC, the comunication doesn't work well.
The Recived Characters are different from the otiginal.... why?
What have to change??
the bit Rate is 4800 for all but the recived caracters was different, I really don't know why...
Someone can help me??
RS232 doesn't work me well
Moderator: Benj
-
Roberto Serra
- Flowcode V4 User
- Posts: 7
- Joined: Thu Nov 19, 2009 2:48 pm
- Steve
- Matrix Staff
- Posts: 3434
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: RS232 doesn't work me well
This can happen when the baudrate of the RS232 on the chip is different to that set in Hyperterminal. You should check your settings. Also, make sure the chip is running at the frequency you think i is running at (the easiest way to do this is to write a simple LED flasher to confirm the rate of flashing).
-
Roberto Serra
- Flowcode V4 User
- Posts: 7
- Joined: Thu Nov 19, 2009 2:48 pm
Re: RS232 doesn't work me well
Hello, I follow your suggestion.
RS232 is set to 9600 and the HyperTerminal too.
The transmission was recived but not always was good.
I try to change the boud rate with a little difference (9595-9605) but the best results are with 9600.
For the clock I'm using a 10MHz quartz oscillator, without PLL Frequency Multiplier; I tried to use the 4x internal Frequency Multiplier but the results was the same... (the capacitor are 22pF like the datasheet indication)...
I don't know how to solve this problem....
RS232 is set to 9600 and the HyperTerminal too.
The transmission was recived but not always was good.
I try to change the boud rate with a little difference (9595-9605) but the best results are with 9600.
For the clock I'm using a 10MHz quartz oscillator, without PLL Frequency Multiplier; I tried to use the 4x internal Frequency Multiplier but the results was the same... (the capacitor are 22pF like the datasheet indication)...
I don't know how to solve this problem....
- 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: RS232 doesn't work me well
Hello
You could try enabling the Flow control to see if this helps. Otherwise please can you attach your program and the C code that is generated and I will take a look and see if I can spot whats gone wrong.
You could try enabling the Flow control to see if this helps. Otherwise please can you attach your program and the C code that is generated and I will take a look and see if I can spot whats gone wrong.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel