Baud rate error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Baud rate error

1,448 次查看
dporada
Contributor III

I am using a MKE02Z32VLC4 in a project with modbus.  Communications are supposed to be 19.2k baud, but with processor expert set at 19.784k baud, I am only getting 18.87k baud.

It appears to me that the internal oscillator is not trimmed, but setting the P&E multilink to calibrate the trim does not seem to help.  I don't see any easy way to measure the internal clock.  Processor expert says the target does not contain the peripheral to output the bus clock.

Any ideas?

0 项奖励
回复
3 回复数

1,438 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi dporada,

The Internal reference clock is factory trimmed to 31.25 kHz. But it was incorrectly set to 32.768 kHz by Processor Expert. Please try to modify the correct frequency first, and then test whether the baud rate meets your needs.

Processor Expert SIRC.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

1,432 次查看
dporada
Contributor III

Robin,

This fixes the problem.  Since this is a known problem, why isn't it fixed in Processor Expert or documented in some app note?  This caused intermittent data problems on some of the units.

Fortunately, I found the problem before the units were epoxied.  After they are epoxied, they would be trash.

Don

0 项奖励
回复

1,420 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Don,

Sorry for the inconvenience we bring you!
CodeWarrior has not been update for several years. For Kinetis MCUs, MCUXpresso Software and Tools is now recommended.
Here you can see this issue is fixed in Clocks Tool of MCUXpresso.

fixed SIRC 31.25kHz.png

Best Regards,
Robin

0 项奖励
回复