Init_I2S bug with WDFL?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Init_I2S bug with WDFL?

跳至解决方案
618 次查看
bowerymarc
Contributor V

In the Init_I2S PE module:

If you set transmit configuration->word flag configuration to 1, this is the comment and code generated (I2S1.c):

  /* I2S0_RCR3: RCE=0,WDFL=0 */

  I2S0_RCR3 &= (uint32_t)~(uint32_t)((I2S_RCR3_RCE(0x03) | I2S_RCR3_WDFL(0x1F)));                                  

seems the comment is correct, code not so much?

(K20F120M project)

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
456 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Please note that RCR register is for receiver, not transmitter. I don't see any issues in the code, it's just maybe little bit difficult to read (uses 1 masks and then inverts them using ~ operator...)

Best regards

Petr Hradsky

Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
1 回复
457 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Please note that RCR register is for receiver, not transmitter. I don't see any issues in the code, it's just maybe little bit difficult to read (uses 1 masks and then inverts them using ~ operator...)

Best regards

Petr Hradsky

Processor Expert Support Team

0 项奖励
回复