CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB enumeration status

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
chrhartz



Joined: 29 Aug 2008
Posts: 13

View user's profile Send private message

USB enumeration status
PostPosted: Mon Jun 29, 2026 2:23 pm     Reply with quote

Hi there,

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

View user's profile Send private message

PostPosted: Mon Jun 29, 2026 3:17 pm     Reply with quote

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?

Is there a function to read out the idle state?

Seems it is solvable in software?

Best regards,
Chris
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group