Troubleshooting USB communications on 18F2550
Posted: 30 Jun 2010 05:09
Hi
I have some questions related to HID library on Mikroc 8.2 compiler and to HID terminal also.
It suposes the host can initiate the communication process with a Device and it can do that by interruption signal or message, isn't it?
As far as I see in the HDI library does not exist a function that handles this event, so the user has to write it?
The function HID_Enable prepares de USB to get interruptions ?
How to test if the USB device port is attached to the host port?
Another fact is the HID can transmit or receive data on 2 modes- Control or by Interruptions - How do I know in wich mode I'm transmiting and how to switch from one to another one.
Seeking hints on the mikroC examples I`ve found a function named "HID_InterruptProc();" it appears at the interrupt section of program - Where can I see the source code of this function?
On the last place I would like to read about how to use the HID terminal. I think it is very intuitive on use, but I`m new to USB and feel myself a bit insecure yet on this field, so if there is an article or notes talking on how to use that terminal eficiently I would appreciate it if you show where.
Kind regards,
I have some questions related to HID library on Mikroc 8.2 compiler and to HID terminal also.
It suposes the host can initiate the communication process with a Device and it can do that by interruption signal or message, isn't it?
As far as I see in the HDI library does not exist a function that handles this event, so the user has to write it?
The function HID_Enable prepares de USB to get interruptions ?
How to test if the USB device port is attached to the host port?
Another fact is the HID can transmit or receive data on 2 modes- Control or by Interruptions - How do I know in wich mode I'm transmiting and how to switch from one to another one.
Seeking hints on the mikroC examples I`ve found a function named "HID_InterruptProc();" it appears at the interrupt section of program - Where can I see the source code of this function?
On the last place I would like to read about how to use the HID terminal. I think it is very intuitive on use, but I`m new to USB and feel myself a bit insecure yet on this field, so if there is an article or notes talking on how to use that terminal eficiently I would appreciate it if you show where.
Kind regards,