对冲是什么意思| 促甲状腺素低是什么原因| 腿毛有什么用| 急性肠胃炎是什么原因引起的| 平滑肌是什么| 不能生育的女人有什么特征| 1221是什么星座| 周瑜和诸葛亮是什么关系| 柔和是什么意思| 痔疮属于什么科室| 痔疮有什么特征| 牛肉饺子馅配什么蔬菜好吃| 砖红色是什么颜色| 下午右眼跳是什么预兆| 男怕初一女怕十五是什么意思| 配偶什么意思| 酵素什么牌子好| 出水痘吃什么药| 什么是保守治疗| 人怕冷是什么原因| 腰椎间盘突出挂什么科室| 皮脂腺囊肿是什么原因引起的| 手指甲有月牙代表什么| 鹅蛋孕妇吃有什么好处| 金不换是什么| 莆田荔枝什么时候成熟| 天荒地老是什么生肖| 似曾相识是什么意思| 惊恐发作是什么病| 芋圆是什么做的| 孕吐是什么时候开始| 血压高有什么表现| 怀孕胸部会有什么反应| 属马的贵人属相是什么| 皮肤软组织感染是什么意思| 大义是什么意思| 什么样的女人性欲强| 男性尿很黄是什么原因| 洗衣机不排水是什么原因| 胸部彩超能检查出什么| 晚上减肥吃什么| 什么是乙肝| 冬眠灵是什么药| 血沉50说明什么原因| 咽炎吃什么药最管用| 1.4什么星座| 满载而归的载是什么意思| 前列腺增生吃什么药最好| 局座是什么梗| 月经期间洗澡会有什么影响吗| 可否是什么意思| futa是什么意思| 天干是什么| 丙火代表什么| 瓞是什么意思| 疝气是什么病怎样治疗| 什么水果含钾高| 什么的舞蹈| 夏至为什么吃馄饨| 失眠睡不着吃什么药好| 辩证思维是什么意思| 眼睛白色部分叫什么| 围产期是什么意思| 菜花是什么| 外公的妹妹叫什么| 钻石王老五是什么意思| 咽炎有什么症状| 夏天煲什么汤最好| 爆竹声中一岁除下一句是什么| 红楼梦大结局是什么| 金棕色是什么颜色| pa是什么| pku什么意思| 痛心疾首的疾是什么意思| 打豆豆是什么意思| 乙肝45阳性什么意思| 武警支队长是什么级别| 7月14日是什么日子| 坐围和臀围有什么区别| 八字指的是什么| 什么炖排骨好吃| 抓龙筋什么意思| 葛根粉有什么作用| 哪吒是一个什么样的人| 什么情况需要割包皮| 颅脑平扫是检查什么| 区委书记属于什么级别| 黄瓜不能和什么食物一起吃| 三点水加亘念什么| w3是什么意思| 和女生聊什么话题| 吃火龙果对身体有什么好处| 做梦数钱是什么意思啊| 淋巴结肿大是什么原因| 大林木是什么数字| 飞蚊症用什么药| 不什么不| 正常的尿液是什么颜色| 痰多咳嗽是什么原因| 总蛋白偏高有什么危害| er是什么意思| 五分类血常规检查什么| 第二视角是什么意思| 小便短赤什么意思| 盐酸利多卡因注射作用是什么| 闭锁是什么意思| 日是什么意思| 蛋白粉什么时候喝最好| 黄棕色是什么颜色| 什么是体液| 儿童心肌酶高有什么症状| 保险费率是什么| 肚子大腿细是什么原因| 尿痛什么原因引起的| 女性阴毛变白是什么原因| cln是什么意思| 草木灰是什么| 怀孕会有什么症状| 毛很长的狗是什么品种| 什么是扦插| 榴莲补什么| 减少什么| 红薯什么时候掐尖| 手肘关节疼痛什么原因| 小孩晚上睡觉磨牙是什么原因| boy是什么品牌| 滑膜炎什么症状| 翳什么意思| 股票五行属什么| 猪肝炒什么| 表面活性剂是什么| 李逵代表什么生肖| 铁树开花什么样| 寻常疣是什么原因造成的| 月经提前十几天是什么原因| 梦见以前的朋友是什么意思| 下海是什么意思| 吃什么助勃药能硬| 茶叶含有什么成分| 来姨妈为什么是黑色的血| aki医学上是什么意思| 吃什么最补肾壮阳| 痣是什么| 李健是清华什么专业| 血钙是什么意思| 做飞机需要注意什么| 卢靖姗是什么混血| nerdy是什么牌子| 光什么夺目| 日本艺伎是干什么的| 颈椎病有什么症状| 为什么有钱人不去植发| 肚子两侧疼是什么原因| 红花配绿叶是什么意思| 拆线挂什么科| 肝内结节是什么意思啊| 牙龈流血是什么原因| 修女是什么意思| 检查抑郁症挂什么科| 瑾字是什么意思| id是什么意思的缩写| 拔罐拔出水泡是什么原因| 多梦吃什么药效果最好| 嘴唇是紫色的是什么原因| av是什么意思| 消停是什么意思| 胸疼挂什么科| 肿瘤cr是什么意思| 2009年是什么生肖年| 腮腺炎看什么科室| 奥司他韦是什么药| 一个口一个塞念什么| 石头记为什么叫红楼梦| 狻猊是什么| 上火喝什么比较好| 繁花似锦是什么意思| 虱子用什么药可以根除| 甲状腺结节有什么感觉| 月经总推迟是什么原因| 盘尼西林是什么药| 上焦不通吃什么中成药| 臀纹不对称有什么影响| offer是什么意思| 刮宫是什么意思| inr是什么意思医学| 什么是性侵| 种草莓是什么意思| 牙痛安又叫什么| 环形红斑是什么病| bishop是什么意思| 出虚汗是什么原因引起的怎么调理| 后背发凉是什么原因| 月经不调去医院要做什么检查| 糖类抗原125偏高是什么意思| 什么是脚气| 阳起石是什么东西| 鱼生是什么鱼| 饱不洗头饿不洗澡是为什么| 秋千为什么叫秋千| 螃蟹一般吃什么| 弱视是什么意思| 山人是什么意思| 孕妇抽筋是什么原因引起的| 雪茄为什么不过肺| 妇科炎症用什么药| 普洱茶是什么茶类| 女人吃什么能活血化瘀| 幻觉妄想状态是什么病| 现在最好的避孕方法是什么| 维生素c偏高是什么原因| 五百年前是什么朝代| 静心什么意思| 想飞上天和太阳肩并肩是什么歌| 什么是反流性咽喉炎| 病魔是什么意思| 迪桑特属于什么档次| 婴儿肥是什么意思| 弱阳性是什么原因| 五行属金什么字最好| 中老年人喝什么奶粉好| 什么负什么名| 脂肪肝适合吃什么食物| 妹妹你坐船头是什么歌| 12月9号是什么星座| 憩息是什么意思| 什么鱼吃玉米| 属羊人佩戴什么旺自己| 尿素是什么肥料| 丈二和尚摸不着头脑是什么意思| 梦见大胖小子是什么意思| dht是什么| 洋葱不能和什么食物一起吃| 不小心怀孕了吃什么药可以流掉| 胎儿偏小是什么原因| 得意忘形是什么意思| 阑尾炎疼吃什么药| 什么蘑菇| 妃嫔是什么意思| 子宫肌瘤不能吃什么| 多米诺骨牌是什么意思| 怀孕子宫前位和后位有什么区别| 知了猴有什么营养| 甘草有什么作用| 手发抖是什么病的先兆| 古着店是什么意思| 上天眷顾是什么意思| 布洛芬吃多了有什么副作用| 胃镜取活检意味着什么| 90年属于什么生肖| 咖啡soe是什么意思| 体脂率是什么意思| 百香果有什么功效| flair是什么意思| hvp阳性是什么病| 纷至沓来是什么意思| 甲状腺结节是什么意思| lot是什么| 三合生肖是什么意思| 卫衣是什么| 登基是什么意思| 送礼送什么烟比较好| 什么是水痘| 什么是叶黄素| 懈怠是什么意思| 百度

金融--湖北频道--人民网

This version (20 Nov 2020 09:33) was approved by Alexandru Ardelean.The Previously approved version (20 Nov 2020 09:30) is available.Diff

nanoDAC+ IIO DAC Linux Driver

Supported Devices

百度 周光荣、淦登武和入党积极分子廖正宁在纪念馆前接受支队党委火线仪式庆典激励,全市消防部队一线官兵接受战时洗礼。

This driver supports the

Reference Circuits

Evaluation Boards

Description

This is a Linux industrial I/O (IIO) subsystem driver, targeting multi-channel serial interface DACs. The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). See IIO for more information.

Source Code

Status

Source Mainlined?
git Yes

Files

Devicetree

Required devicetree properties for spi devices:

  • compatible: Needs to be the name of the device. E.g. “ad5676”
  • reg: The chipselect number used for the device
  • spi-max-frequency: Maximum SPI clock frequency.
  • spi-cpol: Needs to be set for the correct SPI mode
  • vcc-supply: Phandle to the fixed regulator
  • interrupts: the interrupt used for buffer sampling
  • pwms: pwm pin used as the interrupt source
        adc_vref: fixedregulator@0 {
	        compatible = "regulator-fixed";
		regulator-name = "fixed-supply";
		regulator-min-microvolt = <2500000>;
		regulator-max-microvolt = <2500000>;
		regulator-boot-on;
	};

	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	ad5676@0 {
		compatible = "ad5676";
		reg = <0>;
		spi-max-frequency = <1000000>;
		spi-cpha;
		vcc-supply = <&adc_vref>;

             interrupts = <25 IRQ_TYPE_EDGE_RISING>;          
             interrupt-parent = <&gpio>;                      
                                                                                   
             pwms = <&pwm 0 100>;                             
             pwm-names = "pwm-trigger";
	};

Required devicetree properties for i2c devices:

  • compatible: Needs to be the name of the device. E.g. “AD5696”
  • reg: The chipselect number used for the device
  • vcc-supply: Phandle to the fixed regulator
  • interrupts: the interrupt used for buffer sampling
  • pwms: pwm pin used as the interrupt source
        adc_vref: fixedregulator@0 {
	        compatible = "regulator-fixed";
		regulator-name = "fixed-supply";
		regulator-min-microvolt = <2500000>;
		regulator-max-microvolt = <2500000>;
		regulator-boot-on;
	};

	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	ad5696@e {
		    compatible = "ad5696";
		    reg = <0xe>;
		    vcc-supply = <&adc_vref>;

                 interrupts = <25 IRQ_TYPE_EDGE_RISING>;          
                 interrupt-parent = <&gpio>;                      
                                                                                   
                 pwms = <&pwm 0 100>;                             
                 pwm-names = "pwm-trigger";
	};

Driver testing

This specifies any shell prompt running on the target

root:/> cd /sys/bus/iio/devices/
root:/sys/bus/iio/devices> ls
iio:device0

root:/sys/bus/iio/devices> cd iio\:device0

root:/sys/bus/iio/devices/iio:device0> ls -l
drwxr-xr-x 2 root root    0 Jul 31 15:17 buffer
-r--r--r-- 1 root root 4096 Jul 31 15:17 dev
-r--r--r-- 1 root root 4096 Jul 31 15:17 name
lrwxrwxrwx 1 root root    0 Jul 31 15:17 of_node -> ../../../../../../../../firmware/devicetree/base/soc/spi@7e204000/ad5679r@0
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage0_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage0_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage0_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage10_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage10_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage10_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage11_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage11_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage11_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage12_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage12_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage12_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage13_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage13_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage13_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage14_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage14_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage14_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage15_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage15_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage15_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage1_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage1_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage1_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage2_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage2_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage2_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage3_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage3_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage3_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage4_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage4_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage4_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage5_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage5_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage5_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage6_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage6_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage6_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage7_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage7_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage7_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage8_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage8_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage8_raw
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage9_powerdown
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage9_powerdown_mode
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage9_raw
-r--r--r-- 1 root root 4096 Jul 31 15:17 out_voltage_powerdown_mode_available
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage_sampling_frequency
-rw-r--r-- 1 root root 4096 Jul 31 15:17 out_voltage_scale
drwxr-xr-x 2 root root    0 Jul 31 15:17 power
drwxr-xr-x 2 root root    0 Jul 31 15:17 scan_elements
lrwxrwxrwx 1 root root    0 Jul 31 15:17 subsystem -> ../../../../../../../../bus/iio
drwxr-xr-x 2 root root    0 Jul 31 15:17 trigger
-rw-r--r-- 1 root root 4096 Jul 31 15:17 uevent

Show device name

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> cat name
ad5696

Show scale

Description:
scale to be applied to in_voltage0_raw in order to obtain the measured voltage in millivolts.

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> cat out_voltage_scale 
0.038146972

Set channel Y output voltage

Description:
/sys/bus/iio/devices/deviceX/out_voltageY_raw

Raw (unscaled, no bias etc.) output voltage for channel Y.

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> echo 10000 > out_voltage0_raw

U = out_voltage0_raw * out_voltage_scale = 10000 * 0.038140 = 381.40 mV

List available power down modes

/sys/bus/iio/devices/deviceX/out_powerdown_mode_available

Description:
Lists all available output power down modes.

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> cat out_voltage_powerdown_mode_available
1kohm_to_gnd 100kohm_to_gnd three_state

Set channel Y power down mode

/sys/bus/iio/devices/deviceX/out_voltageY_powerdown_mode

Description:
Specifies the output power down mode. DAC output stage is disconnected from the amplifier and

1kohm_to_gnd connected to ground via an 1kOhm resistor
100kohm_to_gnd connected to ground via an 100kOhm resistor
three_state left floating

For a list of available output power down options read out_voltageX_powerdown_mode_available.

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> echo three_state > out_voltage0_powerdown_mode
root:/sys/bus/iio/devices/iio:device0> cat out_voltage0_powerdown_mode
three_state

Enable power down mode on output Y

/sys/bus/iio/devices/deviceX/out_voltageY_powerdown

Description:
Writing 1 causes output Y to enter the power down mode specified by the corresponding out_voltageY_powerdown_mode. Clearing returns to normal operation. Y may be suppressed if all outputs are controlled together.

This specifies any shell prompt running on the target

root:/sys/bus/iio/devices/iio:device0> echo 1 > out_voltage0_powerdown
root:/sys/bus/iio/devices/iio:device0>  cat out_voltage0_powerdown
1
root:/sys/bus/iio/devices/iio:device0> echo 0 > out_voltage0_powerdown
root:/sys/bus/iio/devices/iio:device0>  cat out_voltage0_powerdown
0

Buffer Support

Description:
The nanoDAC family of devices has buffer support for changing the output of the DAC channels. To achieve this a PWM signal is used as the device trigger to output data. Using a sampling frequency attribute the period of the PWM signal can be changed. The sampling frequency is in Hz.

In order to use this functionality the interrupt pin must be tied to the PWM generation pin

This specifies any shell prompt running on the target

root@analog:/sys/bus/iio/devices/iio:device0 $ cat out_voltage_sampling_frequency 
1000
root@analog:/sys/bus/iio/devices/iio:device0# echo 2000 > out_voltage_sampling_frequency
root@analog:/sys/bus/iio/devices/iio:device0# cat out_voltage_sampling_frequency
2000

Enable buffered channels

Description:
The user has to enable on what channels to output the buffer samples. The samples are interleaved in the following in the order of the enabled channels.

Example:

sample_ch0|sample_ch1|sample_ch2

If only channel 1 is enabled the buffer samples will have the following configuration:

sample_ch1|sample_ch1|sample_ch1

This specifies any shell prompt running on the target

root@analog:/sys/bus/iio/devices/iio:device0# cd scan_elements/
root@analog:/sys/bus/iio/devices/iio:device0/scan_elements# ls
out_voltage0_en      out_voltage10_type   out_voltage12_index  out_voltage14_en     out_voltage15_type	out_voltage2_index  out_voltage4_en	out_voltage5_type   out_voltage7_index	out_voltage9_en
out_voltage0_index   out_voltage11_en	  out_voltage12_type   out_voltage14_index  out_voltage1_en	out_voltage2_type   out_voltage4_index	out_voltage6_en     out_voltage7_type	out_voltage9_index
out_voltage0_type    out_voltage11_index  out_voltage13_en     out_voltage14_type   out_voltage1_index	out_voltage3_en     out_voltage4_type	out_voltage6_index  out_voltage8_en	out_voltage9_type
out_voltage10_en     out_voltage11_type   out_voltage13_index  out_voltage15_en     out_voltage1_type	out_voltage3_index  out_voltage5_en	out_voltage6_type   out_voltage8_index
out_voltage10_index  out_voltage12_en	  out_voltage13_type   out_voltage15_index  out_voltage2_en	out_voltage3_type   out_voltage5_index	out_voltage7_en     out_voltage8_type
root@analog:/sys/bus/iio/devices/iio:device0/scan_elements# echo 1 > out_voltage0_en

root@analog:/sys/bus/iio/devices/iio:device0/scan_elements# cd ../buffer/
root@analog:/sys/bus/iio/devices/iio:device0/buffer# ls
data_available	enable	length	watermark
root@analog:/sys/bus/iio/devices/iio:device0/buffer# echo 1 > enable

Sending a buffer sample example:

This specifies any shell prompt running on the target

root@analog:/sys/bus/iio/devices/iio:device0/buffer# echo -n -e '\x22\x33' > /dev/iio\:device0

More Information

resources/tools-software/linux-drivers/iio-dac/ad5676.txt · Last modified: 20 Nov 2020 09:32 by Alexandru Ardelean

? 
疏导是什么意思 山羊吃什么 小米是什么 黄皮什么时候成熟 摆架子是什么意思
马赛克什么意思 茜字五行属什么 频繁感冒是什么原因 什么叫义齿 落子无悔是什么意思
脑浆是什么颜色 低压低有什么危害 hpv18阳性是什么意思 鸡皮肤是什么原因引起的 油碟是什么
发财树用什么肥料最好 ppd试验是什么意思 容颜是什么意思 什么是活检 晚上六点半是什么时辰
柿子叶有什么功效hcv7jop9ns4r.cn fog是什么牌子weuuu.com 什么赴什么继hcv9jop0ns4r.cn 男才女貌是什么意思hcv8jop0ns9r.cn 竹心泡水喝有什么功效hcv7jop4ns5r.cn
静脉曲张不治疗会有什么后果hcv9jop6ns1r.cn 胎儿左侧侧脑室增宽的原因是什么wuhaiwuya.com 站着说话不腰疼是什么意思hcv9jop4ns6r.cn 葡萄什么时候成熟hcv9jop6ns5r.cn 中老年人补钙吃什么牌子的钙片好hcv9jop4ns8r.cn
人乳头瘤病毒56型阳性是什么意思hebeidezhi.com 流鼻血是什么原因引起的hcv8jop8ns8r.cn 落差感是什么意思520myf.com 九七年属什么生肖hcv7jop9ns0r.cn 吃什么调理卵巢早衰hcv8jop6ns8r.cn
11月17日是什么星座hcv8jop9ns9r.cn 股票融是什么意思luyiluode.com 心阳虚吃什么药hcv9jop4ns1r.cn 1991年属羊的是什么命hcv9jop1ns6r.cn 勇敢地什么jiuxinfghf.com
百度