CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 12 matches
CCS Forum Index
Author Message
  Topic: setup_wdt() on different CCS version
pumazzz

Replies: 0
Views: 3924

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 12:47 pm   Subject: setup_wdt() on different CCS version
At the very beginning, I use CCS v4.032.
and I can handle a period wake up by using the following code



#include <16F88.h>
#FUSES INTRC, WDT, NOPROTECT ,NOLVP, NOBROWNOUT
#use delay ...
  Topic: ex_fat.c problem
pumazzz

Replies: 13
Views: 16780

PostForum: General CCS C Discussion   Posted: Thu Jan 19, 2012 4:13 pm   Subject: ex_fat.c problem
Then I found out about the new FAT code by CCS based on Microchip's MDD library. It indeed does work correctly - data can be written and read by the PIC, and also seen on a PC just fine.


Can you ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Sun Oct 23, 2011 1:44 pm   Subject: Interrupt during delay_ms
Your test program doesn't compile. It's missing several things. To make
it compile I would have to imagine and write the missing routines. But
then it wouldn't be the actual same test program. I ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Sun Oct 23, 2011 3:58 am   Subject: Interrupt during delay_ms
You can do that search for any PIC data sheet. For 16F, it's always at 0004h. Look in your .LST file at that address. That's where the CCS interrupt dispatcher code is placed by the compiler (if ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Sun Oct 23, 2011 3:53 am   Subject: Interrupt during delay_ms
With regard to your delay testing code, those are code snippets, not a
complete test program with #include, #fuses, #use delay, main(), etc.
But in any case, I can't work on it until tomorrow.

Pr ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Sat Oct 22, 2011 7:39 am   Subject: Interrupt during delay_ms
Post your test programs for this. Complete (but short).


For delay_ms(1)
It seems that I use the following test program:
while(1)
{
output_high(PIN_A1);
delay_ms(1&# ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Sat Oct 22, 2011 7:22 am   Subject: Interrupt during delay_ms
To actually KNOW as to WHY it takes x us instead of y us, all you need do is dump out the listing of the program and 'play computer'.


Or use the 'stopwatch' feature in MPSIM. (MPLAB's Simulator) ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Fri Oct 21, 2011 3:11 am   Subject: Interrupt during delay_ms
also...
I just noticed..

you're using the internal rc oscillator

NOT a good choice for precise timing.

Read the datasheet section on oscillators, check the charts,....more homework !!

For ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Fri Oct 21, 2011 2:54 am   Subject: Interrupt during delay_ms
I looked at
the .LST file, and including the latency of the hardware interrupt, I count a
total of 58 instruction cycles for interrupt overhead. That's 29 us at 8 MHz.
That's just the overhead. ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Fri Oct 21, 2011 2:49 am   Subject: Interrupt during delay_ms
I post my code in the following in order that you can have a better analysis


///clear all interrupt flag bit in transceiver’s status register
irq_clear_transceiver()
{
unsign ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Thu Oct 20, 2011 5:42 am   Subject: Interrupt during delay_ms
You are asking why your assumptions are apparently wrong. But where do you get the numbers of expected execution time?
Did you consider the total overhead of interrupt processing?



Thanks very ...
  Topic: Interrupt during delay_ms
pumazzz

Replies: 20
Views: 20692

PostForum: General CCS C Discussion   Posted: Thu Oct 20, 2011 3:02 am   Subject: Interrupt during delay_ms
I am using PIC16f88 (PIC16f88 to drive a RF transceiver), and the CCS version is 4.032.

I have a question about timing when an external interrupt happens during the delay_ms function.

Here lists ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group