electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Using ADC n PWM to light up the LED dimmer - need help


Goto page Previous  1, 2, 3  Next
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Using ADC n PWM to light up the LED dimmer - need help
Author Message
blueroomelectronics



Joined: 17 Sep 2006
Posts: 1681
Helped: 99
Location: Toronto, Canada


Post30 Jun 2009 6:05   

i am doing ADC


www.google.com
Back to top
jason1987



Joined: 22 Jun 2009
Posts: 69
Location: japan


Post30 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


Post30 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


Post30 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


Post30 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


Post30 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


Post30 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/
Using ADC n PWM to light up the LED dimmer - need help

Care to try again in English please.
Back to top
jason1987



Joined: 22 Jun 2009
Posts: 69
Location: japan


Post30 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


Post30 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


Post30 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


Post30 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


Post01 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


Post01 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


Post01 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


Post01 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


Post02 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


Post02 Jul 2009 17:16   

i am doing ADC


It's a single line of a program. It's a declaration and tells the compiler the variable type and initial value.

You can download free C compilers for your computer and try out programming in C for free.

http://www.dummies.com/how-to/content/declaring-variables-in-c.html
http://www.geocities.com/learnprogramming123/Clesson2Beginner.htm
Back to top
jason1987



Joined: 22 Jun 2009
Posts: 69
Location: japan


Post02 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


Post02 Jul 2009 18:24   

i am doing ADC


I posted two links. What didn't you understand?
Back to top
Google
AdSense
Google Adsense




Post02 Jul 2009 18:24   

Ads




Back to top
aanand_44



Joined: 25 Jul 2007
Posts: 24
Helped: 2
Location: India


Post03 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


Post04 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


Post09 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


Post15 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


Post16 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


Post16 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


Post16 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


Post16 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


Post16 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


Post17 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


Post17 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



Sorry, but you need login in to view this attachment

Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Using ADC n PWM to light up the LED dimmer - need help
Page 2 of 3 All times are GMT + 1 Hour
Goto page Previous  1, 2, 3  Next
Similar topics:
Light Dimmer using nec6122 IR protocol with pic12f629 (2)
Help Needed... Light dimmer (1)
Need help. led light circuit with output at on/off (4)
Light dimmer/brightner- need circuit to gradually bright,dim (2)
LED driver using PWM???? (2)
problem with counter using led matrix... why not light on? (2)
Light dimmer.... (8)
IR light dimmer (9)
Light Dimmer (2)
Remote Light dimmer (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS