I can write HID status by SPI interface and windows get the HID command.
But the status bit does not clear automatically and windows get repeated commands so much.
What duration ( ms or us) is required for sending only one HID command to OS before clearing the HID status bit.
Thanks and best regards,
I also noticed that the status bits need be cleared or else it will be repeated to the host.
I wait approximately 50 ms before clearing and I've never seen a repeat. You can probably experiment with this to find a minimum interval but actual recommendations is bound to be found in the USB HID device specification. I haven't read it but it's probably a really large document...
Good luck with project!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.