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

PIC controls

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rxz29



Joined: 08 Nov 2010
Posts: 1

View user's profile Send private message

PIC controls
PostPosted: Mon Nov 08, 2010 9:48 pm     Reply with quote

Hey everyone, I have a small problem. I have a PIC 16F886, which I use to perform a PWM. I want to use this to control a DC motor, so I need to change the duty cycle. Here's the trick, I have a wireless accelerometer, which transmits data across a socket. I have written a program in C that collects the data each second and adds it to an array, so as long as the program is running, the array changes every second. I want to use this data to change the duty cycle of the PIC in real time. Does anyone know how I might be able to import the data (in real time), so that I can control the duty cycle based on the changing values of the array?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group