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.
工具/软件:Linux
如何将 ds90ub927-ds90ub924中的 I2S_WC/GPIO_REG07和 I2S_DA/GPIO_REG06设置为 GPIO,、以便传递 PWM?
我将寄存器设置为吹扫:、但它似乎n‘t 效果,
数据 = Read_data (client、 i2c_send_slave_addr、 0x10);
数据 &= 0x00;
write_data (client、 i2c_send_slave_addr、0x10、(data|0x33));
//924::GPIO_REG5、6; 输出:高电平
数据 = Read_data (client、 i2c_rev_slave_addr、 0x20);
数据 &= 0x00;
write_data (client、 i2c_rev_slave_addr、0x20、(data|0x91)); //0x0E
//927:GPIO_REG7、VCOM_PWM、输入;
数据 = Read_data (client、 i2c_send_slave_addr、 0x11);
数据 &= 0x00;
write_data (client、 i2c_send_slave_addr、0x10、(data|0x33));
//924::GPIO_REG7; 输出
数据 = Read_data (client、 i2c_rev_slave_addr、 0x21);
数据 &= 0x00;
write_data (client、 i2c_rev_slave_addr、0x21、(data|0x11)); //0x0E
感谢您的回复、
但我们的客户 Chery 将这两个引脚定义为 GPIO 以通过 PWM、硬件是由 Chery 设计的。Chery 的其他供应商成功通过 GPIO_REG6/7的 PWM;
所以必须有方法来设置,但是如何设置寄存器?
我已在927 μ s 内;I2S_clk 输入1MHz
:转储927寄存器0x10,0x00:0x11,0x00;924寄存器:0x20:0x00:0x21;0x00:0x2b;0x40 μ A
现在它们都以(__LW_AT__0:启用正常操作);
927中的 I2S_DA/GPIO_REG06为20kHz,、但924中的 I2S_DA/GPIO_REG06始终为低电平;
为什么选择?
您可以在演示板?中尝试此操作