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 12 matches
CCS Forum Index
Author Message
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Mon May 19, 2008 3:14 pm   Subject: One problem solved, two more to go (Counters and timers)
hrmm, i think i can make use the interrupt instead of delay after all.

Probably every 10ms i'll check whether the current input is the same as current output, and if it's not the same it definitely ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Mon May 19, 2008 3:05 pm   Subject: One problem solved, two more to go (Counters and timers)
Instead of using SPI for the Master/Slave configuration, i plan to use the pin outputs to signal my other PIC16F877A(lets call it PIC 2) which would be used to control the timing for the traffic light ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Mon May 19, 2008 2:40 pm   Subject: One problem solved, two more to go (Counters and timers)
Decided to change the topic for my main post since it's not relevant anymore.

Anyway, i managed to work the problem concerning the interrupts thanks to the forumers that were very helpful in helpin ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Sun May 18, 2008 3:14 pm   Subject: One problem solved, two more to go (Counters and timers)
AHHHHHHHHHH. It's a silly mistake that took me almost two days to realise.
I changed the value of the processor clock frequency in the simulation before this, and i did not undo the change.
The timi ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Sun May 18, 2008 2:54 pm   Subject: One problem solved, two more to go (Counters and timers)
Right now i am using Proteus Isis 7 for the simulation task.
I just did a read through of the reference files for #fuses and #use delay statements.

Lets say if i have a crystal oscillator with a f ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Sun May 18, 2008 2:00 am   Subject: One problem solved, two more to go (Counters and timers)
Thx PCM P, Int16 works :D

But i have a question.
Does the number of tasks in the main loop affect the timing of my interrupts?
Because according to my code, 1000th interrupt should be 10 seconds ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Sat May 17, 2008 5:20 am   Subject: It works, but
So far i have been able to turn make the LEDs blink after a certain period of time.
But new problems has cropped up.

1) Instead of 1000th interrupt (10 seconds), the LEDs lights up at 5seconds aft ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 10:49 pm   Subject: One problem solved, two more to go (Counters and timers)
Hey there Mr PCM Programmer.
Based on your code posted at the following link,
if(gc_buttons_timer)
return;
else
gc_buttons_timer = BUTTONS_TIMER_TICKS;
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 10:39 am   Subject: here goes nothing
Ok guys, here's something that i came up with (using PCM Programmer's earlier program codes)

I still couldnt get the code to work as when i simulate it using Proteus Isis, LEDs connected to B0,B1,B ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Fri May 16, 2008 1:59 am   Subject: One problem solved, two more to go (Counters and timers)
PCM Programmer, according to the codes in the link you posted earlier, is it possible to detect how many times the interrupt has happened?

I want to count until the 1000th interrupt. As long as PIN ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Thu May 15, 2008 1:44 pm   Subject: One problem solved, two more to go (Counters and timers)
Yup, i've gotta agree with you that a single pedestrian might cause the sensor to bounce on/off a hundred times.

What if there's a certain small area that the pedestrian is supposed to stand(to act ...
  Topic: One problem solved, two more to go (Counters and timers)
CCSNewbie

Replies: 20
Views: 17951

PostForum: General CCS C Discussion   Posted: Thu May 15, 2008 7:09 am   Subject: One problem solved, two more to go (Counters and timers)
Hi guys first of all thanks for taking the time to read this thread.
I have searched the entire forums and although i found some codes that could assist me in my problem i still could not put the pi ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group