MCF52259 ADC under MQX, but with no driver

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

MCF52259 ADC under MQX, but with no driver

979件の閲覧回数
LordMarkFRT
Contributor II

Hi, I'm working on a board based upon M52259demokit design, MQX 3.8.1. I need ADC conversions at the fastest speed (5Mhz clock). I tried compiling my project rebuilding the bsp and psp libraries with BSPCFG_ENABLE_ADC set to 1 and the ADC works fine. But I think I can achieve better performance by disabling MQX ADC driver and writing/reading ADC registers directly, isnt't it? So, I rebuilt bsp and psp without ADC support and wrote a simple code to initialize and start the ADC and read result registers, but the result is always wrong. I tried every mode and every ADC clock (even the lowest).

 

I attach the project so that you can try it, if possible.

 

PC operating system: Windows 8.

 

Best regards,

Marco

Original Attachment has been moved to: ADC_prova.rar

タグ(3)
0 件の賞賛
返信
0 返答(返信)