Author |
Message |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Tue Nov 11, 2014 8:05 am Subject: PIC18F2523 watchdog issues |
I only use CCS C compiler and as far as I know no MPLAB. Programs are loaded via CCSload.
The problem was that I included file x and made the changes to file y....
So the file which is included ne ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Mon Nov 10, 2014 1:20 pm Subject: PIC18F2523 watchdog issues |
Edit: I need to go to bed.....
The .h file I changed was one of my older program I saved the .h file with a new version number but my program still included the old one.
Well, just reinstalled ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Mon Nov 10, 2014 1:03 pm Subject: PIC18F2523 watchdog issues |
Jay, I did change the program as you described. I'm programming the PIC via CCSload and a ICD-U64.
@PCM, will give it a try. |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Mon Nov 10, 2014 12:30 pm Subject: PIC18F2523 watchdog issues |
More strange things happen. I changed the oscillator from HS to INTRC but in the LST file nothing changes after compiling and rebuilding the project.
The time stamp at the top of the LST file does ch ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Mon Nov 10, 2014 9:50 am Subject: PIC18F2523 watchdog issues |
Found it;
Configuration Fuses:
Word 1: 0200 HS NOFCMEN NOIESO
Word 2: 0E07 NOPUT BROWNOUT BORV45 NOWDT WDT128
Word 3: 0500 CCP2C1 NOPBADEN LPT1OSC NOMCLR
Word ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Mon Nov 10, 2014 9:38 am Subject: PIC18F2523 watchdog issues |
Ttelmah, were can I find the information you showed? I found it under "C/ ASM List" which gives me a *.lst file. But your code layout seems different then mine.
I have replaced the debug ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Sun Nov 09, 2014 8:10 am Subject: PIC18F2523 watchdog issues |
Just missed your answer Ttelmah. My previous comment has more or less be answered by your comment.
About the timings. For my application the timing is not precise. The controller may hang for a few ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Sun Nov 09, 2014 7:58 am Subject: PIC18F2523 watchdog issues |
Thanks for your answer. I was under the assumption that "SETUP_WDT(WDT_ON)" at the begin of the main was sufficient.
Got that out of the following link: http://www.ccsinfo.com/forum/viewtop ... |
Topic: PIC18F2523 watchdog issues |
Diode
Replies: 18
Views: 26071
|
Forum: General CCS C Discussion Posted: Sun Nov 09, 2014 4:09 am Subject: PIC18F2523 watchdog issues |
I'm having some problems with the watchdog in my program. This is the first time I want to use a watchdog. Occasionally my controller stalls due to voltage spikes caused by switching an inductive load ... |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2014 8:46 am Subject: DSPIC30F2020 PWM problem |
Sometimes a break is all you need....
IOCON1 = 0xC400; // PENH and PENL controlled by PWM module
IOCON1 = 0xC400; // PENH and PENL controlled by PWM module
Of course this need ... |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2014 5:58 am Subject: DSPIC30F2020 PWM problem |
You are right, with the help of those functions it is much easier to understand what is happening.
But it was good to have tried it directly by writing registers as Mike described. It has learned m ... |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Wed Feb 05, 2014 1:44 pm Subject: DSPIC30F2020 PWM problem |
Many thanks to both of you!
I now have PWM1 working on a frequency of 26kHz and I'm able to change the PWM frequency during my program. So the begin is there.
The functions Ttelmah gave work quite ... |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Wed Feb 05, 2014 3:11 am Subject: DSPIC30F2020 PWM problem |
I'm experimenting with writing registers but I'm not sure if I write the registers correctly.
On page 144 of the datasheet the power supply register map is given. I want to write into the PTCON reg ... |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Tue Feb 04, 2014 12:53 pm Subject: DSPIC30F2020 PWM problem |
I appreciate your help, thanks for that!
I will read the manual and datasheet and see how things will go. Will get back here with the results within a few days. |
Topic: DSPIC30F2020 PWM problem |
Diode
Replies: 18
Views: 26295
|
Forum: General CCS C Discussion Posted: Tue Feb 04, 2014 11:01 am Subject: DSPIC30F2020 PWM problem |
Mike,
For example: _bif void set_pwm_duty(unsigned int8 module, unsigned int16 duty);
This is mentioned in the 30f2020.h file.
I can't find anything about phase so I may assume that there is no ... |
|