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 10 matches
CCS Forum Index
Author Message
  Topic: Using Timer1 of 16F877A to count seconds
Patronus

Replies: 9
Views: 16198

PostForum: General CCS C Discussion   Posted: Tue Jun 12, 2012 1:31 pm   Subject: Using Timer1 of 16F877A to count seconds
I'm sorry... I haven't understand the question..
Bad mistake. I'll be more careful.
  Topic: Using Timer1 of 16F877A to count seconds
Patronus

Replies: 9
Views: 16198

PostForum: General CCS C Discussion   Posted: Tue Jun 12, 2012 12:49 pm   Subject: Using Timer1 of 16F877A to count seconds
Gabriel, anyway I should be able to see the first time it happens right? The problem was that I couldn't see that happening. Now after doing what I've mentioned in previous reply, I can see it happeni ...
  Topic: Using Timer1 of 16F877A to count seconds
Patronus

Replies: 9
Views: 16198

PostForum: General CCS C Discussion   Posted: Tue Jun 12, 2012 12:05 pm   Subject: Using Timer1 of 16F877A to count seconds
Hello PCM Programmer... if I either add #int_rtcc routine or remove

setup_timer_0(RTCC_INTERNAL|RTCC_DIV_256);
enable_interrupts(INT_RTCC);

lines, the code works..

That was the problem I ...
  Topic: Using Timer1 of 16F877A to count seconds
Patronus

Replies: 9
Views: 16198

PostForum: General CCS C Discussion   Posted: Tue Jun 12, 2012 11:51 am   Subject: Using Timer1 of 16F877A to count seconds
Gabriel,
Thanks for the reply.
yeah, checking it inside isr is better. Anyway I don't get a 1Hz output signal..

When my program runs, at the beginning timer is set and when number of interrupts ...
  Topic: Using Timer1 of 16F877A to count seconds
Patronus

Replies: 9
Views: 16198

PostForum: General CCS C Discussion   Posted: Tue Jun 12, 2012 10:48 am   Subject: Using Timer1 of 16F877A to count seconds
I want to count seconds using timer1 of 16F877A. I used 4 as the prescaler. So the number of interrupts per second = 20000000/(4x4x65536).
To check whether this works, I wrote the following code.

...
  Topic: Setting ADC clock
Patronus

Replies: 13
Views: 21257

PostForum: General CCS C Discussion   Posted: Thu Jun 07, 2012 8:45 am   Subject: Setting ADC clock
Ok sir. Thank you very much.. Yes they know it. I'll get data from them and try to write the code. After writing that part and simulating, if it causes problems I hope you'll help me.
  Topic: Setting ADC clock
Patronus

Replies: 13
Views: 21257

PostForum: General CCS C Discussion   Posted: Thu Jun 07, 2012 7:30 am   Subject: Setting ADC clock
Thank you Mike Walne and Ttelmah.

Ttelmah, Our project is to count the number of people entering a room, display it in a lcd display. And control the fan speed according the temperature inside the ...
  Topic: Setting ADC clock
Patronus

Replies: 13
Views: 21257

PostForum: General CCS C Discussion   Posted: Wed Jun 06, 2012 7:31 pm   Subject: Setting ADC clock
Thanks again. Smile

I had already done this part. Smile Actually what I asked was how to begin that AC motor controlling part. Apologize for not being clear.
But I had kept following lines which were g ...
  Topic: Setting ADC clock
Patronus

Replies: 13
Views: 21257

PostForum: General CCS C Discussion   Posted: Wed Jun 06, 2012 10:11 am   Subject: Setting ADC clock
hello PCM programmer, My PIC is 16F877A and frequency is 20 MHz.
Thanks both PCM Programmer and Ttelmah.

I read the datasheet.
According to that what I finally decided was, to satisfy the minimu ...
  Topic: Setting ADC clock
Patronus

Replies: 13
Views: 21257

PostForum: General CCS C Discussion   Posted: Tue Jun 05, 2012 6:23 am   Subject: Setting ADC clock
I'm new to PIC programming.
Can someone please tell me what are the factors that I should be concerned about when setting ADC and timer clock inputs. I have given a project to complete but this is no ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group