Hi Matrix,
I have set a Baud rate in flowcode of 9600 (because the wireless system I am using transmits and receives UART at that rate) but my 'SCANALOGIC 2' logic analyser is telling me the Baud rate is actually 230400 which is 5 standard board rates out.
Sorry, but could I get an answer on this one pre-weekend - why the huge difference? Probably something I don't understand but your help would be gratefully received.
Regards,
Chris
P.S. The flowcharts are the ones posted on my 'failure code =1' posting
Baud Rate
Moderator: Benj
- 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: Baud Rate
Hi Chris,
I see you are using the internal oscillator set at 4MHz in your program and also that your clock speed is setup correctly in the project options.
Could you try performing a 1 second flasher test just as a sanity check to ensure that the hardware is running at 4MHz.
Maybe worth flicking the oscillator switch on the EB006 to RC if you are using this board to ensure that the crystal is not being used. If your using a v7 EB006 then you can move the oscillator jumper from the OSC to the I/O setting to disconnect the on-board crystal.
Also in your program you are receiving data. For the baud rate to be shown you need to be transmitting data. Is your program to do this setup any differently to the receiver program you posted?
I see you are using the internal oscillator set at 4MHz in your program and also that your clock speed is setup correctly in the project options.
Could you try performing a 1 second flasher test just as a sanity check to ensure that the hardware is running at 4MHz.
Maybe worth flicking the oscillator switch on the EB006 to RC if you are using this board to ensure that the crystal is not being used. If your using a v7 EB006 then you can move the oscillator jumper from the OSC to the I/O setting to disconnect the on-board crystal.
Also in your program you are receiving data. For the baud rate to be shown you need to be transmitting data. Is your program to do this setup any differently to the receiver program you posted?
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
-
christoph
- Flowcode V4 User
- Posts: 382
- Joined: Tue Nov 01, 2011 4:28 pm
- Has thanked: 196 times
- Been thanked: 26 times
Re: Baud Rate
Hi Ben,
Actually I'm not using any e-blocks. Also the whole set-up transmits and receives perfectly well (except I need 12 ways which I cannot for the life of me get to work). I just wanted to make sure with the logger that I WAS actually at approx. 9600 baud and was expecting a bit of leeway but this much is a bit puzzling. As someone who is new to all this I was wondering how much of a mismatch between the manufacturers wireless UART at 9600 baud and the chip selected UART speed can be tolerated. Same question with the e-blocks I guess?
Regards,
Chris
Actually I'm not using any e-blocks. Also the whole set-up transmits and receives perfectly well (except I need 12 ways which I cannot for the life of me get to work). I just wanted to make sure with the logger that I WAS actually at approx. 9600 baud and was expecting a bit of leeway but this much is a bit puzzling. As someone who is new to all this I was wondering how much of a mismatch between the manufacturers wireless UART at 9600 baud and the chip selected UART speed can be tolerated. Same question with the e-blocks I guess?
Regards,
Chris
-
medelec35
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Baud Rate
I can't guarantee I can do this, but I will give it a go and see if I can get it to work.christoph wrote:except I need 12 ways which I cannot for the life of me get to work
Martin
Martin
-
christoph
- Flowcode V4 User
- Posts: 382
- Joined: Tue Nov 01, 2011 4:28 pm
- Has thanked: 196 times
- Been thanked: 26 times
Re: Baud Rate
Hi Martin,
OK thanks - I really appreciate that - I thought it would be easy but have tried everything I can think of (in my rather inexperienced way).
Fingers crossed but I understand if it 'wont go'.
Chris
OK thanks - I really appreciate that - I thought it would be easy but have tried everything I can think of (in my rather inexperienced way).
Fingers crossed but I understand if it 'wont go'.
Chris
-
medelec35
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Baud Rate
I have posted a set of flowcharts here:
http://www.matrixmultimedia.com/mmforum ... 380#p33429
Can you let me know how you get on please.
Martin
http://www.matrixmultimedia.com/mmforum ... 380#p33429
Can you let me know how you get on please.
Martin
Martin