Author |
Message |
Topic: PIC12F683 won't run stand-alone |
embedder
Replies: 2
Views: 4772
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 7:36 am Subject: PIC12F683 won't run stand-alone |
Thanks temtronic. I don't think it applies, but I will experiment with the fuses a bit more. I feel like I am missing something obvious. Anyone? |
Topic: PIC12F683 won't run stand-alone |
embedder
Replies: 2
Views: 4772
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 3:57 pm Subject: PIC12F683 won't run stand-alone |
The program below runs fine using the CCS PIC12F683 dev board with the ICD. But when I remove #device ICD=TRUE and program either the 14-pin ICD chip or a standard 8-pin chip it doesn't run past the f ... |
Topic: Software control of WDT on PIC18F87K22 |
embedder
Replies: 6
Views: 12463
|
Forum: General CCS C Discussion Posted: Wed Nov 09, 2011 3:35 pm Subject: Software control of WDT on PIC18F87K22 |
Page 419 of the datasheet seems to mean that there are four mutually exclusive WD modes. i.e. Setting fuse WDT_NOSLEEP after fuse WDT_SW changes the mode to h/w enabled (but disabled when asleep)
... |
Topic: Software control of WDT on PIC18F87K22 |
embedder
Replies: 6
Views: 12463
|
Forum: General CCS C Discussion Posted: Wed Nov 09, 2011 3:24 pm Subject: Software control of WDT on PIC18F87K22 |
There is one essential difference between your code and mine, and it turns out to be the answer:
#FUSES WDT_NOSLEEP
This fuse disables s/w control of the WD.
I don't know if it is meant too, ... |
Topic: Software control of WDT on PIC18F87K22 |
embedder
Replies: 6
Views: 12463
|
Forum: General CCS C Discussion Posted: Wed Nov 09, 2011 10:19 am Subject: Software control of WDT on PIC18F87K22 |
OK, here's some code.
After setup_wdt(WDT_OFF) the LED should stay on for 8 seconds, then off for 1 sec, then back on and finally the WD should cause a reset after 4 seconds. However, the PIC is a ... |
Topic: Software control of WDT on PIC18F87K22 |
embedder
Replies: 6
Views: 12463
|
Forum: General CCS C Discussion Posted: Wed Nov 09, 2011 7:55 am Subject: Software control of WDT on PIC18F87K22 |
Thanks PCM programmer. I read and followed that thread, but it doesn't show the WD being successfully turned off - that's one of the problems highlighted. I will post some code. |
Topic: Software control of WDT on PIC18F87K22 |
embedder
Replies: 6
Views: 12463
|
Forum: General CCS C Discussion Posted: Tue Nov 08, 2011 5:47 pm Subject: Software control of WDT on PIC18F87K22 |
PCH 4.125
I am trying to enable/disable the PIC18F87K22 WDT under software control. I've read the few posts that there are here and the help files, and the fuse definitions but no luck.
The help ... |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Tue Apr 12, 2011 11:13 am Subject: PIC18F85K22 Internal Osc & PLL |
The solution is:
1. Upgrade to PCH 4.120
2. If you don't change the speed at run time remove the #fuses (INTRC_HP & PLLEN) and setup_oscillator(). Then use just:
#use delay( internal=64 ... |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Mon Apr 11, 2011 3:47 pm Subject: PIC18F85K22 Internal Osc & PLL |
There doesn't appear to be a problem programming PIC18F85K22's with NOMCLR. They keep working, just not at the desired speed.
#use delay(internal=8M)
is the highest internal speed, otherw ... |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Mon Apr 11, 2011 3:17 pm Subject: PIC18F85K22 Internal Osc & PLL |
Thanks w2drz.
Regarding PLLEN: OR'ing OSC_PLL_ON with OSC_16MHZ seems to set the correct bit in the OSCTUNE reg. But only delay(clock=16M) works correctly ... clock=64M gives 4 sec pulses (in PCM p ... |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Mon Apr 11, 2011 12:45 pm Subject: PIC18F85K22 Internal Osc & PLL |
Thanks drolleman. Tried OR'ing OSC_PLL_ON. Sadly it has no effect. |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Mon Apr 11, 2011 8:27 am Subject: PIC18F85K22 Internal Osc & PLL |
Unfortuately, no luck with those settings.
Looking at other device .h files it appears that setup_oscillator(); needs to be correct, but there is no OSC_64MHZ option for this part. |
Topic: PIC18F85K22 UART2 |
embedder
Replies: 5
Views: 7582
|
Forum: General CCS C Discussion Posted: Mon Apr 11, 2011 8:18 am Subject: PIC18F85K22 UART2 |
That was it PCM programmer. Thanks for your help. Caught-out by the doubled edged sword of multi-purpose pins. |
Topic: PIC18F85K22 Internal Osc & PLL |
embedder
Replies: 11
Views: 23042
|
Forum: General CCS C Discussion Posted: Fri Apr 08, 2011 5:30 pm Subject: PIC18F85K22 Internal Osc & PLL |
Thanks. I will try it out and let you know. |
Topic: PIC18F85K22 UART2 |
embedder
Replies: 5
Views: 7582
|
Forum: General CCS C Discussion Posted: Fri Apr 08, 2011 5:17 pm Subject: PIC18F85K22 UART2 |
Excellent catch. Thank you!
(I plan to have some interrupt routines in the near future). |
|