Author |
Message |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Mon Aug 16, 2021 7:21 am Subject: SOLVED Way to unload usb_init to save power on PIC24F before |
Thank you Ttelmah and jeremiah for helping me solve this mystery. The existence of Module Disable (MD) bits are mentioned in the datasheet but not specifically defined anywhere, so was difficult for ... |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Fri Aug 13, 2021 8:59 am Subject: Way to unload usb_init to save power on PIC24F before sleep? |
I added the usb_detach(); but no difference.
I tried a few things also just as an experiment, such as manually setting register bits:
OTGEN = 0;
DPPULUP = 0;
DMPULUP = 0;
USBEN ... |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Thu Aug 12, 2021 12:32 pm Subject: Way to unload usb_init to save power on PIC24F before sleep? |
I should add - my goal is to reach the 0.005 ma (5 uA) draw... but somehow reach that after having run usb_init_cs previously. Essentially I'd like to "un-load" anything that it did. The u ... |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Thu Aug 12, 2021 12:20 pm Subject: Way to unload usb_init to save power on PIC24F before sleep? |
I had a look at "bus power only" and had it set up that way, but the biggest issue is calling usb_init... this is what I get:
Test 1
usb_init_cs(), sleep mode, Vbus = 0, Vusb = Vdd (Show ... |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Thu Aug 12, 2021 11:32 am Subject: Way to unload usb_init to save power on PIC24F before sleep? |
Thank you for your response.
I had Vbus pulled down (no USB device connected), and Vusb connected to Vdd. You made me think about that one so I disconnected Vusb temporarily and that brought my cu ... |
Topic: Way to unload usb_init to save power on PIC24F before sleep? |
Rubin
Replies: 12
Views: 32966
|
Forum: General CCS C Discussion Posted: Thu Aug 12, 2021 7:36 am Subject: Way to unload usb_init to save power on PIC24F before sleep? |
Hello all,
I'm developing for a PIC24FJ256GB106. My goal is to optimize power draw during sleep mode, which I've done as much as possible by implementing several tricks such as disabling any paras ... |
|