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 4 matches
CCS Forum Index
Author Message
  Topic: delay_ms() issues - being shorted on time!
SuperAlpha

Replies: 6
Views: 6543

PostForum: General CCS C Discussion   Posted: Wed May 09, 2007 4:03 pm   Subject: delay_ms() issues - being shorted on time!
#pragma use delay(clock=20M, restart_wdt)
delay_ms(20);

or

#pragma use delay(clock=20M)
delay_ms(20);


I still see a delay from about 16-18ms, never >=20ms.
  Topic: delay_ms() issues - being shorted on time!
SuperAlpha

Replies: 6
Views: 6543

PostForum: General CCS C Discussion   Posted: Wed May 09, 2007 9:27 am   Subject: delay_ms() issues - being shorted on time!
The typo is the word oscillator. This is not necessary. I have tried it with and without the additional parameters in the #use delay.
  Topic: delay_ms() issues - being shorted on time!
SuperAlpha

Replies: 6
Views: 6543

PostForum: General CCS C Discussion   Posted: Wed May 09, 2007 9:25 am   Subject: delay_ms() issues - being shorted on time!
I am using PCH compiler v4.021.
  Topic: delay_ms() issues - being shorted on time!
SuperAlpha

Replies: 6
Views: 6543

PostForum: General CCS C Discussion   Posted: Wed May 09, 2007 8:06 am   Subject: delay_ms() issues - being shorted on time!
Hi.
I am using the built-in delay function and it does not work as advertised. Interrupts are not disabled so I expect the delay to be "at least" 20ms. The clock is 20MHz as measured and ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group