i have a PIC16F1459 permanently connected to a FE1.1S 4port usb hub
that is connected to a Raspberry CM5.
The PIC has endpoints for HID keyboard and CDC. Works fine so far.
Unfortunately i have connected the power feedback signal to the pin that
has been used in legacy devices for D+/D- and these pins are blocked if the
usb engine is activated... (PGD/Pin 16)
So i can not read the power status of the CM5. :(
Is there a chance to detect the enumeration/connection status by software?
I already tried usb_enumerated() but this did not work.
Maybe there is a bad hack to disable something to get access to the pin?
Just for a few microseconds so that nowbody notice it?
Changing the pcb is not an option, there are 70 pcbs already sent out.
Best regards,
Chris
chrhartz
Joined: 29 Aug 2008 Posts: 13
Posted: Mon Jun 29, 2026 3:17 pm
After having a closer look to the datasheet i see two options.
There should be a start of frame interrupt (SOFIF) every 1 ms.
How does the CCS usb stack handle this interrupt?
After 3 ms without SOFIF the state machine should go to idle. (IDLEIF)
How does the CCS usb stack handle this interrupt or state?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum