PIC32MZ USB device class- interrupt mode issue
I am working on Olimex board for PIC32MZ2048ECG144
I am using the sample code (cdc_com_port_single) provided in the Harmony library for my development.
The code works good, but what i find is that even though I have set the USB to work in Interrupt mode from Harmony Configurater, i find that if I comment out the function call
USB_DEVICE_CDC_Read (USB_DEVICE_CDC_INDEX_0,&appData.readTransferHandle, appData.readBuffer,APP_READ_BUFFER_SIZE);
from the stae machine APP_STATE_SCHEDULE_READ & try to enter anything on terminal I dont get any event on the function
It seems the USB is still in Polling mode instead of Interrupt mode
General understanding is that when USB is in interr mode , the enything entered on the terminal should have generated interrupt & then I can do an read call to collect the data from the USB endpoint
Can anyone please help how I can use the USB in interr mode without using the read() which i believe is Poll based operation
Waiting for favorable reply.