We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello there, I am using a AT89C52 microcontroller and a ADC0808 Analog to digital converter. Could anyone tell me where i can find the code for interfacing the two. Also the code to generate 38khz frequency on any 4 pins of the microcontroller. Thanks in advance.
Could anyone tell me where i can find the code for interfacing the two. Also the code to generate 38khz frequency on any 4 pins of the microcontroller this is a forum for developers, not copy artists Erik
Thankyou Erik, I understand what you say and would never do this crime again... I am running short of time so i thought this medium would be of some help. Anyways thanks for all the help. Regards, Rohit
"I am running short of time..." So how far have you got with this so far, then?
I am running short of time which school/college/university do you attend? Erik
Could anyone tell me where i can find the code for interfacing the two. Strangely enough, searching for "adc0808" with google yields this as the 3rd result: http://www.8052.com/users/brunomarcio/ Also the code to generate 38khz frequency on any 4 pins of the microcontroller. I don't all of the pins of the microcontroller can be used as outputs. Which pins are you referring to ?
Hello everybody ! thanks for the prompt responses. I am from India doing my Masters in Computer Applications.. There are 6 semesters in this masters program and in the 6th sem I have to submit a project.. Where everybody goes in for a commercial management system as their project ( Library Mgt System, Billing system etc.) I decided to venture into robotics. I came across an event called micromouse and i decided to do it. Having no background in electronics I still went ahead and did the project. I have completed all the electronics required including the PCB artwork and the hardware interfacing of the ADC0808. All the code to control my robot is also complete using Keil C. I am using stepper motors and they work just fine. There is some part of Artificial Intelligence that i have embedded onto this robot.( Shortest path algo) My simulation program works well and now i need to implement it on the machine. I am using the ADC to measure the distance usign IR sensors. To be specific to measure the reflected intensity of IR. Now the thing that I am not finding information about is to generate a Clock frequency for the ADC ( about 500khz) and frequency for IR modulation to reduce the effect of ambient light. I need to modulate it at 38 khz. I want to generate the freq using the port 3 of the microcontroller(AT89C52). Also the procedure to read the ADC for its digital output. Prior to posting my first message on this forum I have gone through Mr. Bruno's article on interfacing the ADC, but I could not make it work. Any help would be great..as I have only 4-5 days.. Thanking you in advance.. Regards, Rohit
as I have only 4-5 days..
... and who got you in that mess?
Erik
It is me who got myself into wherever I am .. and that is why I am trying to find a solution.. Thankyou for your response, Regards, Rohit
I am from India doing my Masters in Computer Applications. Are you sure it is in "Computer Applications", not "Copying"
We had an applicant here with a MS that stated "I am very familiar with the '51" and listed projects he had done. Asked "what does it mean that a SFR address is divisible by eight" he replied "that it is word aligned" also, according to him IDATA meant "internal data". I would not be surprised if he now "works" for some company where management have no idea which end is the front of a byte.
Mr. Erik, It has been a pleasure hearing your comments.. thank you very much for all the contribution from your end on solving my problem. It was enlightening to hear from you. Thankyou once again. Regards and lots of respect, Rohit
thank you very much for all the contribution from your end on solving my problem. What I did was to point out to you that your problem (cheating? laziness? procrastination?) has nothing to do with Keil tools or the 8051. Well, the first step in solving a problem is recognizing what it is and I am glad having helped you there. Erik
Hi Rohit, I got a suggestion for U, why dont u try using AT90s8535, this IC has on chip ADC. So you wouldnt have to worry about the clock freqency at all. As far as reading adc0808 is concerned, better read the data sheet. That should be the best help. For generating frequencies, try using data sheets for the Mc you are using. Internal clocking system must give you some kind of solution. Jinen
I got a suggestion for U, why dont u try using AT90s8535 This is insulting beyond measure. first he is insusting Rohit by calling him 'micro', then he suggest an AVR chip. If Rohit were to use a chip with "on chip ADC" there are tons of '51 derivatives, so were Rohit to switch he could use one such Erik
Thankyou guys for all the help. Special thanks to you Mr.Erik. I was able to find the error in my circuit and it turned out to be a component failure. I finished my project successfully and it turned out to be great. thankyou once again, Bye, Regards, Rohit Menon
Could you give me the implementation of adc convertor by 8051. thanks