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 support@ccsinfo.com

Newbie
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Joan



Joined: 29 May 2004
Posts: 41
Location: Barcelona, Spain

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger

Re: RE:
PostPosted: Fri Jun 25, 2004 6:16 am     Reply with quote

Joan wrote:
HI, Joan

B) A more acurate solution is to use 3 Timers with their interrupts, but in your case this solution is not possible because F628 doesn't have 3 Timers interrupts, it only have Timer0 interrupt.


I correct 2 errors:

1.- 16F628 have 3 timers (timer0, timer1, timer2) ... then you can blink each LED with each Timer. But I think the best solution is to do all with timer0.

2.- Inside the isr routine you must increment Counter variable and interchange LED_A for LED_C if led blinking rates aren't correct.

Best Regards;
Joan Idea
_________________
I Came. I Saw. I Won.
iou_82



Joined: 14 Jun 2004
Posts: 7

View user's profile Send private message

RE: Blinking LED
PostPosted: Wed Jun 30, 2004 10:47 pm     Reply with quote

Joan,

Thanks for the tips but i still cannot get it done.

I have some trouble with the code. it say no isr_timer0

what does that mean? As I am still a beginner i dun really understand that.

Thank you
Best Regards
Eugene
Joan



Joined: 29 May 2004
Posts: 41
Location: Barcelona, Spain

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger

Re: RE: Blinking LED
PostPosted: Thu Jul 01, 2004 2:36 am     Reply with quote

iou_82 wrote:
Joan,

Thanks for the tips but i still cannot get it done.

I have some trouble with the code. it say no isr_timer0

what does that mean? As I am still a beginner i dun really understand that.

Thank you
Best Regards
Eugene


Eugene:
are you declaring the isr correctly ? I think this is a simple problem ... look in the examples suplied with your CCS Compiler how is it declared ...

Best Regards;

Joan Idea
_________________
I Came. I Saw. I Won.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group