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 件の賞賛
返信