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: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Thu Jun 25, 2009 7:19 am   Subject: ok i need some help again
We are getting some erratic behavior with the robot.
We are using this driver (2 of them - each one can drive 2 motors and we have 3 motors) :
#include <18F4431.H>

#device ADC=10

//#fus ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Tue Jun 09, 2009 12:26 am   Subject: 2 general questions about using a PIC processor
Thanks a lot guys.
We have managed to get it to work.
Somebody helped us and actually changed some of the stuff you are talking about before seeing what you wrote....
and the logic of the program s ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2009 3:27 am   Subject: 2 general questions about using a PIC processor
I'm having problems with my program and I'm in dire need for help.

This is my program :
#include <18F4431.H>

#device ADC=10

//#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#fuses ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Fri May 29, 2009 3:13 am   Subject: 2 general questions about using a PIC processor
Yes, that is the sequence. I would have to look at your chip to see if 20us is the right time length. Usually I do math and storage on the reading I just got and the math takes more time than the re ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Thu May 28, 2009 8:12 am   Subject: 2 general questions about using a PIC processor
You want to

1) select AN0
2) delay
3) convert AN0
4) select AN1
5) delay
6) convert AN1
7) select AN2
8) delay
9) convert AN2

The delay needs to be between switching the A/D mux and run ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Thu May 28, 2009 12:28 am   Subject: 2 general questions about using a PIC processor
Thank you PCM programmer.

I wanna make sure I get something, if I have 3 IR sensors, I connect them to AN0, AN1, AN2...
then I have my pic do the A/D conversion on the AN0, delay then read, conver ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Tue May 26, 2009 2:01 pm   Subject: 2 general questions about using a PIC processor
If you bought the board with the IR sensors and motor driver on it,
post a link to the webpage for the board. If you're building it yourself
then post the manufacturer and part numbers of the IR ...
  Topic: 2 general questions about using a PIC processor
elasticman

Replies: 16
Views: 13633

PostForum: General CCS C Discussion   Posted: Tue May 26, 2009 12:17 pm   Subject: 2 general questions about using a PIC processor
Hello all, I'm pretty new to all of this so I hope my questions don't sound too stupid:)

I'm working on my final project for my first degree in mechanical engineering and I have designed and built ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group