USB stack sample project TWR-K20D50M modification

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB stack sample project TWR-K20D50M modification

ソリューションへジャンプ
1,248件の閲覧回数
gaminn
Contributor IV

Hello,

what changes should I make in a Freescale USB stack sample project for TWR-K20D50M to be able to use it on my own board with MK20DX256 MCU. My board has 8 MHz RC resonator, USB connector connected directly to MK20DX256 and some other stuff. At the moment any of the USB stack sample project doesn't work - PC doesn't recognize usb device.

ラベル(1)
  • USB

タグ(2)
0 件の賞賛
返信
1 解決策
876件の閲覧回数
gaminn
Contributor IV

Dear Mark,

thank you for your hint about RC resonator. I will replace it.

However, the USB stack sample projects work for me now even with the resonator - it was software problem, I didn't edit the source code of the sample project properly so USB interrupt was not enabled. Stupid mistake...

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
876件の閲覧回数
mjbcswitzerland
Specialist V

Hi

The USB operation requires a high resolution 48MHz clock (< 0.25% or 2'500ppm). Although it is possible to generate this from the 8MHz RC oscillator it will only be approximate and usually outside fo the USB tolerance specification, meaning that it either won't work or will work only unreliably.

Designs requiring USB therefore need an accurate clock source - usually a clock or a quarz (for the main oscillator or on the USB clock input - for chips with this option). The only exception is if the RC oscillator can be tuned to obtain an accurate enough clock but this will probably only be accurate at a stable temperature and so is only really an option for experimental work, such as a school project where only one device needs to work in a controlled environment. For anything that will go into production it would however be begging for big (technical and subsequnt financial) problems ;-)

Regards

Mark

0 件の賞賛
返信
877件の閲覧回数
gaminn
Contributor IV

Dear Mark,

thank you for your hint about RC resonator. I will replace it.

However, the USB stack sample projects work for me now even with the resonator - it was software problem, I didn't edit the source code of the sample project properly so USB interrupt was not enabled. Stupid mistake...

0 件の賞賛
返信