Author |
Message |
Topic: PIC DRO? |
Eugeneo
Replies: 6
Views: 12338
|
Forum: General CCS C Discussion Posted: Wed Mar 02, 2016 11:16 pm Subject: PIC DRO? |
I was thinking about this. It sounds like a fun project.
You could create a FIFO buffer that captured only the PORTB change on interrupt. This will ensure a deterministic maximum interval. Als ... |
Topic: Questions about SLEEP();[SOLVED] |
Eugeneo
Replies: 8
Views: 12590
|
Forum: General CCS C Discussion Posted: Tue Nov 17, 2015 12:07 pm Subject: Questions about SLEEP();[SOLVED] |
I would reduce the bulk capacitance then connect a resistor inline and scope the surge. Maybe the duration and type of the surge will tell you something. |
Topic: Pic24 can't reach low power spec. |
Eugeneo
Replies: 5
Views: 10503
|
Forum: General CCS C Discussion Posted: Mon Nov 16, 2015 11:35 am Subject: Pic24 can't reach low power spec. |
I found this link. It allows you to modify the clock source input with the required ASM unlock sequence. It will allow you to manually adjust and verify the clock sources. Note: Please be aware, th ... |
Topic: Pic24 can't reach low power spec. |
Eugeneo
Replies: 5
Views: 10503
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2015 6:03 pm Subject: Pic24 can't reach low power spec. |
All the hardware is removed. The unit now draws a total of 13 uA in deep sleep mode with the LPRC waking the unit up every second. When the MCU wakes up, it draws 284 uA. Does anybody know ... |
Topic: Pic24 can't reach low power spec. |
Eugeneo
Replies: 5
Views: 10503
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2015 5:33 pm Subject: Pic24 can't reach low power spec. |
Thanks Ttelmah,
If I insert this line at the beginning, the current draw is 224 uA
setup_oscillator(OSC_RC, 0);
And this one uses the FRC and draws 500 uA
setup_oscillator ... |
Topic: PIC configurable logic cell (CLC) |
Eugeneo
Replies: 5
Views: 11391
|
Forum: General CCS C Discussion Posted: Sat Nov 14, 2015 8:42 pm Subject: PIC configurable logic cell (CLC) |
I recently completed a project on the Pic 10F322. It's great to use on projects if you have a dilemma between pure hardware or micro.
Anyways, I wanted to play with the CLC hardware. It's prett ... |
Topic: Pic24 can't reach low power spec. |
Eugeneo
Replies: 5
Views: 10503
|
Forum: General CCS C Discussion Posted: Sat Nov 14, 2015 5:46 pm Subject: Pic24 can't reach low power spec. |
Hi all,
Been trying to setup this Pic (24FJ128GC006) to sip as little power as possible. When the mcu enters sleep without RAM retention, I measure 75 uA - which is fine as a baseline. When it is ... |
Topic: Pic24 deep sleep wakes up but doesn't run |
Eugeneo
Replies: 7
Views: 13313
|
Forum: General CCS C Discussion Posted: Tue Nov 10, 2015 2:58 pm Subject: Pic24 deep sleep wakes up but doesn't run |
This is very odd. If you set the RELEASE bit low twice, it works.
This does not work:
#bit DPSLP = getenv("bit:DPSLP")
#bit RELEASE = getenv("bit:RELEAS ... |
Topic: Pic24 deep sleep wakes up but doesn't run |
Eugeneo
Replies: 7
Views: 13313
|
Forum: General CCS C Discussion Posted: Tue Nov 10, 2015 11:59 am Subject: Pic24 deep sleep wakes up but doesn't run |
To go that low, you are stopping the RTCC as well. The RTCC draws over three hundred uA.
If you are doing that, why not just switch the processor off?. A FET switch, can power it down completely.. ... |
Topic: Pic24 deep sleep wakes up but doesn't run |
Eugeneo
Replies: 7
Views: 13313
|
Forum: General CCS C Discussion Posted: Tue Nov 10, 2015 10:14 am Subject: Pic24 deep sleep wakes up but doesn't run |
As a comment, you do realise that deep sleep will erase all the RAM.
There are a number of sleep modes:
sleep
low voltage sleep
retention deep sleep
deep sleep
The last one erases the memory ... |
Topic: Pic24 deep sleep wakes up but doesn't run |
Eugeneo
Replies: 7
Views: 13313
|
Forum: General CCS C Discussion Posted: Tue Nov 10, 2015 9:13 am Subject: Pic24 deep sleep wakes up but doesn't run |
Thanks for the pointers temtronic.
I'll try these things out.
So I've narrowed the problem down. When the MCU restarts and detects a wake up condition from deep sleep (DPSLP == 1), Clearing the ... |
Topic: Driving an LCD Display |
Eugeneo
Replies: 6
Views: 10889
|
Forum: General CCS C Discussion Posted: Sun Nov 08, 2015 3:07 pm Subject: Driving an LCD Display |
Something like this would be faster.
BYTE CONST segs_7[12]={0xfc,0x60,0xda,0xf2,0x66,0xb6,0xbe,0xe0,0xfe,0xf6,0x00,0xce};
#define latch_seg output_high(clock_pin) ... |
Topic: Starting PIC24HJ128GP202 [SOLVED] |
Eugeneo
Replies: 14
Views: 18511
|
Forum: General CCS C Discussion Posted: Sun Nov 08, 2015 1:52 pm Subject: Starting PIC24HJ128GP202 [SOLVED] |
I remember having some issues with the clock speed on this pic. I know this works so hopefully it helps.
#FUSES FRC_PLL //Internal Fast RC oscillator with PLL
#word RCON=0x ... |
Topic: Pic24 deep sleep wakes up but doesn't run |
Eugeneo
Replies: 7
Views: 13313
|
Forum: General CCS C Discussion Posted: Sun Nov 08, 2015 1:33 pm Subject: Pic24 deep sleep wakes up but doesn't run |
Hi all. I've been trying to get this Pic to wake up on a RTCC interrupt with no luck.
The RTCC is functioning fine on SOSC.
Here's the strange thing - Right after programming the chip, it fun ... |
Topic: reset microcontroller |
Eugeneo
Replies: 3
Views: 6307
|
Forum: General CCS C Discussion Posted: Wed Jan 14, 2015 12:17 am Subject: reset microcontroller |
FYI. So you don't make the same mistake I did. If you really want to know what is happening, make sure you invest in some good differential probes or use a scope with isolated inputs. And I'm not t ... |
|