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 4 matches
CCS Forum Index
Author Message
  Topic: CCP PWM Strange behavior - Brief failing
mellemhere

Replies: 8
Views: 19555

PostForum: General CCS C Discussion   Posted: Thu Feb 15, 2018 7:27 am   Subject: CCP PWM Strange behavior - Brief failing
Hi! Thank you so much for the reply.

I ran your code and got no output. After a little bit of debugging I found out that the following two lines were the cause of this.


//Here it has cha ...
  Topic: CCP PWM Strange behavior - Brief failing
mellemhere

Replies: 8
Views: 19555

PostForum: General CCS C Discussion   Posted: Wed Feb 14, 2018 3:36 pm   Subject: CCP PWM Strange behavior - Brief failing
This is my listing:


CCS PCM C Compiler, Version 5.008, 5967 14-fev-18 19:28

Filename: main.lst

ROM used: 234 words (3%)
...
  Topic: CCP PWM Strange behavior - Brief failing
mellemhere

Replies: 8
Views: 19555

PostForum: General CCS C Discussion   Posted: Wed Feb 14, 2018 3:27 pm   Subject: CCP PWM Strange behavior - Brief failing
Hi Jay! Thanks for the reply

I have performed the changes you sugested, changed the pr_value to an unsigned int16 and added the L after the 33. As you can see this is my code right now:



shor ...
  Topic: CCP PWM Strange behavior - Brief failing
mellemhere

Replies: 8
Views: 19555

PostForum: General CCS C Discussion   Posted: Wed Feb 14, 2018 2:49 pm   Subject: CCP PWM Strange behavior - Brief failing
Hello all,

I am trying generate a PWM using CCP and change its frequency on the fly, going from 1.15KHz to 3.28kHz in 180ms.

I am using:

PIC: 16F887
Frequency: 4MHz (internal)
Compiler: CCS ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group