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: Newbie: Timer1 Problem
Dale Stewart

Replies: 2
Views: 5620

PostForum: General CCS C Discussion   Posted: Fri Jul 15, 2005 11:50 pm   Subject: Newbie: Timer1 Problem
Aha! Cool - that worked!

Thanks PCM for you time and effort. Smile

That's 2 I owe you! Wink
  Topic: Newbie: Timer1 Problem
Dale Stewart

Replies: 2
Views: 5620

PostForum: General CCS C Discussion   Posted: Fri Jul 15, 2005 9:32 pm   Subject: Newbie: Timer1 Problem
Hi

I posted regarding timer0:


// This program demonstrates 16-bits timer/counter timer1
// on a 16F876A

#include <16F876A.h>

#fuses NOWDT, NOLVP, HS, PUT, NOPROTECT

#use delay& ...
  Topic: Newbie: Timer 0 Timing Correct?
Dale Stewart

Replies: 6
Views: 8596

PostForum: General CCS C Discussion   Posted: Fri Jul 15, 2005 3:58 am   Subject: Newbie: Timer 0 Timing Correct?
Hi ck

Yep - I understand now ... you explained it very well - thanks heaps!!!

I am trying to understand a code example to use an SRF04 sonar sensor, so I need to work through timers, interrupts, ...
  Topic: Newbie: Timer 0 Timing Correct?
Dale Stewart

Replies: 6
Views: 8596

PostForum: General CCS C Discussion   Posted: Thu Jul 14, 2005 10:04 pm   Subject: Newbie: Timer 0 Timing Correct?


Notice how I formatted my printf statement. I put a ".4" before the f to show only 4 decimal places. (I'm not sure what the '2' is for though).


Hi valemike.

Thanks for your help and effort ...
  Topic: Newbie: Timer 0 Timing Correct?
Dale Stewart

Replies: 6
Views: 8596

PostForum: General CCS C Discussion   Posted: Thu Jul 14, 2005 9:42 pm   Subject: Newbie: Timer 0 Timing Correct?
Transmitting the data will take most of the time, so the expected execution time should be around:
(17 characters * 10 bits per character * 10 lines) / 9600 baud = 0,177sec.

Your timer ticks eve ...
  Topic: Newbie: Timer 0 Timing Correct?
Dale Stewart

Replies: 6
Views: 8596

PostForum: General CCS C Discussion   Posted: Thu Jul 14, 2005 4:50 am   Subject: Newbie: Timer 0 Timing Correct?
Hi

Just want to know if I am on the right track understanding the basics of how timing works.


#include <16F876A.h>

#fuses NOWDT, NOLVP, HS, PUT, NOPROTECT

#use delay( clock = 8 ...
  Topic: Help: Can't Get Function to Work for PWM
Dale Stewart

Replies: 3
Views: 5604

PostForum: General CCS C Discussion   Posted: Fri Jul 08, 2005 11:12 pm   Subject: Help: Can't Get Function to Work for PWM
Hi PCM

Thanks heaps for your help and effort!

Cool - it works!

I am just learning C and am rusty on functions- it was a dumb mistake. Embarassed

Yeah I guess I do use a lot of asterisks to t ...
  Topic: Help: Can't Get Function to Work for PWM
Dale Stewart

Replies: 3
Views: 5604

PostForum: General CCS C Discussion   Posted: Fri Jul 08, 2005 10:08 pm   Subject: Help: Can't Get Function to Work for PWM
Hi

I am a newbie to PICs and learning CCS C.

My project is a small robot, and I want to write a simple function to control the speed and direction of DC motors using PWM.

The code I wrote be ...
  Topic: PCM Compiler Giving Me Junk
Dale Stewart

Replies: 10
Views: 12490

PostForum: General CCS C Discussion   Posted: Thu Apr 21, 2005 7:12 pm   Subject: Dumby
Hi

Thankyou to everone who posted their helpful comments. I prefer to find the answer by research first by looking at the manual, search the posts, WWW, etc. Then if I am stuck its good to know the ...
  Topic: PCM Compiler Giving Me Junk
Dale Stewart

Replies: 10
Views: 12490

PostForum: General CCS C Discussion   Posted: Thu Apr 21, 2005 3:31 am   Subject: Thanks Heaps
Hi PCMP

Guess what? it worked - COOL! Thanks Very Happy

Now I know why it worked before, because I must have tried 8MHz for XT. I got confused when I checked out the manual (p 61)

#USE DELAY
...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group