I have been designing PIC based systems for several years, but this will be the first time that I am involved in a project based on USB communication. I don't exactly know where to start but I have been searching around the internet for a few days for "PIC USB tutorials". Unfortunately I could not see any information for my situation.
I need to design a system which will have "only one USB port" to connect to PC (in order to pass some logging information to PC) and also a "USB flash memory" to save some data. Of course, these connections can not be created at the same time since there is only one slot. But my system should sense which is connected and behave in a proper way. Is it possible to create a system like this? What kind of electrical designations should I consider? And some guidance links for a starter will be appreciated.