i.MX28 HSADC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX28 HSADC

824 Views
jackyliu
NXP Employee
NXP Employee

i.mx28 HSADC driver can't work.

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

Labels (1)
0 Kudos
3 Replies

452 Views
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 Kudos

452 Views
9crkzhou
Contributor III

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

it's not work.

0 Kudos

452 Views
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 Kudos