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 support@ccsinfo.com

help with the coding of a line follower

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







help with the coding of a line follower
PostPosted: Fri Jun 13, 2008 3:05 am     Reply with quote

hey guys. I really need some help urgently. I am trying to build a line follower robot. I am using three sensors connected to the pin2, 3 and 4 of the pic16F877. has anyone got some c source code for this type of thing. Then I also first want to read and then print on the screen the value on these pins. I use the #use rs232 statement as well as the printf statements but when i run the program i see nothing on the screen. I am using the ccs compiler. Where are you supposed to see the output?
Please help.....really appreciate it Smile
cparsons



Joined: 09 Jan 2008
Posts: 5

View user's profile Send private message

PostPosted: Fri Jun 13, 2008 9:30 am     Reply with quote

I don't have any such source code.

When you say you don't see anything on the screen, can you be a bit more specific about how the "screen" is connected to the PIC?

On my PIC18LF4580 I use the debug port using printf and including the lines
Code:

#use delay(clock=14745600)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

Pins C6 and C7 then go through an interface chip to a serial port which I connect to my PC. My PICDEM2 Plus development board needs a "straight" serial cable i.e. not a cross over. My PC is set to communicate at 9600 baud, 1 stop bit, no parity.

The frequently asked questions and compiler documentation might also be useful. e.g. my compiler documentation includes the FAQs How does the PICĀ® connect to a PC? and Why is the RS-232 not working right?.
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