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: Why Timer1 overflows don't count during delay_ms ?
dnacid

Replies: 6
Views: 7823

PostForum: General CCS C Discussion   Posted: Mon Jul 09, 2012 10:59 am   Subject: Why Timer1 overflows don't count during delay_ms ?
Embarassed I'am sorry. it was my mistake.

there was this in my code:


#INT_RB
void show_something(){
if (kbhit(CCT1)) {
lcd_putc(fgetc(CCT1) ...
  Topic: Why Timer1 overflows don't count during delay_ms ?
dnacid

Replies: 6
Views: 7823

PostForum: General CCS C Discussion   Posted: Mon Jul 09, 2012 10:30 am   Subject: Why Timer1 overflows don't count during delay_ms ?
In other words, the problem is related to the LCD code not shown in your post.

i use only LCD.h and because RS is on GND i ve no Read methods in LCD File. So there is no need to post the standard L ...
  Topic: Why Timer1 overflows don't count during delay_ms ?
dnacid

Replies: 6
Views: 7823

PostForum: General CCS C Discussion   Posted: Mon Jul 09, 2012 9:39 am   Subject: Why Timer1 overflows don't count during delay_ms ?
I tested now my code without LCD code. I used RS232 and i got correct counts when i use any timer irq. Only when i try to output the counts to lcd display, i got wrong counts.

My Testszenario looks ...
  Topic: Why Timer1 overflows don't count during delay_ms ?
dnacid

Replies: 6
Views: 7823

PostForum: General CCS C Discussion   Posted: Mon Jul 09, 2012 3:17 am   Subject: Why Timer1 overflows don't count during delay_ms ?
I use Timer1 and count the overflows. All works, but when I use delay_ms in my main loop, then it will stop to count the timer overflows until delay finished.

I use:
PIC 18F45k22
20MHz Crystal
C ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group