Page 1 of 1

strange symbols from rs 323

Posted: Wed Jun 09, 2010 12:36 pm
by fsbanaan
Hello there,

I have a problem sending symbols over rs 232 i receive only strange signs on my Hyper termal

I'm using the code provided with Bert van dam's book micro controller systems engineering on a Pic 16F887a at 4 mhz

I think i have all the setings right.
the config word is 0X3F39

please help.

Re: strange symbols from rs 323

Posted: Thu Jun 10, 2010 9:00 am
by Benj
Hello,

I would check your baud rate both in the Flowcode RS232 component properties and in the Hyperterminal connection settings and ensure they match. I would also check that you have the clock speed setup correctly in the Project options window of Flowcode eg 4000000.

Re: strange symbols from rs 323

Posted: Thu Jun 10, 2010 11:56 am
by fsbanaan
I checked both but no change.

I also tried to extract the data before the maxim 232 with a pickit 2 but it don't change a thing.

Witch kind of code i use doesn't matter I only get rubbish.

Willem.

Re: strange symbols from rs 323

Posted: Thu Jun 10, 2010 3:51 pm
by Benj
Hello Willem,

Do you want to post your Flowcode program onto the forums as well as your hyperterminal settings and I will take a look at them for you.

Re: strange symbols from rs 323

Posted: Fri Jun 11, 2010 12:02 pm
by fsbanaan
Hello again,

my setting for hypertermal are:

2400 baud
8,1,n
no error handling

The code has just some lcd breaks to see where the program is.

thanks in advance Willem

Re: strange symbols from rs 323

Posted: Fri Jun 11, 2010 2:52 pm
by Benj
Hello,

If you look in the chip -> configure menu then you see that the target device is set up for the RC oscillator but your Clock speed in your roject options is set to 4MHz. Try changing the configuration to XTAL and also move the oscillator switch to the XTAL position if you are using our hardware. The program should then work correctly.

Re: strange symbols from rs 323

Posted: Fri Jun 11, 2010 5:21 pm
by fsbanaan
This is strange.
when i look in the config screen it tells me that i use a rc but when i go into the expert screen it say im using a XT????
whits one do i need to use?

greetings from Curacao

Re: strange symbols from rs 323

Posted: Wed Jun 16, 2010 6:59 am
by Steve
If you go to "chip->configure" and press the "options" button, you can have it permanently working with the "expert" screen (untick the "use simple config screen" option).

The "simple" config screen was used at a time when our dev boards were used mainly with our courses (which use a small selection of chips) to make the configuration settings easier to use. Flowcode and our dev boards are used in many more ways now, so it's probably best for most users to always use the "expert" screen and make this setting permanent in the options screen.