K51 as USB Device: how to NAK a USB IN

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

K51 as USB Device: how to NAK a USB IN

1,843 次查看
johnstrohm
Contributor III

USB 2.0 allows a Device to NAK a USB In request if it has no data to send.  This is normal.  We were using this on code that was originally developed on a TI Stellaris processor, then ported to the K51 when TI suddenly discontinued the Stellaris line.

Reviewing the K51 Sub-Family Reference Manual, I find no reference whatsoever to forcing a NAK condition.  Reviewing the USB code, I find no reference whatsoever to NAK in Device mode.

How do I force a NAK if I have nothing to send?

标记 (1)
0 项奖励
回复
1 回复

1,443 次查看
mjbcswitzerland
Specialist V

Hi

An endpoint automatically NAKs when it has no data waiting to be sent (in its BD). Therefore there is nothing that needs to be done/forced.

Regards

Mark