Author |
Message |
Topic: 16F876 with 32768 kHz clock hangs up. but why? |
wedilo
Replies: 13
Views: 16526
|
Forum: General CCS C Discussion Posted: Thu Jan 19, 2006 5:19 am Subject: 16F876 with 32768 kHz clock hangs up. but why? |
Dear friends,
Thank you very very much for spending so much of your time in my problem.
Yes, Ckielstra is right, I use a 32768 Hz (32,768kHz) crystal for having much lower power consumption.
I ... |
Topic: 16F876 with 32768 kHz clock hangs up. but why? |
wedilo
Replies: 13
Views: 16526
|
Forum: General CCS C Discussion Posted: Tue Jan 17, 2006 1:04 pm Subject: 16F876 with 32768 kHz clock hangs up. but why? |
Dear friends,
OK, I will post the complete program, but first one other thing.
When I have a look to the clock signal with a scope then the 4.0 MHz crystal has a nice sine form. The 32768 kHz cry ... |
Topic: 16F876 with 32768 kHz clock hangs up. but why? |
wedilo
Replies: 13
Views: 16526
|
Forum: General CCS C Discussion Posted: Tue Jan 17, 2006 11:54 am Subject: 16F876 with 32768 kHz clock hangs up. but why? |
Hi,
Yes, I use 39pF each as C4 and C5 on PicDem2, that should be ok.
Best regards
Sven |
Topic: 16F876 with 32768 kHz clock hangs up. but why? |
wedilo
Replies: 13
Views: 16526
|
Forum: General CCS C Discussion Posted: Mon Jan 16, 2006 12:55 am Subject: 16F876 with 32768 kHz clock hangs up. but why? |
Hi,
Thanks for help, I will try it out.
Is there any special to know for using 32768 kHz crystal?
It looks so different to the others. It's not the usual form, it's round.
Please help.
Sven |
Topic: 16F876 with 32768 kHz clock hangs up. but why? |
wedilo
Replies: 13
Views: 16526
|
Forum: General CCS C Discussion Posted: Sun Jan 15, 2006 3:28 am Subject: 16F876 with 32768 kHz clock hangs up. but why? |
Dear PCM programmer,
Thanks for your quick reply.
Yes, it still works with 4 MHz and higher.
I only have to adapt as follows:
Clockspeed 4000000
#fuses HS, ...
In the main:
setup_timer_2( ... |
Topic: Unbelievable result of an subtraction |
wedilo
Replies: 4
Views: 14192
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2004 6:57 am Subject: Unbelievable result of an subtraction |
Hello Pete, hello Ttelmah,
Yeah, I think that's the problem. The interupt occur during the read of high and low byte.
But I thought until yet, something like this is not possible. Oops!
I will try ... |
Topic: Unbelievable result of an subtraction |
wedilo
Replies: 4
Views: 14192
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2004 2:29 am Subject: Unbelievable result of an subtraction |
Hello folks,
Please help me by this strange problem. I can't find my mistake...
The following code is to determine if an pulse found or not. If not then show a message. For the present...
For i ... |
Topic: Writing into a compactflash card |
wedilo
Replies: 3
Views: 14066
|
Forum: General CCS C Discussion Posted: Wed Mar 17, 2004 10:16 am Subject: Writing into a compactflash card |
Hello CF!,
look also here:
http://www.ccsinfo.com/forum/viewtopic.php?t=18584&highlight=
73 Sven |
Topic: 10 second delay & 3 hours delay |
wedilo
Replies: 11
Views: 26044
|
Forum: General CCS C Discussion Posted: Wed Mar 17, 2004 1:26 am Subject: 10 second delay & 3 hours delay |
Hello Neutone,
edi specifies Xtal = 20MHz
That means that in 1 mS there are 5000 instruction cycles. Vectoring to an interupt take ~100 insctuction cycles. That means that 2% of total processor ti ... |
Topic: 10 second delay & 3 hours delay |
wedilo
Replies: 11
Views: 26044
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 2:28 am Subject: 10 second delay & 3 hours delay |
Hello Neutone,
I would like to understand the problematic nature of a timer.
In your code I can see, that the isr will be called every millisecond.
Is the performance ok? Is there also enough time ... |
Topic: TC74 |
wedilo
Replies: 2
Views: 9324
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 2:12 am Subject: TC74 |
Hello Neutone,
Unbelievable, you give the answer before I can ask the question. Go on!!!
73 Sven |
Topic: printf help |
wedilo
Replies: 1
Views: 9179
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 2:02 am Subject: printf help |
Hello Gast,
I think your customer is right.
For Example:
int nTemp = 0xC0;
printf("%2X", nTemp);
In this case the uart will send 1 byte for the 'C' and 1 byte for the '0'. ... |
Topic: debugger stops running without breakpoint |
wedilo
Replies: 3
Views: 12631
|
Forum: General CCS C Discussion Posted: Fri Mar 12, 2004 1:34 am Subject: debugger stops running without breakpoint |
Hello chava,
If the program is finished, remove the 'ICD=True' behind the #device command and make a final compile of your code. Then program the PIC and you will have full access to the pins B4...B ... |
Topic: c examples |
wedilo
Replies: 1
Views: 9614
|
Forum: General CCS C Discussion Posted: Thu Mar 11, 2004 6:28 am Subject: c examples |
Hello asjad,
You can find examples for using interrupts in the compiler path ...\PICC\Examples or at http://www.ccsinfo.com/examples.shtml
Otherwise have a look to the search engine here in the foru ... |
Topic: recover ICD-U40 firmware |
wedilo
Replies: 16
Views: 123667
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Thu Mar 11, 2004 6:21 am Subject: recover ICD-U40 firmware |
Hello agrj,
OK, now I understand.
You want to open the file 'Ccsicd40.hex' with File -> Import...
After you choose the filename, you get an error message like: "The format of the file ... can n ... |
|