i.MX28 HSADC

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

i.MX28 HSADC

1,982件の閲覧回数
jackyliu
NXP Employee
NXP Employee

i.mx28 HSADC driver can't work.

Original Attachment has been moved to: 421-dma_hsadc_driver.zip

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,610件の閲覧回数
9crkzhou
Contributor III

when I built it as a module, it does have the node,

but when I run the app,it not work, the buffer length is always 0.

0 件の賞賛
返信

1,610件の閲覧回数
9crkzhou
Contributor III

no /dev/***-hsadc node found.

it's not work.

0 件の賞賛
返信

1,610件の閲覧回数
jackyliu
NXP Employee
NXP Employee

Our IC designer suggestion:

1. Please make sure bit 0 of register HW_HSADC_CTRL0 be set to 1;
2. Bit 29:28 of register HW_HSADC_CTRL0 is used to set the trigger_source. When set to 2'b00,the ADC is triggered by the software, When set to 2'b01, the ADC is triggered by the PWM trigger signal, When set to 2'b10,the ADC is triggered by the input signal from outside the chip. Only when the corresponding source triggered, hsadc take a sample data from ADC. Please make sure you selected source is really work.
3. Check bit 5 of register HW_HSADC_CTRL1. If this bit is always 0, that means HSADC didn't get data from ADC.

0 件の賞賛
返信