AN2295 Serial Bootloader "SlaveFrequencyCalibration()"

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

AN2295 Serial Bootloader "SlaveFrequencyCalibration()"

565 次查看
rabbit
Contributor III

In AN2295_Kinetis.eww, does anyone know how this function "SlaveFrequencyCalibration()" works? It doesn't work reliable.

标签 (1)
0 项奖励
回复
1 回复

421 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Rabbit,

SlaveFrequencyCalibration() is used to measures break impulse from PC and sets correct trim value, it firstly set UART RX pin as GPIO function and wait for the falling edge on it and then start to count the systick with the help of systick timer till it observes a rising edge on that pin, then it uses the result to calculate the trim value, but as the device doesn't support float point, so the final value might have some offset in some cases.

Please kindly let me know if you have any further question.

Have a nice day!!

B.R

Kan

0 项奖励
回复