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:…
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…
Why not Harmony First of all, I’m a royal promotor of Microchip’s MCU products for over a decade. From pic24 to dspic33, from PIC32MX to PIC32MZ, Microchip’s MIPS line never…
Bootloader must be designed to be very reliable. In other word, bootloader is an unsung hero carrying out its job when necessary. It shouldn’t be replaced or destroyed at anytime.…