Hello, I'm interested in creating a pseudo "standy-by" mode on our T3.6 based widget, which would include turning off the USB Host power. On our widget, PTE6 is connected to a (self powered) USB hub chip's VBUS_Sense pin, so it won't power up until Teensy runs USBhost_T36. This works great. According the the post linked below, this sets PTE6 high which normally enables a current limit switch to provide host power. In our design, it enables the USB hub chip, and we have our own current limit switches (and a polyfuse on 5V for good measure).
https://www.reddit.com/r/Teensy/comments/bo6k10/teensy_36_usb_host_power_issues/
Here's the code referenced in the post above:
Would the Teensy USB host code tolerate switching our hub off and on? I think it will behave like hot plugging. Assuming this is safe to do, could someone in the know provide a brief explanation of how this code works, and how to safely set PTE6 low?
Thanks! We'll give it a shot and see if the hub chip can power off and back on again this way.
Here's a shot of our work in progress:
https://www.reddit.com/r/Teensy/comments/bo6k10/teensy_36_usb_host_power_issues/
Here's the code referenced in the post above:
Code:
PORTE_PCR6 = PORT_PCR_MUX(1);
GPIOE_PDDR |= (1<<6);
GPIOE_PSOR = (1<<6); // turn on USB host power
Would the Teensy USB host code tolerate switching our hub off and on? I think it will behave like hot plugging. Assuming this is safe to do, could someone in the know provide a brief explanation of how this code works, and how to safely set PTE6 low?
Thanks! We'll give it a shot and see if the hub chip can power off and back on again this way.
Here's a shot of our work in progress: