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

sensor distance using hyper terminal connect by RS232

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



Joined: 14 Mar 2010
Posts: 3

View user's profile Send private message

sensor distance using hyper terminal connect by RS232
PostPosted: Tue Apr 20, 2010 3:57 am     Reply with quote

hello,
Can someone teach me how to do coding using CCS and 16F877A as microcontroller to display the voltage and distance on Hyperterminal.
As an information, sensor that been used is an ultrasonic type and can produce distance 1 inches in 10mV, and also 8 bit at microcontroller.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Tue Apr 20, 2010 6:36 am     Reply with quote

This is a good learning project, but you will have to do it in several steps.

Start by looking at the CCS example programs. Figure out how to send a message from the PIC to your PC by sending a fixed message like "hello world".

Next learn to send numbers, and about the different types of numbers. Try making the PIC count slowly so you can watch it on the PC.

Then learn how to use the A/D converter to turn voltages into numbers.

Finally learn to get data from your ultrasonic sensor.

This will all take time but you will learn a lot. No one here is going to write code for you. But if you get stuck, post your code that doesn't work we may be able to tell you why.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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