我们项目使用ADS7142IRUGR这颗料,麻烦提供下高通平台的驱动代码,谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
非常抱歉,没有高通平台的驱动代码提供给您,在 ADS7142 产品首页 --- 设计和开发---软件开发 处提供了 ADS7142 Device Functional Modes Firmware (Rev. A),希望对您有帮助:https://www.ti.com.cn/cn/lit/zip/sbac201
另外,我在E2E 英文论坛看到类似的问题,您可以等待并查看 E2E论坛工程师的回复,看那边是否可以提供更好的建议:
Hi Amy,
我使用Autonomous stopburst模式,采集ch0电压, 读32个Data Buffer数据,数据0(0x8b)是MSB? 数据1(d1)是LSB?,完整数据是0x8bd1(35793)?
0x8bd1是采集到的ch0的电压值?这个数据应该还要转化吧,该怎么转化呢?(实际我使用万用表量出来是0.932V)
下面是我的寄存器设置,请帮忙check下
[ 57.762777] ads7142: get_adc_data: ads7142 get_adc_data
[ 57.762824] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x17 data = 0xa
[ 57.763185] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x14 data = 0x1
[ 57.763389] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x17 data = 0x0
[ 57.778066] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x1f data = 0x1
[ 57.778301] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x15 data = 0x1
[ 57.778501] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x24 data = 0x3
[ 57.778936] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x24 data: 0x3
[ 57.778943] ads7142: get_adc_data: ads7142 get channelconfig 0x3
[ 57.778956] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x1c data = 0x6
[ 57.779386] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x1c data: 0x6
[ 57.779394] ads7142: get_adc_data: ads7142 get opmodeselconfig 0x6
[ 57.779636] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x0 data: 0x2
[ 57.779644] ads7142: get_adc_data: ads7142 get opmodei2cconfig 0x2
[ 57.779656] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x20 data = 0x1
[ 57.780086] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x20 data: 0x1
[ 57.780093] ads7142: get_adc_data: ads7142 get autoseqchenconfig 0x1
[ 57.780106] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x18 data = 0x0
[ 57.780535] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x18 data: 0x0
[ 57.780543] ads7142: get_adc_data: ads7142 get oscconfig 0x0
[ 57.780554] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x19 data = 0x15
[ 57.780984] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x19 data: 0x15
[ 57.780990] ads7142: get_adc_data: ads7142 get nCLKconfig 0x15
[ 57.781003] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x28 data = 0x2
[ 57.781203] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x2c data = 0x0
[ 57.781404] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x1e data = 0x1
[ 57.781603] ads7142: ads7142_write_reg: ads7142_write_reg opcode = 0x8 reg = 0x1f data = 0x1
[ 57.782033] ads7142: ads7142_read_reg: opcode = 0x10 reg = 0x1 data: 0x10
[ 57.782041] ads7142: get_adc_data: ads7142 get databufferstatus 16
[ 57.782048] ads7142: get_adc_data: ads7142 busy/rdy status 0
[ 57.783071] ads7142: ads7142_read: i = 0 date = 0x8b
[ 57.783075] ads7142: ads7142_read: i = 1 date = 0xd1
[ 57.783078] ads7142: ads7142_read: i = 2 date = 0x8b
[ 57.783082] ads7142: ads7142_read: i = 3 date = 0xe1
[ 57.783086] ads7142: ads7142_read: i = 4 date = 0x8b
[ 57.783089] ads7142: ads7142_read: i = 5 date = 0xe1
[ 57.783092] ads7142: ads7142_read: i = 6 date = 0x8b
[ 57.783096] ads7142: ads7142_read: i = 7 date = 0xe1
[ 57.783099] ads7142: ads7142_read: i = 8 date = 0x8b
[ 57.783103] ads7142: ads7142_read: i = 9 date = 0xe1
[ 57.783106] ads7142: ads7142_read: i = 10 date = 0x8b
[ 57.783110] ads7142: ads7142_read: i = 11 date = 0xe1
[ 57.783113] ads7142: ads7142_read: i = 12 date = 0x8b
[ 57.783117] ads7142: ads7142_read: i = 13 date = 0xe1
[ 57.783120] ads7142: ads7142_read: i = 14 date = 0x8b
[ 57.783123] ads7142: ads7142_read: i = 15 date = 0xe1
[ 57.783126] ads7142: ads7142_read: i = 16 date = 0x8b
[ 57.783130] ads7142: ads7142_read: i = 17 date = 0xf1
[ 57.783133] ads7142: ads7142_read: i = 18 date = 0x8b
[ 57.783137] ads7142: ads7142_read: i = 19 date = 0xf1
[ 57.783140] ads7142: ads7142_read: i = 20 date = 0x8b
[ 57.783143] ads7142: ads7142_read: i = 21 date = 0xe1
[ 57.783146] ads7142: ads7142_read: i = 22 date = 0x8b
[ 57.783150] ads7142: ads7142_read: i = 23 date = 0xf1
[ 57.783153] ads7142: ads7142_read: i = 24 date = 0x8b
[ 57.783157] ads7142: ads7142_read: i = 25 date = 0xe1
[ 57.783160] ads7142: ads7142_read: i = 26 date = 0x8b
[ 57.783164] ads7142: ads7142_read: i = 27 date = 0xe1
[ 57.783167] ads7142: ads7142_read: i = 28 date = 0x8b
[ 57.783171] ads7142: ads7142_read: i = 29 date = 0xd1
[ 57.783173] ads7142: ads7142_read: i = 30 date = 0x8b
[ 57.783177] ads7142: ads7142_read: i = 31 date = 0xf1