Baud rate error with Processor Expert

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Baud rate error with Processor Expert

Jump to solution
2,723 Views
ecotecsa
Contributor II

Hi, setting up baud rate with (Processor expert )  Asynchroserial  bean , when test  with oscilloscope, baud rate is -20% as expected .

Obviously , don´t communicate . Any ideas?.... Thank you.

JM60 , 12Mhz crystal.

Labels (1)
0 Kudos
1 Solution
979 Views
ecotecsa
Contributor II

Problem solved  with this PE setup , see attach.

Best regars.

Eduardo.

View solution in original post

0 Kudos
8 Replies
979 Views
ProcessorExpert
Senior Contributor III

Hello,

 

this kind of issues is in most cases caused by inccorect value of crystal/oscillator in CPU bean. Hence could you please check that value of crystal on your PCB (12 MHz) is properly set in CPU bean in your project?

 

Otherwise in case that your problem will persist could you please post here a simple project to reproduced it?

 

best regards
Vojtech Filip
Processor Expert Support Team

0 Kudos
979 Views
ecotecsa
Contributor II

Dear Vojtech

Problem persist. I have attached litle proyect and 2 jpg.

Thank you , Eduardo.

0 Kudos
979 Views
ecotecsa
Contributor II

Sorry, 2 more attach.

0 Kudos
979 Views
ProcessorExpert
Senior Contributor III

Hello,

I have checked your screenshots and I think that the problem is in "High speed clock" property in CPU bean where is still selected "Internal Clock", hence Asynchroserial beans runs from this clock source even you have enabled external crystal. To avoid the problem should help switch this property to "External Clock".

 

However, frequency set within Asynchroserial bean should match to freqency measured on HW even you are running from internal clock. The problem in this case could be caused by incorrect trimming of internal crystal to 31.25 kHz.

 

best regards
Vojtech Filip
Processor Expert Support Team

0 Kudos
979 Views
ecotecsa
Contributor II

Hello Vojtech

After hours of work on my custom development board , seting up Processor Expert CPU bean with external cristal 12 Mhz, and external reference (PE say 8Mhz )  ,SCI bean at 9600 bds. I have found (with oscilloscope) that BusClock is 6Mhz  and Baud Rate 7200 bds . Communication is perfect but  at 7200 bds.(Dockligth).

Other Baud Rates was posible with SCIxBD =(BusClk/(16*BR)).

Thank you very much.

Eduardo.

 

0 Kudos
980 Views
ecotecsa
Contributor II

Problem solved  with this PE setup , see attach.

Best regars.

Eduardo.

0 Kudos
979 Views
Geoff_L
Contributor I

I'm having a similar problem, but in my case, the baud rate is only wrong if I flash program the board, and reset power.  Using the debugger, and reseting power I have no baud rate issues.   I'm using MC9S08AC48CPU, processor expert, and th eclipse version of the codewarrrior development studio (1.0.0)   Any ideas what could be causing this behavior?  I have set the PE parameter indicating that the trim value should programmed - but I can't see it actually doing while programming, like I can see with the debugger.

0 Kudos
979 Views
Geoff_L
Contributor I

fl::target -lc "ShoulderFirmware_MC9S08AC48_PnE USB BDM"

fl::target -b 0x80 0x7f0

fl::target -v off -l off -ie on -i "" -p MC9S08AC48

cmdwin::fl::device -d "MC9S08AC48_FLASH" -o "FLASH" -a 0x4000 0xffff

cmdwin::fl::image -f "C:\\Documents and Settings\\glansberry\\My Documents\\SVN_EE\\Advanced_Development\\HIR\\P1\\ShoulderFirmware\\MC9S08AC48\\ShoulderFirmware.abs" -t "Auto Detect" -re off -oe off

cmdwin::fl::erase image

 Beginning Operation ...   

-------------------------

Initializing remote connection ...   

Performing target initialization ...   

Flash operation  ...

Detect Speed ...  

Detect Speed Succeeded. 4.313  

 Status Checking ....

Status Checking Succeeded. MC9S08AC48_FLASH  Programmed  

 Erasing ....

Status Checking Succeeded. MC9S08AC48_FLASH  Blank  

Erase Command Succeeded.  

Flash operation done

  

cmdwin::fl::write

 Beginning Operation ...   

-------------------------

Flash operation  ...

 Status Checking ....

Status Checking Succeeded. MC9S08AC48_FLASH  Blank  

 Programming ...................................................................................................................................

 

 Programming ......................................................................................................................

  

 Programming ......................................................................................................................

.  

 Programming ......................................................................................................................

..  

 Programming ......................................................................................................................

...  

 Programming ...............................................................................................................................................................................................................

Program Command Succeeded   

 Status Checking ....

Status Checking Succeeded. MC9S08AC48_FLASH  Programmed  

Flash operation done  

0 Kudos