The missing recipe from the Microchip’s datasheet Since Microchip doesn’t provide enough details with regard to the correct configuration of the USBDMA module, I had to piece together information from…
The power of USBDMA on PIC32MZ silicon In order to appreciate the power of USB DMA, we need to understand the ABCs of the DMA module. DMA, Direct Memory Access,…
So many details … The following codes work for my project. I must say the configuration of the endpoints is probably the most important step to make the USB module…
USB Device – Config – Interface – Endpoint Descriptor To understand “one config – multiple interfaces”, just to think about a printer-scanner comb machine – it’s one device with two…
Let’s start coding… Wait…. I need to list the procedures below how the USB device is setup through the enumeration process: Now let break down each item with the codes:…
I ran into a new problem when making my PDFs unsearchable in my last post — The size of the newly generated PDFs were much larger than the original ones.…
It may sound a little wired as why anyone would want to make their PDFs unsearchable. The truth is — it’s not an uncommon request of doing so: protecting your…
This may apply to a wide range of Microchip MCU, or even other manufactory’s MCU. But I only verified on PIC32MZ2048EFH100. Writing to a GPIO, which is an SFR (Special…
On MPLAB, go to Project Properties -> Building. Check the box “Execute this line after build” and copy the following to the line: After compile, you will find the “list.lst”…
The scope of USB on PIC32MZ silicon USB is quite a complicated protocol. I would like to use this post to explain a few terminologies and concepts that we will…