Author |
Message |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Mon Dec 05, 2011 11:18 pm Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
And I forgot to to say:
Thanks for your help, Ttelmah |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Mon Dec 05, 2011 9:11 am Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
Both give just one pulse on my scope.....
I am programming with Pickit3, remove it, connect power, (make a reset) and look on my scope.
I don´t understand those things. I tried hundreds of settings ... |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Sat Dec 03, 2011 10:34 pm Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
This code gives me only one peak on skope, then sleeping for ever............ |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Sat Dec 03, 2011 4:54 am Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
Thanks Ttelmah. I am not able to aktivate the WDT as I want, but it works very well like this:
(Current consumtion is about 1 µA or less while sleep)
#include <18LF46K22.h>
#fuses NoWDT
... |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Fri Dec 02, 2011 11:41 pm Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
Thanks, I forgot to say, I want to wake up the PIC by WDT. And I tried several settings for Interrupts / Timer1 / LFINTOSC - no success.
I read 2.2 / 2.7 / 3.3 in Datasheet, but maybe I understand so ... |
Topic: 18LF46K22 with #fuses WDT sleeps for ever - solved |
buchtsucht
Replies: 10
Views: 15491
|
Forum: General CCS C Discussion Posted: Fri Dec 02, 2011 8:02 am Subject: 18LF46K22 with #fuses WDT sleeps for ever - solved |
I had many problems with the 18LF46K22:
The CTMU sometimes did not work while a PIN is set by PWM - the only solution was to check the PWM-timer if it will roll over and may wait with CTMU.
(Paras ... |
Topic: XLP: 5-bit DAC not working ?? |
buchtsucht
Replies: 7
Views: 13442
|
Forum: General CCS C Discussion Posted: Tue Dec 07, 2010 1:29 am Subject: XLP: 5-bit DAC not working ?? |
Thanks PCM programmer, it works perfect without any problems - exactly as you wrote it! |
Topic: XLP: 5-bit DAC not working ?? |
buchtsucht
Replies: 7
Views: 13442
|
Forum: General CCS C Discussion Posted: Thu Nov 25, 2010 5:07 am Subject: XLP: 5-bit DAC not working ?? |
wow! Thank you!!!
I had some other problems, but I will test it the next days and tell you if it works! |
Topic: XLP: 5-bit DAC not working ?? |
buchtsucht
Replies: 7
Views: 13442
|
Forum: General CCS C Discussion Posted: Thu Nov 18, 2010 10:23 pm Subject: XLP: 5-bit DAC not working ?? |
Yes, this is true: compiler is CCS 4.106. |
Topic: XLP: 5-bit DAC not working ?? |
buchtsucht
Replies: 7
Views: 13442
|
Forum: General CCS C Discussion Posted: Thu Nov 18, 2010 1:19 am Subject: XLP: 5-bit DAC not working ?? |
Has anyone tried to run the 5-bit-DAC inside the new XLP PICs?
My 16LF1823 don't want to do anything. Output is everytime 0,0V at PIN12 = DACOUT (no external load, debugger or programmer - only sco ... |
Topic: PIC16LF1823 bug in MPLAB or CCS? |
buchtsucht
Replies: 4
Views: 3805
|
Forum: General CCS C Discussion Posted: Fri Aug 27, 2010 3:07 am Subject: PIC16LF1823 bug in MPLAB or CCS? |
Found the solution:
In PIckit3 settings / Memory / manual select Memory ranges / EEPROM was not activated. Maybe this happens while changing the device. |
Topic: PIC16LF1823 bug in MPLAB or CCS? |
buchtsucht
Replies: 4
Views: 3805
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 11:31 pm Subject: PIC16LF1823 bug in MPLAB or CCS? |
Thanks Ttelmah, that is a good idea, and I will use it in future, but it did not solve the problem. Adding 100pF to VDD should help sometimes, but has no success too. |
Topic: PIC16LF1823 bug in MPLAB or CCS? |
buchtsucht
Replies: 4
Views: 3805
|
Forum: General CCS C Discussion Posted: Thu Aug 26, 2010 9:33 am Subject: PIC16LF1823 bug in MPLAB or CCS? |
Hello,
if I write a value to the EEPROM with write_EEPROM(x,y) I can read it by using y=read_EEPROM(x).
But if I write to EEPROM by using #ROM 0xF000={y} the value is not really written to EEPROM ... |
Topic: Why so many cycles to execute code with dspic30F |
buchtsucht
Replies: 5
Views: 6688
|
Forum: General CCS C Discussion Posted: Fri Jun 18, 2010 11:05 pm Subject: Why so many cycles to execute code with dspic30F |
Thanks!
With your help, I found the (idiotic) mistake - I have forgotten:
8 Bit PIC => INT= 8Bit
16 Bit Pic => INT= 16 Bit
Additional the CCS compiler for dspic could be better. But pl ... |
Topic: Why so many cycles to execute code with dspic30F |
buchtsucht
Replies: 5
Views: 6688
|
Forum: General CCS C Discussion Posted: Thu Jun 17, 2010 7:41 am Subject: Why so many cycles to execute code with dspic30F |
Hi,
I am used to work with PICs like 12Fxx or 18Fxxx and have some rules of thumb, how much time some code needs to execute. As code get more complex, speed of dspic30F drecreases in a terrible way. ... |
|