i.MX28 HSADC

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

i.MX28 HSADC

1,986 次查看
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,614 次查看
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,614 次查看
9crkzhou
Contributor III

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

it's not work.

0 项奖励
回复

1,614 次查看
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 项奖励
回复