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 6 matches
CCS Forum Index
Author Message
  Topic: PWM spikes
reddyysnr

Replies: 2
Views: 8514

PostForum: General CCS C Discussion   Posted: Sun Sep 15, 2013 11:50 pm   Subject: PWM spikes
Hi,

I am trying to generate PWM on 16F690. This is the code below.


#include <16F690.h>
#FUSES NOWDT, HS, NOPROTECT, BROWNOUT, MCLR, NOCPD, NOPUT, NOIESO, NOFCMEN
#use delay(clock=4 ...
  Topic: Software PWM 40KHz with variable duty cycle
reddyysnr

Replies: 11
Views: 22554

PostForum: General CCS C Discussion   Posted: Tue Jul 02, 2013 5:24 am   Subject: Software PWM 40KHz with variable duty cycle
Thanks Mike.. I'm on it.. Sorry for being vague.. Next time I have a doubt, I'll post clearly..
  Topic: Software PWM 40KHz with variable duty cycle
reddyysnr

Replies: 11
Views: 22554

PostForum: General CCS C Discussion   Posted: Tue Jul 02, 2013 2:10 am   Subject: Software PWM 40KHz with variable duty cycle
@Ttelmah: That was pretty helpful. Though I didn't understand a few things, I'll use them as pointers to try and explore. I use Proteus to simulate; I'll try out MPLab..

@asmboy: There's nothing at ...
  Topic: Software PWM 40KHz with variable duty cycle
reddyysnr

Replies: 11
Views: 22554

PostForum: General CCS C Discussion   Posted: Mon Jul 01, 2013 6:59 am   Subject: Software PWM 40KHz with variable duty cycle
@Ttelmah,@Mike Walne

Correct me if I'm wrong.

At 8MHz, every instruction cycle takes 0.5uS. (I read on some page that 1/(clock/4) gives the time period of one instruction cycle)
If we need to g ...
  Topic: Software PWM 40KHz with variable duty cycle
reddyysnr

Replies: 11
Views: 22554

PostForum: General CCS C Discussion   Posted: Sun Jun 30, 2013 10:44 am   Subject: Software PWM 40KHz with variable duty cycle
Hi all,

I'm new to PIC and have worked with the basics on PIC. I am trying to explore features like Timers, software PWM etc.

I'm using 16F677 running at 8MHz internal clock. I am trying to gene ...
  Topic: millis()/micros() [Arduino] equivalent in PCW?
reddyysnr

Replies: 2
Views: 11043

PostForum: General CCS C Discussion   Posted: Mon Apr 15, 2013 2:15 am   Subject: millis()/micros() [Arduino] equivalent in PCW?
Hi all,

NewBie to PIC.. I've worked quite a bit on the Arduino Platform and am trying to explore PIC currently.

In arduino, there are functions called millis() and micros(), which return the num ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group