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 8 matches
CCS Forum Index
Author Message
  Topic: Found a great rotary encoder routine
slipknotcc

Replies: 6
Views: 10145

PostForum: General CCS C Discussion   Posted: Fri Mar 12, 2010 4:24 pm   Subject: Found a great rotary encoder routine
Hey again,

One other problem. When the motor spins in reverse the encoder doesn't go negative. Now I know that this needs to be changed:


if( enc_value <= 0 ) {
enc_ ...
  Topic: Found a great rotary encoder routine
slipknotcc

Replies: 6
Views: 10145

PostForum: General CCS C Discussion   Posted: Thu Mar 11, 2010 2:13 am   Subject: Found a great rotary encoder routine
Hey,
Your code worked great but I have a few questions. Here's my code:


#include <16f877a.h>
#device ICD = TRUE
#fuses HS,NOWDT,NOLVP
#use delay(clock=20000000)

#inc ...
  Topic: Whats wrong with my H-bridge code?
slipknotcc

Replies: 1
Views: 2936

PostForum: General CCS C Discussion   Posted: Sun Feb 21, 2010 1:59 am   Subject: Whats wrong with my H-bridge code?
Hey guys,

What I'm trying to do is use 2 Switches (FwdSw, RevSw) to control the direction of my motor. When FwdSw is on and RevSw is off, it goes forward. When FwdSw is off and RevSw in on it rev ...
  Topic: Flex_Lcd.c help
slipknotcc

Replies: 1
Views: 4475

PostForum: General CCS C Discussion   Posted: Mon Feb 15, 2010 2:46 am   Subject: Flex_Lcd.c help
Hey all,

Here is all the include stuffs.

#include <16F877A.h>
#include "flex_lcd.c"
#device adc=8
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay(clock=20000000) ...
  Topic: Controlling PWM with Potentiometer
slipknotcc

Replies: 8
Views: 15027

PostForum: General CCS C Discussion   Posted: Mon Feb 15, 2010 2:42 am   Subject: Controlling PWM with Potentiometer
OK. I figured it out.... stupid mistakes....

Thanks For all the Help!,
Cory
  Topic: Controlling PWM with Potentiometer
slipknotcc

Replies: 8
Views: 15027

PostForum: General CCS C Discussion   Posted: Sun Feb 14, 2010 11:41 pm   Subject: Controlling PWM with Potentiometer
yep looks just like that. Its a 1k pot though. Is that ok? I think I found the problem,
do i need

#device adc=8
  Topic: Controlling PWM with Potentiometer
slipknotcc

Replies: 8
Views: 15027

PostForum: General CCS C Discussion   Posted: Sun Feb 14, 2010 11:18 pm   Subject: Controlling PWM with Potentiometer
1.

#include <16f877A.h>
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay (clock=20000000)


2. Using hardware

3. Using just a protoboard, PIC, crystal, filter caps, and a I ...
  Topic: Controlling PWM with Potentiometer
slipknotcc

Replies: 8
Views: 15027

PostForum: General CCS C Discussion   Posted: Sun Feb 14, 2010 10:55 pm   Subject: Controlling PWM with Potentiometer
Hey all,

I'm using the PIC 16f877A.

What I'm trying to do here is control the speed of a motor using PWM and a potentiometer hooked up to an A/D port. When I run the program the variable " ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group