foss-for-synopsys-dwc-arc-processors / embarc_osp

embARC Open Software Platform (OSP) - An embedded software distribution for IoT and other embedded applications for ARC
https://www.embarc.org/
BSD 3-Clause "New" or "Revised" License
70 stars 63 forks source link

ad7991 #161

Closed darko262 closed 3 years ago

darko262 commented 3 years ago

When I call the ad7991_adc_read function How often does the ad7991 A / D converter work?

YuguoWH commented 3 years ago

Hi @darko262 . The AD7991 normally remain in a shutdown state, powering up only for conversions. The conversion process is controlled by a command mode, during which each I2C read operation initiates a conversion and returns the result over the I2C bus. When ad7991_adc_read () is called, the driver initiates one read and reads data from previously selected channels. Therefore it only wake-up AD7991 once. If you are interested in the ADC power mode, please check AD7991 datasheet for detail power data.

darko262 commented 3 years ago

Thank you