Author |
Message |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Tue Sep 16, 2008 3:29 am Subject: Main loop locks up after using Interrupt |
WOHOOOU!!!!
Now I know whats wrong. I had a hunch that there was something wrong with getting the time but never actually gave it a try. However when Wayne_ asked to give it a try, it further ... |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Mon Sep 15, 2008 10:52 pm Subject: Main loop locks up after using Interrupt |
I practice a somewhat similar technique. Instead of using a LED I used printf to the PC. However in this case, I deduced that the onLCDbacklight() has no problems since it is able to turn on the backl ... |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Mon Sep 15, 2008 7:44 pm Subject: Main loop locks up after using Interrupt |
Thanks for the reply.
What makes you think the main loop stops working ?
Does the button no longer turn the backlight on ?
With the backlight off, can you still makeout the time and does it stop in ... |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Mon Sep 15, 2008 7:06 pm Subject: Main loop locks up after using Interrupt |
Thanks for the reply.
The obvious comment, is that the fault is not here, but in 'DoSomething'. If this never returns, the code will behave as you describe....
The function returns alright, but on ... |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Mon Sep 15, 2008 12:41 am Subject: Main loop locks up after using Interrupt |
Thanks for the prompt reply . Took some time to try to understand what you're trying to tell me though.
Correct me if I'm wrong, the tick timer is just a normal timer (timer0, 1, 2, etc.) right? If ... |
Topic: Pullups |
elm383
Replies: 1
Views: 2836
|
Forum: General CCS C Discussion Posted: Sun Sep 14, 2008 11:20 pm Subject: Pullups |
Depends on the PIC model you are using. Try looking in the CCS HELP (press F1 and search for PORT_x_PULLUPS ( ) ). If I'm not mistaken, for your case, you can't enable individual bits and only one con ... |
Topic: Main loop locks up after using Interrupt |
elm383
Replies: 12
Views: 10547
|
Forum: General CCS C Discussion Posted: Sun Sep 14, 2008 11:04 pm Subject: Main loop locks up after using Interrupt |
Hi,
I am very puzzled here. This is the scenario.
I'm turning on a LCD back light every time there is a button press.
//Inside the main loop
while(1)
{
CurrTime = getTi ... |
|