View previous topic :: View next topic |
Author |
Message |
Joan
Joined: 29 May 2004 Posts: 41 Location: Barcelona, Spain
|
Re: RE: |
Posted: Fri Jun 25, 2004 6:16 am |
|
|
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 _________________ I Came. I Saw. I Won. |
|
|
iou_82
Joined: 14 Jun 2004 Posts: 7
|
RE: Blinking LED |
Posted: Wed Jun 30, 2004 10:47 pm |
|
|
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
|
Re: RE: Blinking LED |
Posted: Thu Jul 01, 2004 2:36 am |
|
|
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 _________________ I Came. I Saw. I Won. |
|
|
|