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 15 matches
CCS Forum Index
Author Message
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 4:13 am   Subject: Timer
Hi

Below is my exact code. All im doing is switching on and off relays at a specific time (secs==0 && mins==0 && hrs==1). After the 2nd time hrs == 1(after 24hrs), the program execu ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 1:51 am   Subject: Timer
Hi

I want the counter to count to say 2hrs than to run the code below. In code, it works but then the counter stops counting for the duration it takes to complete the while loop.




{
s ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2005 2:34 am   Subject: Timers
Hi All

I have a problem with me code. Everything works fine, my clock works 100%. The problem is, when say secs==10, it starts executing the code .... but the timer seems to stop counting than afte ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Fri Mar 11, 2005 1:18 am   Subject: Timers
Hi

I finally got my timer to work. The problem is that the event time happened, the program just loops. How can I make it exit till the next time.


#include <18F452.h>
#fuses HS,NOWDT,NO ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2005 7:25 am   Subject: Timers
Sorry to be a pain - Im still lost

Ok lets start over - using my code, How do I set off the timer to run some code after 2hrs using a 4Mhz and a 20Mhz crystal? What must I change in my code so that ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2005 2:10 am   Subject: Timer
Hi

1. (4000000/(4*1*65536)) - how do we get the figures 4*1? - how will my calculation change if I use a 20MHz Crystal?
2. Will this code work? I want a delay for 2hrs?


#include <18F452. ...
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2005 1:01 am   Subject: Timers
Hi

Ok now say I want this timer to do something say after 2hrs - how do I do this?

Thanks for all the info guys
  Topic: Timers
bhyatyab

Replies: 19
Views: 27445

PostForum: General CCS C Discussion   Posted: Tue Mar 08, 2005 7:58 am   Subject: Timers
Hi

I still have a problem using timers

Could someone please have a look at my code. Im using a 18F452 at a frequncy of 4mhz. After 20secound an led should flash but it doesn't. The program do ...
  Topic: Timers
bhyatyab

Replies: 7
Views: 12295

PostForum: General CCS C Discussion   Posted: Mon Mar 07, 2005 5:34 am   Subject: Timers
Clock rate is 20Mhz
  Topic: Timers
bhyatyab

Replies: 7
Views: 12295

PostForum: General CCS C Discussion   Posted: Mon Mar 07, 2005 3:40 am   Subject: Timers
Hi

Sorry, Im using a 18F452. I want to implement a timer - something must happen after 24hrs - can you guide me.

Thanks
  Topic: Timers
bhyatyab

Replies: 7
Views: 12295

PostForum: General CCS C Discussion   Posted: Mon Mar 07, 2005 1:32 am   Subject: Timers
Hi

I need some help using timers. Say I want some code to run after 10 minutes - will this work?

int secs;
int mins;
int hrs;



#int_RTCC
RTCC_isr() {

set_timer1(0*8000);



}

...
  Topic: Interrupt
bhyatyab

Replies: 1
Views: 4960

PostForum: General CCS C Discussion   Posted: Fri Feb 18, 2005 3:26 am   Subject: Interrupt
Hi

I need some help with interrupts. I want a delay. I want to use an interrupt on pin change to break this delay - RB0.

Please can any one help me as i don't know how to use it. Thanks


# ...
  Topic: Voltage change
bhyatyab

Replies: 3
Views: 7438

PostForum: General CCS C Discussion   Posted: Tue Feb 08, 2005 4:12 am   Subject: Voltage change
Hi

I want to connect a PIC to a 3.7V battery which is charged by a car battery (12v.) How do I go about detecting if the car battery is 0v and maybe flash an LED. Can some one please send me the c ...
  Topic: Sending AT Commands via RS232
bhyatyab

Replies: 5
Views: 12840

PostForum: General CCS C Discussion   Posted: Mon Feb 07, 2005 4:10 am   Subject: Sending AT Commands via RS232
Hi

Im am trying to send AT Commands via RS232 to a cell phone. The code below does not seem to work. Can anyone please help me.

Thanks



#include <18F452.h>
#device ICD=TRUE
#device ...
  Topic: Pic and cell phones
bhyatyab

Replies: 2
Views: 6562

PostForum: General CCS C Discussion   Posted: Wed Jan 26, 2005 3:54 am   Subject: Pic and cell phones
Hi

Im new at this PIC stuff. I want to send an sms from a PIC 18f452 to a nokia cell phone. Please can you give me the coding and the data cable info.

Thanks
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group