| Author |
Message |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 6:05 i am doing ADC |
|
|
|
|
| www.google.com
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
30 Jun 2009 6:07 Re: i am doing ADC |
|
|
|
|
| u r giving mi rubbish ans
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 12:29 Re: i am doing ADC |
|
|
|
|
| jason1987 wrote: |
| u r giving mi rubbish ans |
No. I'm telling you to read a book on the subject.
Waiting for other folks to do your homework for you is fools game. Unless you start taking your homework seriously you have a decent chance of failing that course.
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
30 Jun 2009 15:25 Re: i am doing ADC |
|
|
|
|
| i also noe. but i dun understand the code is writing
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 16:16 i am doing ADC |
|
|
|
|
| Learn some C and the code will make sense. It's odd your course prerequistes didn't require C
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
30 Jun 2009 16:29 Re: i am doing ADC |
|
|
|
|
| jus ans mi u noe anot
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 16:33 Re: i am doing ADC |
|
|
|
|
| jason1987 wrote: |
| jus ans mi u noe anot |
I Googled that gibberish and got this.
http://alexlaw.blog.friendster.com/
Care to try again in English please.
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
30 Jun 2009 17:17 Re: i am doing ADC |
|
|
|
|
u noe wat my code doing anot?
Added after 11 minutes:
u very lousy in programming.. jus sae u noe anot
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 17:35 Re: i am doing ADC |
|
|
|
|
I'm pretty good at programming. And yes I do understand the code you posted earlier. But it's not my school assignment it's yours so it's you that needs to learn to understand it.
Added after 9 minutes:
| jason1987 wrote: |
u noe wat my code doing anot?
Added after 11 minutes:
u very lousy in programming.. jus sae u noe anot |
Translator says.
| Quote: |
Do you know what my teachers code is doing?
I am very lousy in programming.. I will probably have to repeat a grade. |
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
30 Jun 2009 17:52 Re: i am doing ADC |
|
|
|
|
| den jus tell mi what does the code do first. .cos is urgent
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
30 Jun 2009 17:54 i am doing ADC |
|
|
|
|
I thought it was due last Monday.
I suggest you stop wasting your time online and start studying C
Which part of the code are you having trouble with?
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
01 Jul 2009 2:28 Re: i am doing ADC |
|
|
|
|
cos i quite urgent so i need u to tell mi the code is doing what. den from there i will slowly learn by myself
Added after 5 minutes:
i dunno the code is doing what.. jus tell mi first, can?
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
01 Jul 2009 16:30 i am doing ADC |
|
|
|
|
How's the studying going? The code is commented so it's not to tough to figure out.
Hint: The {} indicate a block of code.
PS "me" is not spelled "mi"
Don't they have electronic forums in Japan?
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
01 Jul 2009 16:35 Re: i am doing ADC |
|
|
|
|
| jus tell mi the code tis code meaning unsigned int index=0, total_period= (unsigned int) 255*256, on_time=0; mean what? i dunno what is the meaning. is urgent
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
01 Jul 2009 17:11 i am doing ADC |
|
|
|
|
That line sets up your variable types and initial values
index = 0
total_period = 65280
on_time = 0
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
02 Jul 2009 16:59 Re: i am doing ADC |
|
|
|
|
| can give more detail? explain more pls.. i really lousy in programming de
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
02 Jul 2009 17:41 Re: i am doing ADC |
|
|
|
|
| but do u have the link of the website? i dun understand
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
02 Jul 2009 18:24 i am doing ADC |
|
|
|
|
| I posted two links. What didn't you understand?
|
|
| Back to top |
|
 |
Google AdSense

|
02 Jul 2009 18:24 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
aanand_44
Joined: 25 Jul 2007 Posts: 24 Helped: 2 Location: India
|
03 Jul 2009 11:18 Re: i am doing ADC |
|
|
|
|
Hi,
Please try basic tutorials:
http://www.8052.com/tut8051
http://www.eg3.com/8051/
Please try this ....
Regards,
Anand
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
04 Jul 2009 18:08 i am doing ADC |
|
|
|
|
| Did you study and complete your assignment?
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
09 Jul 2009 1:42 Re: i am doing ADC |
|
|
|
|
| hvane yet.. i only done my ADC
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
15 Jul 2009 9:04 Re: i am doing ADC |
|
|
|
|
| help help.. i be able to do everyting but i dunno i am corret anot
|
|
| Back to top |
|
 |
zj3515
Joined: 15 Jul 2009 Posts: 5 Location: china
|
16 Jul 2009 1:15 i am doing ADC |
|
|
|
|
here,,,,
http://www2.its.strath.ac.uk/courses/c/
Dont pay attention to the UNIX.
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
16 Jul 2009 1:57 Re: i am doing ADC |
|
|
|
|
| what is that UNIX mean?
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
16 Jul 2009 2:39 i am doing ADC |
|
|
|
|
| UNIX is a commercial operating system it's similar to Linux.
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
16 Jul 2009 2:45 Re: i am doing ADC |
|
|
|
|
| now my ADC code can read the value but the PWM i have no idea hw to test n do the coding.. any guide? or help mi
|
|
| Back to top |
|
 |
zj3515
Joined: 15 Jul 2009 Posts: 5 Location: china
|
16 Jul 2009 14:31 i am doing ADC |
|
|
|
|
| u can measure the wave duty of the PWM's output pin of the C8051.compare with your setting of PWM register
|
|
| Back to top |
|
 |
jason1987
Joined: 22 Jun 2009 Posts: 69 Location: japan
|
17 Jul 2009 4:00 Re: i am doing ADC |
|
|
|
|
| the problem is i don't even know how to measure the duty cycle and how to write the code. i need some guide
|
|
| Back to top |
|
 |
zj3515
Joined: 15 Jul 2009 Posts: 5 Location: china
|
17 Jul 2009 7:50 Re: i am doing ADC |
|
|
|
|
use oscillograph to mesuear.you must read datasheet and then write code.
Added after 21 minutes:
here is the application document
|
|
| Back to top |
|
 |