• AVR Freaks

Hot!USB host/device selection for PIC32MZ

Author
Jetoleg
Starting Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2019/08/19 06:43:41
  • Location: 0
  • Status: offline
2019/12/23 12:47:37 (permalink)
5 (1)

USB host/device selection for PIC32MZ

Hello,
Run into interesting issue with PIC32MZ USB operation. Looks like MCU using special USBID pin to select between device/host operation. Unfortunately I am using this pin for other purposes, so in my case USB always initializing as Host.
Harmony initializing HSEN, HSMODE bits of OTG register to 1. I attempted to override them manually, no effect:
UUSBOTGbits.HOSTREQ = 0;
UUSBOTGbits.HOSTMODE = 0;
Is there anyway to make device operate in non-host mode without manipulating state of USBID pin?

Attached Image(s)

#1

0 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5