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: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Thu Feb 12, 2015 6:03 am   Subject: adc -> pwm problems
i've started with one power pwm, and was implementing one by one, i only had problem with the ccp ports, and i dont know why, because i already used ccp ports before, and dont had any error like that.
  Topic: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2015 4:31 pm   Subject: adc -> pwm problems
unfortunately my program has to be complex, I'm controlling 14 hydraulic coils with a astounding accuracy, and all this things with a series of parameters of a volvo hydraulic motor, its not easy for ...
  Topic: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2015 9:23 am   Subject: adc -> pwm problems
I solve the problem!, i change int to float and it works perfectly.
thank you all guys!

here the code fixed:

#include <18f4431.h>
#device adc=10
#fuses INTRC_IO, NOWDT, NOPROTECT, NOBRO ...
  Topic: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2015 7:14 am   Subject: adc -> pwm problems
@Mike Walne
so, all working fine, i realy dont know what happening, when i used another compiler. it happens also, but i rewrote the code and works fine ( i realy dont know why).

if you can, i ask ...
  Topic: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2015 6:14 am   Subject: adc -> pwm problems
the float is to another thing, im using power control pwm in this code, and need the float to this works.

@temtronic
thx for the tip, i will try 8bit conversion

EDIT: it doest work, my pic only ...
  Topic: adc -> pwm problems
luanfagu

Replies: 15
Views: 24625

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2015 1:58 am   Subject: adc -> pwm problems
So, I'm making a code for job, my program read a potentiometer and returns a 10 bit value that i convert to a number (0~255) and put this number as a pwm duty cycle.
My problem is that comes to some ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group