Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 4th August 2008, 08:12 PM   (permalink)
Default timer0 in pic16f84a:

hi,
my name is rasha, and i'm doing my project about controlling the movement of a robot , so it will have smooth way, and don't hit Obstacles,
i'm using an ultrsound sensor to detect any obstacles 10cm away..
and the problem that i'm facing is how to use the pic16f84a MCU to control the tx sending operation (40KHz), and how to use the timer to calculate the time that has been taken for the rx to receive the signal???
and to be more clear i want from the microcontroller the following methods:
1.to send 40KHz signal to the ultrasound tx.
2.to start timer
3.wait untill the ultrasound rx to receive the ultrasound tx signal.
4.stop the timer
5.calculate the distace using the following rule:
speed of sound*(timepassed/2)
my question is how can i program that in c language? i'm not asking anyone to the program for me i just need to know the timer control idea!!
so if you please take a look and try to help me with something, coz i try to google that but the info that i found is in assemply language!!
so is there anyone can help me???!!! i'll be very thankful to u
remas is offline  
Old 4th August 2008, 08:55 PM   (permalink)
Default

Posting your question twice is not going to double your chances. If anything it will reduce them. You need to stick to one thread and not have 10 of the same ones. Nobody is going to help you if you don't help yourself. Try asking your teacher or fellow peer.
Krumlink is offline  
Old 4th August 2008, 11:18 PM   (permalink)
Default

hahaha , i've got to tell u that i didn't see that coming, for a while i thought that i found someone who could help me .
and the only reason for me to post this question again, is because i thought that maybe it has more microcontroller than a robotic design.
so i said to my self to give it a try in the microcontroller section, that's why!!
anyway, thanx for ur advice, and i'll take it in my consideration..

Last edited by remas; 4th August 2008 at 11:19 PM. Reason: the only reason for me to post that question again
remas is offline  
Old 4th August 2008, 11:23 PM   (permalink)
Default

im going to need help with that pic too soon most likely as ive bought one.
joebanks is offline  
Old 5th August 2008, 02:53 AM   (permalink)
Default

Maybe this page will help.

Mike.
Pommie is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Timer0 Prescale lord loh. Micro Controllers 10 8th October 2008 06:14 PM
timer0 sahanaashwin Micro Controllers 10 6th August 2008 07:35 AM
Using timer0 mrfunkyjay Micro Controllers 6 11th July 2008 10:43 AM
TIMER0 - Have I got this right? UTMonkey Micro Controllers 8 14th December 2007 11:08 PM
PIC Timer0 Hesam Kamalan Micro Controllers 7 29th October 2007 03:32 PM



All times are GMT. The time now is 06:14 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker